1 Reply Latest reply on Jul 4, 2011 6:20 PM by rafaelcba

    start/stop Web-App with JMX-Console

    mixim

      Hi all,

       

      i try to stop/start a simple web-app via the JMX-Console of jBoss. The web-app only contains one index.html, no .class or .jsp.

      Stopping succeeded successfully, the starting results in:

       

      11:36:41,843 ERROR [StandardContext] Context [/testStartStop] startup failed due to previous errors

      LifecycleException:  WebCtxLoader cannot be restarted

              at org.jboss.web.tomcat.service.WebCtxLoader.start(WebCtxLoader.java:149)

              at org.apache.catalina.core.StandardContext.start(StandardContext.java:4272)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:597)

              at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)

      ...

      11:36:41,843 ERROR [StandardContext] Context [/testStartStop] startup failed due to previous errors

      11:36:41,843 ERROR [StandardContext] Exception during cleanup after start failed

      java.lang.NullPointerException

              at java.util.Hashtable.remove(Hashtable.java:436)

              at org.apache.naming.resources.DirContextURLStreamHandler.unbind(DirContextURLStreamHandler.java:242)

              at org.jboss.web.tomcat.service.WebCtxLoader.stop(WebCtxLoader.java:168)

              at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4649)

              at org.apache.catalina.core.StandardContext.start(StandardContext.java:4437)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

       

      Does anybody run into the same error or knows why this exception occures ?

      Thanks for any advice,

       

             Martin

        • 1. Re: start/stop Web-App with JMX-Console
          rafaelcba

          I'm having the same problem.

           

          But you could try this (undeploy/redeploy):

           

          1) ./twiddle.sh -s jnp://localhost:1099 -u admin -p admin invoke 'jboss.web.deployment:war=/admin-console' stop

           

          2) ./twiddle.sh -s jnp://localhost:1099 -u admin -p admin invoke 'jboss.web.deployment:war=/admin-console' start

           

          regards.