https://issues.apache.org/bugzilla/show_bug.cgi?id=57122

            Bug ID: 57122
           Summary: class loading during remote deployment not working
                    (NoClassDefFoundError)
           Product: Tomcat 7
           Version: 7.0.53
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: michael.baul...@knipp.de

I have a Tomcat running a web application, which I then want to update
remotely. During this deployment a ServletContextListener instance (called
InitListener and configured in the web.xml) executes the contextDestroyed
method.

In this method some java classes cannot be loaded. In the tomcat's error log I
see errors like:

SEVERE: Exception sending context destroyed event to listener instance of class
x.y.z.InitListener
java.lang.NoClassDefFoundError:
org/jboss/netty/util/internal/ConcurrentHashMap$Values

However, if I access the same class (in this example the
ConcurrentHashMap$Values) at some previous point before the shutdown starts,
everything works fine.

It seems that Tomcat is not able to (newly) load the necessary classes when
doing the shutdown part of the remote deployment. To my knowledge at this point
arbitrary java code should still be executable.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to