You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2012/12/05 11:00:36 UTC

[Bug 54247] New: Exception in JmxRemoteLifecycleListener.destroyServer

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

            Bug ID: 54247
           Summary: Exception in JmxRemoteLifecycleListener.destroyServer
           Product: Tomcat 7
           Version: 7.0.33
          Hardware: PC
                OS: Windows Server 2003
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: benoit_rey@hotmail.com
    Classification: Unclassified

Created attachment 29697
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=29697&action=edit
Tomcat log (first stop with service manager, second stop with shutdown port)

Tomcat 7.0.33 is installed as Windows service and is using JDK 1.7.0_09.
JmxRemoteLifecycleListener is used :
<Listener className="org.apache.catalina.mbeans.JmxRemoteLifecycleListener" 
        rmiRegistryPortPlatform="8999" rmiServerPortPlatform="9999" />

When Tomcat is stopped through the Windows service manager or the Common Daemon
Service Manager, the JmxRemoteLifecycleListener listener fail to stop with the
following exception :

05-Dec-2012 10:44:49.306 SEVERE [Thread-36]
org.apache.catalina.mbeans.JmxRemoteLifecycleListener.destroyServer The JMX
connector server could not be stopped for the Platform server
 java.io.IOException: Cannot bind to URL:
javax.naming.NoInitialContextException: Cannot instantiate class:
org.apache.naming.java.javaURLContextFactory [Root exception is
java.lang.ClassNotFoundException: org/apache/naming/java/javaURLContextFactory]
    at
javax.management.remote.rmi.RMIConnectorServer.newIOException(RMIConnectorServer.java:826)
    at
javax.management.remote.rmi.RMIConnectorServer.stop(RMIConnectorServer.java:569)
    at
org.apache.catalina.mbeans.JmxRemoteLifecycleListener.destroyServer(JmxRemoteLifecycleListener.java:282)
    at
org.apache.catalina.mbeans.JmxRemoteLifecycleListener.lifecycleEvent(JmxRemoteLifecycleListener.java:226)
    at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
    at
org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
    at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:347)
    at
org.apache.catalina.core.StandardServer.stopInternal(StandardServer.java:748)
    at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
    at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:486)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:371)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:453)
Caused by: javax.naming.NoInitialContextException: Cannot instantiate class:
org.apache.naming.java.javaURLContextFactory [Root exception is
java.lang.ClassNotFoundException: org/apache/naming/java/javaURLContextFactory]
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:674)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:307)
    at javax.naming.InitialContext.init(InitialContext.java:242)
    at javax.naming.InitialContext.<init>(InitialContext.java:216)
    at
javax.management.remote.rmi.RMIConnectorServer.stop(RMIConnectorServer.java:558)
    ... 15 more
Caused by: java.lang.ClassNotFoundException:
org/apache/naming/java/javaURLContextFactory
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:264)
    at
com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:63)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:671)
    ... 19 more

If Tomcat is stopped through the use of the shutdown port, the
JmxRemoteLifecycleListener listener stop gently.

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

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


[Bug 54247] Exception in JmxRemoteLifecycleListener.destroyServer

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54247

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from Mark Thomas <ma...@apache.org> ---
Thanks for the report. This has been fixed in trunk and 7.0.x and will be
included in 7.0.35 onwards.

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

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