Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.0.1
-
Fix Version/s: 1.2-M3
-
Component/s: Project infrastructure
-
Labels:None
-
Environment:Grails 1.0.1 - Windows - Tomcat 6
Description
Hi,
We have a grails app that is being tested on tomcat 6.
We have a META-INF/context.xml defined in our WAR file. We start tomcat and deploy this WAR via the manager interface to the root context. The WAR is deployed OK and the app runs great. We then go into the tomcat manager and do a "STOP" on the context.
Noticed this output in the tomcat STDOUT
log4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using NOPLoggerRepository.
Secondly, we then do a tomcat "undeploy" which deletes all the deployed context files. When this is completed, the following Grails jars are left in the <contextRoot>/WEB-INF/lib directory. Because of this you cannot re-deploy your WAR again unless you kill the entire tomcat process to delete the jars. Maybe something in grails' ServletContextListener is not properly handling a shutdown and releasing resources?
grails-cli-1.0.1.jar
*-core.1.0.1.jar
*-crud-1.0.1.jar
*-gorm-1.0.1.jar
*-spring-1.0.1.jar
*-web-1.0.1.jar
*-webflow-1.0.1.jar
Issue Links
| This issue duplicates: | ||||
| GRAILS-2416 | WAR re-deploment error in Tomcat |
|
|
|
| This issue relates to: | ||||
| GRAILS-2687 | Verify that hsql database has shudown() called on it upon context destruction |
|
|
|
also this occurs if either of the following are defined in your context
antiJARLocking="true"
antiResourceLocking="true"
Setting to false allows a re-deploy, however over time you will run out of memory as resources are not being properly released by the app