0 Replies Latest reply on Oct 9, 2002 9:20 PM by ankur agrawal

    Deployment process and errors...

    ankur agrawal Newbie

      Hi all,

      on my setup, the deployer seems to be behaving differently when it deploys jar files based on a mbean description as opposed to when it is loading them from the deploy directory.

      I have a mbean in a service.xml file, which has reference to some jar file in the deploy directory:



      When JBoss is processing this, I see the following:

      [org.jboss.deployment.MainDeployer] resolveLibraries: ivUser.jar
      2002-10-09 17:08:42,170 DEBUG [org.jboss.deployment.MainDeployer] new manifest entry for sdi at ivUserAdmin.jar entry is ivUser.jar

      It goes ahead and deploys the ivUser.jar.

      Immediately after that, it tries to deploy ivUser.jar again, by saying it found a subpackage of userAdmin.jar

      [org.jboss.deployment.MainDeployer] found 1 subpackages of file:/C:/jboss 3.0/jboss-3.0.0/server/default/deploy/ivUserAdmin.jar

      At this point, it fails, throwing an InstanceAlreadyExistsException.

      Where does JBoss get these two pieces of information ?
      The first one, the sdi entry, seems to be coming from the Manifest file.

      Where is the second one, the 'subpackage', coming from ?

      Interestingly, when I remove this mbean definition, and try to start JBoss, I don't get any error: it finds the sdi entry and deploys ivUser.jar, and then it says it found 0 subpacakges of ivUserAdmin.jar.

      Could someone help me with what is happening here ?

      The relevant snippets from the server log are pasted below.

      Thanks
      Ankur
      --------------------------------------------------

      2002-10-09 17:08:42,154 INFO [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/C:/jboss 3.0/jboss-3.0.0/server/default/deploy/ivUserAdmin.jar
      2002-10-09 17:08:42,154 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment (init step) of package at: file:/C:/jboss 3.0/jboss-3.0.0/server/default/deploy/ivUserAdmin.jar
      2002-10-09 17:08:42,154 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url file:/C:/jboss 3.0/jboss-3.0.0/server/default/tmp/deploy/server/default/deploy/ivUserAdmin.jar/51.ivUserAdmin.jar
      2002-10-09 17:08:42,154 DEBUG [org.jboss.mx.loading.UnifiedLoaderRepository] UnifiedLoaderRepository adding org.jboss.mx.loading.UnifiedClassLoader@4835fb{ url=file:/C:/jboss 3.0/jboss-3.0.0/server/default/tmp/deploy/server/default/deploy/ivUserAdmin.jar/51.ivUserAdmin.jar }
      2002-10-09 17:08:42,170 DEBUG [org.jboss.deployment.MainDeployer] using deployer org.jboss.ejb.EJBDeployer@1e8f17
      2002-10-09 17:08:42,170 DEBUG [org.jboss.deployment.MainDeployer] resolveLibraries: ivUser.jar
      2002-10-09 17:08:42,170 DEBUG [org.jboss.deployment.MainDeployer] new manifest entry for sdi at ivUserAdmin.jar entry is ivUser.jar
      2002-10-09 17:08:42,170 INFO [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/C:/jboss 3.0/jboss-3.0.0/server/default/deploy/ivUser.jar
      2002-10-09 17:08:42,170 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment (init step) of package at: file:/C:/jboss 3.0/jboss-3.0.0/server/default/deploy/ivUser.jar

      -----------------------------------------------
      2002-10-09 17:08:43,170 DEBUG [org.jboss.deployment.MainDeployer] Final (start) deployment step successfully completed on package: ivUser.jar
      2002-10-09 17:08:43,170 INFO [org.jboss.deployment.MainDeployer] Successfully completed deployment of package: file:/C:/jboss 3.0/jboss-3.0.0/server/default/deploy/ivUser.jar
      2002-10-09 17:08:43,170 DEBUG [org.jboss.deployment.MainDeployer] found 1 subpackages of file:/C:/jboss 3.0/jboss-3.0.0/server/default/deploy/ivUserAdmin.jar
      2002-10-09 17:08:43,170 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment (init step) of package at: file:/C:/jboss 3.0/jboss-3.0.0/server/default/deploy/ivUser.jar
      2002-10-09 17:08:43,170 DEBUG [org.jboss.deployment.MainDeployer] using deployer org.jboss.ejb.EJBDeployer@1e8f17
      2002-10-09 17:08:43,170 DEBUG [org.jboss.deployment.MainDeployer] found 0 subpackages of file:/C:/jboss 3.0/jboss-3.0.0/server/default/deploy/ivUser.jar
      2002-10-09 17:08:43,170 DEBUG [org.jboss.deployment.MainDeployer] Watching new file: file:/C:/jboss 3.0/jboss-3.0.0/server/default/deploy/ivUser.jar
      2002-10-09 17:08:43,170 DEBUG [org.jboss.deployment.MainDeployer] Watching new file: file:/C:/jboss 3.0/jboss-3.0.0/server/default/deploy/ivUserAdmin.jar
      2002-10-09 17:08:43,170 DEBUG [org.jboss.deployment.MainDeployer] create step for deployment file:/C:/jboss 3.0/jboss-3.0.0/server/default/deploy/ivUserAdmin.jar
      2002-10-09 17:08:43,170 DEBUG [org.jboss.deployment.MainDeployer] create step for deployment file:/C:/jboss 3.0/jboss-3.0.0/server/default/deploy/ivUser.jar
      2002-10-09 17:08:43,217 DEBUG [org.jboss.ejb.EJBDeployer] Verifying file:/C:/jboss 3.0/jboss-3.0.0/server/default/deploy/ivUser.jar
      2002-10-09 17:08:43,217 DEBUG [org.jboss.ejb.EJBDeployer] User: Verified.
      2002-10-09 17:08:43,217 INFO [org.jboss.ejb.EjbModule] Registration is not done -> destroy
      2002-10-09 17:08:43,217 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.parentTraceEnabled=true
      2002-10-09 17:08:43,232 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.nestedTraceEnabled=true
      2002-10-09 17:08:43,232 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.detectDuplicateNesting=true
      2002-10-09 17:08:43,232 ERROR [org.jboss.deployment.MainDeployer] could not create deployment: file:/C:/jboss 3.0/jboss-3.0.0/server/default/deploy/ivUser.jar
      org.jboss.deployment.DeploymentException: error in create of EjbModule: file:/C:/jboss 3.0/jboss-3.0.0/server/default/deploy/ivUser.jar; - nested throwable: (javax.management.InstanceAlreadyExistsException: jboss.j2ee:service=EjbModule,url=file%/C%/jboss 3.0/jboss-3.0.0/server/default/deploy/ivUser.jar already registered.)