Grails

WAR re-deploment error in Tomcat

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Duplicate
  • Affects Version/s: 1.0, 1.0.1
  • Fix Version/s: 1.2-M3
  • Component/s: None
  • Labels:
    None
  • Environment:
    (all 32 Bit):
    Windows XP SP2
    Java 1.6.0_04
    Tomcat 5.5.26
    Grail 1.0

Description

reproducable as follows:
1. "grails create-app myapp"
2. "grails war"
3. deploy the war to <tomcat>/webapps
Everting works fine till now.

4. edit the "<development>/grails-app/views/layouts/main.gsp" (simply add "Hello" below the grails logo)
5. repeat steps 2. and 3.

Now the web app context "myapp" is now broken on the automatic context re-start . Tomcat stdout*.log message entry:
"log4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using NOPLoggerRepository."

This does not happen, if the war is exploded manually into the Tomcat webapps.

Issue Links

Activity

Hide
Bruce Larsen added a comment -

also happens with

  • Grail 1.0 and Grail 1.0.1-SNAPSHOT 2007-02-10
    as well as
  • Java 1.5.0_09
  • Tomcat 5.5.25
Show
Bruce Larsen added a comment - also happens with
  • Grail 1.0 and Grail 1.0.1-SNAPSHOT 2007-02-10 as well as
  • Java 1.5.0_09
  • Tomcat 5.5.25
Hide
Alexis MP added a comment -
  • Grails 1.0.4, GlassFish v2ur2:

Second deploy (asadmin deploy) triggers :

PWC1277: Exception sending context destroyed event to listener instance of class org.codehaus.groovy.grails.web.context.GrailsContextLoaderListener
java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered?

but application is indeed updated.

  • Grails 1.0.4, GlassFish v3prelude:
    Re-deployment (asadmin deploy --force=true) works fine.

Bottom line, no issue in GlassFish and not sure 2544 is a duplicate.

Show
Alexis MP added a comment -
  • Grails 1.0.4, GlassFish v2ur2:
Second deploy (asadmin deploy) triggers : PWC1277: Exception sending context destroyed event to listener instance of class org.codehaus.groovy.grails.web.context.GrailsContextLoaderListener java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered? but application is indeed updated.
  • Grails 1.0.4, GlassFish v3prelude: Re-deployment (asadmin deploy --force=true) works fine.
Bottom line, no issue in GlassFish and not sure 2544 is a duplicate.
Hide
Matt Lachman added a comment -

I'm hitting this issue in version 1.1 as well.

Show
Matt Lachman added a comment - I'm hitting this issue in version 1.1 as well.

People

Vote (14)
Watch (8)

Dates

  • Created:
    Updated:
    Resolved: