2 Replies Latest reply on Jul 25, 2012 8:31 AM by sarahfr

    fail to add MBean to RHQ project

    sarahfr Newbie

      Hi,

      to oversee my application I need to add an MBean in the RHQ project, why I 'followed the following steps:

      in project RHQ, I add an *.sar in jboss-appl.xml  :

       

      rhq-server-4.4.0 -> jbossas  -> server -> default -> deploy -> rhq.ear -> META-INF -> jboss-app.xml

       

      <?xml version="1.0"?>

       

       

      <jboss-app>

       

       

        <module>

          <service>server-comm-service.xml</service>

        </module>

       

       

        <module>

          <service>quartz-scheduler-service.xml</service>

        </module>

       

       

        <module>

          <service>custom-jaas-deployment-service.xml</service>

        </module>

       

       

        <module>

          <service>product-plugin-service.xml</service>

        </module>

       

       

        <module>

          <service>mq-service.xml</service>

        </module>

       

       

        <module>

          <service>server-service.xml</service>

        </module>

       

       

         <module>

          <service>cameleon.sar</service>

        </module>

       

      </jboss-app>

       

      and and I added my *.sar (cameleon.sar)  in rhq.ear  but it did not work.

       

       

      16:36:31,502 ERROR [MainDeployer] Could not create deployment: file:/C:/travail/projet-RHQ/rhq-server-4.4.0/jbossas/server/default/deploy/rhq.ear/cameleon.sar

      org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: cameleon:service=JbossHello

              at org.jboss.system.ServiceCreator.install(ServiceCreator.java:103)

              at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:451)

              at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)

              at org.jboss.system.ServiceController.install(ServiceController.java:226)

              at sun.reflect.GeneratedMethodAccessor42.invoke(Unknown Source)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:597)

              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)

              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)

              at $Proxy4.install(Unknown Source)

              at org.jboss.deployment.SARDeployer.create(SARDeployer.java:251)

              at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)

              at org.jboss.deployment.MainDeployer.create(MainDeployer.java:959)

              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)

              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)

              at sun.reflect.GeneratedMethodAccessor41.invoke(Unknown Source)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:597)

              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

              at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

              at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)

              at $Proxy9.deploy(Unknown Source)

              at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)

              at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)

              at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)

              at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)

              at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)

              at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)

              at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:597)

              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)

              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

              at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)

              at $Proxy0.start(Unknown Source)

              at org.jboss.system.ServiceController.start(ServiceController.java:417)

              at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:597)

              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)

              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)

              at $Proxy4.start(Unknown Source)

              at org.jboss.deployment.SARDeployer.start(SARDeployer.java:304)

              at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)

              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)

              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)

              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:597)

              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

              at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

              at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)

              at $Proxy5.deploy(Unknown Source)

              at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)

              at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)

              at org.jboss.Main.boot(Main.java:200)

              at org.jboss.Main$1.run(Main.java:508)

              at java.lang.Thread.run(Thread.java:662)

      16:36:31,575 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

       

       

      --- Incompletely deployed packages ---

      org.jboss.deployment.DeploymentInfo@a00b3bbc { url=file:/C:/travail/projet-RHQ/rhq-server-4.4.0/jbossas/server/default/deploy/rhq.ear/cameleon.sar }

        deployer: org.jboss.deployment.SARDeployer@5090d8ea

        status: Deployment FAILED reason: Trying to install an already registered mbean: cameleon:service=JbossHello

        state: FAILED

        watch: file:/C:/travail/projet-RHQ/rhq-server-4.4.0/jbossas/server/default/deploy/rhq.ear/cameleon.sar

        altDD: null

        lastDeployed: 1343140589620

        lastModified: 1343140589589

        mbeans:

       

       

      org.jboss.deployment.DeploymentInfo@be4b5a16 { url=file:/C:/travail/projet-RHQ/rhq-server-4.4.0/jbossas/server/default/deploy/rhq.ear/custom-jaas-deployment-service.xm

        deployer: org.jboss.deployment.SARDeployer@5090d8ea

        status: null

        state: INITIALIZED

        watch: file:/C:/travail/projet-RHQ/rhq-server-4.4.0/jbossas/server/default/deploy/rhq.ear/custom-jaas-deployment-service.xml

        altDD: null

        lastDeployed: 1343140589636

        lastModified: 1343140589620

        mbeans:

       

       

      org.jboss.deployment.DeploymentInfo@afa88ad { url=file:/C:/travail/projet-RHQ/rhq-server-4.4.0/jbossas/server/default/deploy/rhq.ear/mq-service.xml }

        deployer: org.jboss.deployment.SARDeployer@5090d8ea

        status: null

        state: INITIALIZED

        watch: file:/C:/travail/projet-RHQ/rhq-server-4.4.0/jbossas/server/default/deploy/rhq.ear/mq-service.xml

        altDD: null

        lastDeployed: 1343140589636

        lastModified: 1343140589636

        mbeans:

       

       

      org.jboss.deployment.DeploymentInfo@d4723dda { url=file:/C:/travail/projet-RHQ/rhq-server-4.4.0/jbossas/server/default/deploy/rhq.ear/product-plugin-service.xml }

        deployer: org.jboss.deployment.SARDeployer@5090d8ea

        status: null

        state: INITIALIZED

        watch: file:/C:/travail/projet-RHQ/rhq-server-4.4.0/jbossas/server/default/deploy/rhq.ear/product-plugin-service.xml

        altDD: null

        lastDeployed: 1343140589646

        lastModified: 1343140589646

        mbeans:

       

       

      org.jboss.deployment.DeploymentInfo@460278d2 { url=file:/C:/travail/projet-RHQ/rhq-server-4.4.0/jbossas/server/default/deploy/rhq.ear/quartz-scheduler-service.xml }

        deployer: org.jboss.deployment.SARDeployer@5090d8ea

        status: null

        state: INITIALIZED

        watch: file:/C:/travail/projet-RHQ/rhq-server-4.4.0/jbossas/server/default/deploy/rhq.ear/quartz-scheduler-service.xml

        altDD: null

        lastDeployed: 1343140589656

        lastModified: 1343140589646

        mbeans:

       

       

      org.jboss.deployment.DeploymentInfo@6b289705 { url=file:/C:/travail/projet-RHQ/rhq-server-4.4.0/jbossas/server/default/deploy/rhq.ear/server-comm-service.xml }

        deployer: org.jboss.deployment.SARDeployer@5090d8ea

        status: null

        state: INITIALIZED

        watch: file:/C:/travail/projet-RHQ/rhq-server-4.4.0/jbossas/server/default/deploy/rhq.ear/server-comm-service.xml

        altDD: null

        lastDeployed: 1343140589666

        lastModified: 1343140589656

        mbeans:

       

       

      org.jboss.deployment.DeploymentInfo@795fad4c { url=file:/C:/travail/projet-RHQ/rhq-server-4.4.0/jbossas/server/default/deploy/rhq.ear/server-service.xml }

        deployer: org.jboss.deployment.SARDeployer@5090d8ea

        status: null

        state: INITIALIZED

        watch: file:/C:/travail/projet-RHQ/rhq-server-4.4.0/jbossas/server/default/deploy/rhq.ear/server-service.xml

        altDD: null

        lastDeployed: 1343140589666

        lastModified: 1343140589666

        mbeans:

       

       

      org.jboss.deployment.DeploymentInfo@3b20a51d { url=file:/C:/travail/projet-RHQ/rhq-server-4.4.0/jbossas/server/default/deploy/rhq.ear/rhq-core-domain-ejb3.jar/ }

        deployer: MBeanProxyExt[jboss.ejb3:service=EJB3Deployer]

        status: null

        state: INITIALIZED

        watch: file:/C:/travail/projet-RHQ/rhq-server-4.4.0/jbossas/server/default/deploy/rhq.ear/rhq-core-domain-ejb3.jar/META-INF/ejb-jar.xml

        altDD: null

        lastDeployed: 1343140590176

        lastModified: 1343136374401

        mbeans:

       

       

      org.jboss.deployment.DeploymentInfo@869b549a { url=file:/C:/travail/projet-RHQ/rhq-server-4.4.0/jbossas/server/default/deploy/rhq.ear/rhq-enterprise-server-ejb3.jar/ }

        deployer: MBeanProxyExt[jboss.ejb3:service=EJB3Deployer]

        status: null

        state: INITIALIZED

        watch: file:/C:/travail/projet-RHQ/rhq-server-4.4.0/jbossas/server/default/deploy/rhq.ear/rhq-enterprise-server-ejb3.jar/META-INF/ejb-jar.xml

        altDD: null

        lastDeployed: 1343140591466

        lastModified: 1343136485054

        mbeans:

       

       

      org.jboss.deployment.DeploymentInfo@c35804f1 { url=file:/C:/travail/projet-RHQ/rhq-server-4.4.0/jbossas/server/default/deploy/rhq.ear/coregui.war/ }

        deployer: MBeanProxyExt[jboss.web:service=WebServer]

        status: null

        state: INITIALIZED

        watch: file:/C:/travail/projet-RHQ/rhq-server-4.4.0/jbossas/server/default/deploy/rhq.ear/coregui.war/WEB-INF/web.xml

        altDD: null

        lastDeployed: 1343140591472

        lastModified: 1343136436212

        mbeans:

       

       

      org.jboss.deployment.DeploymentInfo@1b1b1140 { url=file:/C:/travail/projet-RHQ/rhq-server-4.4.0/jbossas/server/default/deploy/rhq.ear/jboss-remoting-servlet-invoker-2x

        deployer: MBeanProxyExt[jboss.web:service=WebServer]

        status: null

        state: INITIALIZED

        watch: file:/C:/travail/projet-RHQ/rhq-server-4.4.0/jbossas/server/default/deploy/rhq.ear/jboss-remoting-servlet-invoker-2x.r3040.jon.war/WEB-INF/web.xml

        altDD: null

        lastDeployed: 1343140591480

        lastModified: 1343136374351

        mbeans:

       

       

      org.jboss.deployment.DeploymentInfo@61b885b3 { url=file:/C:/travail/projet-RHQ/rhq-server-4.4.0/jbossas/server/default/deploy/rhq.ear/rhq-content_http.war/ }

        deployer: MBeanProxyExt[jboss.web:service=WebServer]

        status: null

        state: INITIALIZED

        watch: file:/C:/travail/projet-RHQ/rhq-server-4.4.0/jbossas/server/default/deploy/rhq.ear/rhq-content_http.war/WEB-INF/web.xml

        altDD: null

        lastDeployed: 1343140591484

        lastModified: 1343136462415

        mbeans:

       

       

      org.jboss.deployment.DeploymentInfo@b026a955 { url=file:/C:/travail/projet-RHQ/rhq-server-4.4.0/jbossas/server/default/deploy/rhq.ear/rhq-portal.war/ }

        deployer: MBeanProxyExt[jboss.web:service=WebServer]

        status: null

        state: INITIALIZED

        watch: file:/C:/travail/projet-RHQ/rhq-server-4.4.0/jbossas/server/default/deploy/rhq.ear/rhq-portal.war/WEB-INF/web.xml

        altDD: null

        lastDeployed: 1343140591489

        lastModified: 1343136458919

        mbeans:

       

       

      org.jboss.deployment.DeploymentInfo@c63ad72d { url=file:/C:/travail/projet-RHQ/rhq-server-4.4.0/jbossas/server/default/deploy/rhq.ear/rhq-rest.war/ }

        deployer: MBeanProxyExt[jboss.web:service=WebServer]

        status: null

        state: INITIALIZED

        watch: file:/C:/travail/projet-RHQ/rhq-server-4.4.0/jbossas/server/default/deploy/rhq.ear/rhq-rest.war/WEB-INF/web.xml

        altDD: null

        lastDeployed: 1343140591498

        lastModified: 1343136464412

        mbeans:

       

       

      org.jboss.deployment.DeploymentInfo@21e090b8 { url=file:/C:/travail/projet-RHQ/rhq-server-4.4.0/jbossas/server/default/deploy/rhq.ear/ }

        deployer: org.jboss.deployment.EARDeployer@1cad7d80

        status: Deployment FAILED reason: Trying to install an already registered mbean: cameleon:service=JbossHello

        state: FAILED

        watch: file:/C:/travail/projet-RHQ/rhq-server-4.4.0/jbossas/server/default/deploy/rhq.ear/META-INF/application.xml

        altDD: null

        lastDeployed: 1343140591498

        lastModified: 1343140259149

        mbeans:

       

      Can you help me please??????????

      thanks

      Sarahfr