4 Replies Latest reply on Sep 27, 2006 12:09 PM by agentblueuk

    Deploy old and new appliacation on the same server instance

    prasannabp

      Dear members,
      We need to deploy my old and new version of the application on the same server instance with difference application context. After copying oldapp.ear and newapp.ear to the 'deploy' folder getting the below jndi error. Is there any configuration for this kind problem in Jboss.

      Note: we can't change the jndi name as we are using class name as jndi lookup key and this is hardcoded in the code.

      ------ERROR-----------------------
      10:25:54,493 ERROR [EjbModule] Initialization failed
      javax.management.InstanceAlreadyExistsException: jboss.j2ee:jndiName=com.asi.mds.ejb.session.order.MDSOrderHome,service=EJB already registered.
      at org.jboss.mx.server.registry.BasicMBeanRegistry.add(BasicMBeanRegistry.java:617)
      at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:198)
      at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.interceptor.ObjectReferenceInterceptor.invoke(ObjectReferenceInterceptor.java:59)
      ------------------------

      Thanx in advance
      Prasanna B.P
      -------------