0 Replies Latest reply on Jan 31, 2002 1:23 PM by Saurabh

    Session Bean Deployment Issues

    Saurabh Newbie

      HI All,

      We are having a very weird problem and it is urgent we solve the same.

      The problem is that when we deploy a jar file in Jboss for the first time then there are no issues however if we remove that file and then redeploy the same then the error message comes which says that the instance already
      exists


      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