0 Replies Latest reply on Nov 25, 2002 10:52 AM by jacquex

    Unregister EJBs within EAR with SAR

    jacquex Newbie

      If I deploy EJBs in an ejb-jar, I can hot deploy/undeploy them without problems.

      If these are EJBs are part of an EAR together with a SAR, everything works fine except that I get errors when trying to redeploy the ear (deleting from the deploy folder and copying back again).

      I read the docs and tried some code from the examples, but I'm obviously missing something. Could someone please explain the correct way to de-register EJBs withing a EAR with a SAR...

      The error I am getting is (JBoss 3.0.3):

      14:45:40,252 INFO [EjbModule] Remove JSR-77 EJB Module: null
      14:45:40,252 ERROR [EjbModule] Initialization failed
      javax.management.InstanceAlreadyExistsException: jboss.j2ee:jndiName=ejb/TestBean,service=EJB already registered.
      at org.jboss.mx.server.registry.BasicMBeanRegistry.add(BasicMBeanRegistry.java:616)
      at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:218)