0 Replies Latest reply on Sep 30, 2013 3:13 PM by Matthew So

    War deployment causes MBean registration issue with JBoss EAP 6.1.final

    Matthew So Newbie

      Hi all,

       

        I am encountering a strange issue with war deploymnet.  Here is the background.

      a) I have a SAR called 'myComp.sar'.  It contains all the business logic + MBeans that I needed.  I have defined my jboss-services.xml and jboss-deployment-structure.xml in the META-INFO folder, and deployment is successful (I see all the MBeans when I launch jmx-console / jconsole UI).

       

      b) I have a WAR called 'myComp.war'.  It contains all the UI pages and controller logic.  It also has a jboss-deployment-strucuture.xml, in which it explicitly declared dependency on 'deployment.myComp.sar'.  The War itself contain no logic that does MBean registration at all.  It does MBean lookup via the jars that we packaged in the SAR.

       

      c) When we deploy myComp.war, we got the following error:

      DuplicateServiceException: Service jboss.mbean.service.MyDomain:name=MyCompMBean.create is already registered

       

        Any idea that I may be doing something wrong?  Any help is appreciated.  Thanks in advance!

       

      Matthew