Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 1.0.1
-
Fix Version/s: 1.0.3
-
Component/s: Configuration
-
Labels:None
Description
Due to Tomcat class loading, 2 applications can't have the same webAppRootKey setting in web.xml
<context-param>
<param-name>webAppRootKey</param-name>
<param-value>myGrailsApp</param-value>
</context-param>
Otherwise Spring throws an exception with:
"Choose unique values for the 'webAppRootKey' context-param in your web.xml files!"
A solution would be to add the environment name to the appname as value for the webAppRootKey. Nevertheless this should be done with custom template provided by the user too what changes the way template are processed. I can try to propose a patch when this second point is cleared (I'll post a mail in the dev mailing list to discuss this).
Issue Links
| This issue is duplicated by: | ||||
| GRAILS-2771 | Run more than one version of a Grails app in the same container |
|
|
|
| This issue relates to: | ||||
| GRAILS-2724 | Add a way to ease deployment of different instances of the same application in the same tomcat |
|
|
|
See related/duplicate issues for suggested solutions/patches