4 Replies Latest reply on Jan 31, 2002 1:07 PM by Adrian Brock

    Deployment problem

    jayashree Newbie

      Hi

      I am having very typical problem.
      Even if i don't put any jar file in the deploy folder JBoss deploys some bean which was earlier ther in the deploy folder.

      Can anybody help?

      Regards
      jayashree

        • 1. Re: Deployment problem
          Adrian Brock Master

          Can you post the log, not all of it :-)
          And information about versions jboss/os/jvm.

          Regards,
          Adrian

          • 2. Re: Deployment problem
            jayashree Newbie

            I'm using - JBoss-2.4.4_Tomcat-3.2.3
            JVM - jdk1.3
            OS - Windows NT

            i get the following exception:
            [INFO,ContainerFactory] Deploying:file:/E:/JBoss-2.4.4_Tomcat-3.2.3/jboss/tmp/deploy/Default/User.jar
            [INFO,ContainerFactory] Deploying OrderApp
            [INFO,OrderApp] Registration is not done -> destroy
            [INFO,OrderApp] Destroying
            [INFO,OrderApp] Destroyed
            [ERROR,Default] javax.management.InstanceAlreadyExistsException: Management:jndiName=OrderApp
            [ERROR,Default] at com.sun.management.jmx.RepositorySupport.addMBean(RepositorySupport.java:134)
            [ERROR,Default]
            [ERROR,Default] at com.sun.management.jmx.MBeanServerImpl.internal_addObject(MBeanServerImpl.java:2352)
            [ERROR,Default]
            [ERROR,Default] at com.sun.management.jmx.MBeanServerImpl.createMBean(MBeanServerImpl.java:641)
            [ERROR,Default]
            [ERROR,Default] at org.jboss.ejb.ContainerFactory.handleContainerManagement(ContainerFactory.java:718)
            [ERROR,Default]
            [ERROR,Default] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:378)
            [ERROR,Default]
            [ERROR,Default] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:306)
            [ERROR,Default]
            [ERROR,Default] at java.lang.reflect.Method.invoke(Native Method)
            [ERROR,Default]
            [ERROR,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
            [ERROR,Default]
            [ERROR,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
            [ERROR,Default]
            [ERROR,Default] at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:487)
            [ERROR,Default]
            [ERROR,Default] at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:459)
            [ERROR,Default]
            [ERROR,Default] at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:190)
            [ERROR,Default]
            [ERROR,Default] at java.lang.reflect.Method.invoke(Native Method)
            [ERROR,Default]
            [ERROR,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
            [ERROR,Default]
            [ERROR,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
            [ERROR,Default]
            [ERROR,Default] at org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:395)
            [ERROR,Default]
            [ERROR,Default] at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:233)
            [ERROR,Default]
            [ERROR,Default] at org.jboss.deployment.AutoDeployer.startService(AutoDeployer.java:371)
            [ERROR,Default]
            [ERROR,Default] at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:103)
            [ERROR,Default]
            [ERROR,Default] at java.lang.reflect.Method.invoke(Native Method)
            [ERROR,Default]
            [ERROR,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
            [ERROR,Default]
            [ERROR,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
            [ERROR,Default]
            [ERROR,Default] at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(ConfigurationService.java:967)
            [ERROR,Default]
            [ERROR,Default] at $Proxy0.start(Unknown Source)
            [ERROR,Default]
            [ERROR,Default] at org.jboss.util.ServiceControl.start(ServiceControl.java:79)
            [ERROR,Default]
            [ERROR,Default] at java.lang.reflect.Method.invoke(Native Method)
            [ERROR,Default]
            [ERROR,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
            [ERROR,Default]
            [ERROR,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
            [ERROR,Default]
            [ERROR,Default] at org.jboss.Main.(Main.java:208)
            [ERROR,Default]
            [ERROR,Default] at org.jboss.Main$1.run(Main.java:110)
            [ERROR,Default]
            [ERROR,Default] at java.security.AccessController.doPrivileged(Native Method)
            [ERROR,Default]
            [ERROR,Default] at org.jboss.Main.main(Main.java:106)
            [ERROR,Default]
            [INFO,ContainerFactory] Deployed application: file:/E:/JBoss-2.4.4_Tomcat-3.2.3/jboss/tmp/deploy/Default/User.jar
            [INFO,J2eeDeployer] J2EE application: file:/E:/JBoss-2.4.4_Tomcat-3.2.3/jboss/deploy/User.jar is deployed.
            [INFO,AutoDeployer] Started

            • 3. Re: Deployment problem
              Saurabh Newbie

              Andrian,

              Can you provide some clue on why is it so behaving?

              • 4. Re: Deployment problem
                Adrian Brock Master

                It looks like you are deploying the OrderApp bean twice,
                probably in two different jars, with the same jndi name.

                Either use external ejb-refs and deploy the bean once,
                use a jboss.xml to change the bean's jndi name or
                put everything in one EAR.

                This question really belongs in the ejb forum.
                Try searching there, you should be able to find some
                recent posts with explanations for some this.

                Regards,
                Adrian