JBoss Community

Shutting jboss

created by M K in Beginner's Corner - View the full discussion

Hi,

 

Could anyone tell me how should I shutdown jboss with shutdown command?

I tried already:

 

./shutdown.bat -S

./shutdown.bat -s service:jmx:rmi:///jndi/rmi://localhost:1090/jmxrmi

 

but neither of the worked. Both of them throws such an exception:

 

Exception in thread "main" java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.NoIn

itialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory [Root excep

tion is java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory]

        at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:338)

        at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)

        at org.jboss.Shutdown.main(Shutdown.java:235)

Caused by: javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.Nami

ngContextFactory [Root exception is java.lang.ClassNotFoundException: org.jnp.interfaces.NamingConte

xtFactory]

        at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:657)

        at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)

        at javax.naming.InitialContext.init(InitialContext.java:223)

        at javax.naming.InitialContext.<init>(InitialContext.java:197)

        at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1884)

        at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1856)

        at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:257)

        ... 2 more

Caused by: java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory

        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)

        at java.security.AccessController.doPrivileged(Native Method)

        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)

        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)

        at java.lang.Class.forName0(Native Method)

        at java.lang.Class.forName(Class.java:247)

        at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:46)

        at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:654)

        ... 8 more

 

 

I use:

 

Jboss-6.0.0.Final

java: 1.6.0_20

java_opts:

-Xms256m -Xmx512m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInt

erval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -server -XX:+DisableExplicitGC -Dstartmode=noscan

 

I would never expect that such simple thinkg like closing jboss would be so troublesome ;)

 

Thanks in advance for any hint!

Reply to this message by going to Community

Start a new discussion in Beginner's Corner at Community