Affects Version/s: 7.2.0
Fix Version/s: 7.2.1
Environment:Ubuntu 10.04 using
Java HotSpot(TM) Server VM (build 16.3-b01, mixed mode)
or Oracle JRockit(R) (build R28.0.0-679-130297-1.6.0_17-20100312-2121-linux-x86_64, compiled mode)
Number of attachments :
This might be related to
I have two contexts with contextPath=/ and different virtualHosts. Both are Grails web applications but with different versions. After starting the Jetty server one of the applications works fine, the other (that has been initialized as second) fails with a class cast exception "org.codehaus.groovy.grails.web.servlet.mvc.GrailsWebRequest cannot be cast to org.codehaus.groovy.grails.web.servlet.mvc.GrailsWebRequest". So it seems to me that the class paths of the two contexts get somehow "mixed".
Unfortunately I found no simple test case for this issue. The war files are ~20MB each so I cannot attach them here. The easiest way to reproduce it is to create to applications with different Grails version (I used 1.3.4 and 1.3.5):
~/grails-1.3.4/bin/grails create-app app1; cd app1; ~/grails-1.3.4/bin/grails war
~/grails-1.3.5/bin/grails create-app app2; cd app2 ~/grails-1.3.5/bin/grails war
Then I created context files for both war files with contextPath=/ and different virtualHosts.