1 Reply Latest reply on Jul 22, 2002 8:08 PM by Joel Vogt

    InstanceAlreadyExistsException when deploying a bean

    Ignacio de Cordoba Novice

      Hi there,
      I am trying to deploy a .era file on JBoss 3.0
      It contains a EJB jar file with 4 EJBs and a war file with a WEB Client.
      I created it with pramati studio and i have verified it into its built in EJB Container. It works OK.
      When I package the ear file and I throw it into the deploy dir, the deployment starts on JBoss, but I get a InstanceAlreadyExistsException. Any help on this?
      I am just throwing the file, without any jboss.xml or jaws.xml files. Is this the cause?

      Here is the log, just in case it gives mor info...


      10:42:50,691 INFO [MainDeployer] Starting deployment of package: file:/Users/icordoba/bin/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/servengine.ear
      10:42:50,958 INFO [EARDeployer] Init J2EE application: file:/Users/icordoba/bin/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/servengine.ear
      10:42:55,628 INFO [EjbModule] Creating
      10:42:55,788 INFO [EjbModule] Deploying RoleBean
      10:42:56,195 INFO [EjbModule] Deploying UserBean
      10:42:56,335 INFO [EjbModule] Deploying MaxManagerBean
      10:42:56,458 INFO [EjbModule] Deploying AdminManagerBean
      10:42:56,603 INFO [EjbModule] Deploying UserManagerBean
      10:42:57,645 INFO [EjbModule] Created
      10:42:58,265 INFO [EjbModule] Creating
      10:42:58,475 INFO [EjbModule] Deploying RoleBean
      10:42:58,598 INFO [EjbModule] Deploying UserBean
      10:42:58,726 INFO [EjbModule] Deploying MaxManagerBean
      10:42:58,886 INFO [EjbModule] Deploying AdminManagerBean
      10:42:59,054 INFO [EjbModule] Deploying UserManagerBean
      10:42:59,260 INFO [EjbModule] Remove JSR-77 EJB Module: jboss.management.single:J2EEApplication=ServEngineWeb.war,J2EEServer=Single,j2eeType=EJBModule,name=ServEngineEJB.jar
      10:42:59,275 INFO [EJBModule] Remove fake JSR-77 parent Application: jboss.management.single:J2EEServer=Single,j2eeType=J2EEApplication,name=ServEngineWeb.war
      10:42:59,279 ERROR [EjbModule] Initialization failed
      javax.management.InstanceAlreadyExistsException: jboss.j2ee:service=EJB,jndiName=AdminManagerBean already registered.
      at org.jboss.mx.server.registry.BasicMBeanRegistry.add(BasicMBeanRegistry.java:654)
      at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:240)
      at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:949)
      at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:276)
      at org.jboss.ejb.EjbModule.createService(EjbModule.java:389)
      at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:134)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:894)
      at $Proxy6.create(Unknown Source)
      at org.jboss.system.ServiceController.create(ServiceController.java:272)
      at org.jboss.system.ServiceController.create(ServiceController.java:212)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy5.create(Unknown Source)
      at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:380)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:637)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:631)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:631)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:512)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:481)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy4.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:405)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:586)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:465)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:202)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)