4 Replies Latest reply on Sep 17, 2003 8:52 AM by jjarkko

    Context not unique

    errorken

      When I re-deploy my webapp, I get an error about the context-root not being unique:

      MBeanException: org.jboss.deployment.DeploymentException: Error during deploy; -
      nested throwable: (java.lang.IllegalArgumentException: addChild: Child name '/
      webapp' is not unique)

      I think this has something to do with the undeployment nog being sucessfull:

      2003-08-05 10:37:22,403 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.detectDuplicateNesting=true
      2003-08-05 10:37:22,403 INFO [org.jboss.deployment.DeploymentInfo] undeployment exception in stop:
      org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (java.lang.NullPointerException)
      at org.jboss.web.AbstractWebContainer.stop(AbstractWebContainer.java:503)

      I'm using jboss-4.0.0DR2

      Anyone ideas why this happens ?

        • 1. Re: Context not unique

          4.0DR2 is broken i guess, same happens with me also.
          Running Windows XP & JDK 1.4.2 and Jboss 4.0DR2.

          19:36:35,826 INFO [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/C:/java/jboss-4.0.0DR2/server/default/deploy/template.ear
          19:36:35,857 INFO [org.jboss.deployment.EARDeployer] Init J2EE application: file:/C:/java/jboss-4.0.0DR2/server/default/deploy/template.ear
          19:36:36,437 INFO [org.jboss.web.catalina.EmbeddedCatalinaService41] deploy, ctxPath=, warUrl=file:/C:/java/jboss-4.0.0DR2/server/default/tmp/deploy/server/default/deploy/template.ear/65.template.ear-contents/jab-web.war/
          19:36:36,578 WARN [org.jboss.system.ServiceController] Problem starting service jboss.deployment:name=file%3a/C%3a/java/jboss-4.0.0DR2/server/default/tmp/deploy/server/default/deploy/template.ear/65.template.ear-contents/jab-web.war,service=DeploymentInfo
          org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (java.lang.IllegalArgumentException: addChild: Child name '' is not unique)
          at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:445)
          at org.jboss.deployment.DeploymentInfo.start(DeploymentInfo.java:255)
          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:324)
          at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:72)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:45)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:70)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:155)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:544)

          • 2. Re: Context not unique
            drkbkr

            Any luck with this? I'm having the same issue.

            • 3. Re: Context not unique
              skyy99_1111

              I'm having the same problem. It seems to be related to .war files that have .jars in the WEB-INF/lib dir. It fails to properly undeploy them. Then it cannot properly deploy them.

              -Matt

              • 4. Re: Context not unique

                I think it's fixed in the CVS version, so you'll have to wait for DR3 to come out.