How to migrate jmx/mbean (sar) in EAP 6 from EAP 5 ?

Solution In Progress - Updated -

Issue

  • Do we have detailed example about MBeans (sar) using the new jboss-serivice_7_0.xsd, I want specially use case of the construct ?
  • When I use <value-factory> in jboss-service.xml of sar and while deploying this sar in EAP 6 I am getting below exception.
18:13:25,154 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015876: Starting deployment of "helloworld-mbean.sar" (runtime-name: "helloworld-mbean.sar")
18:13:25,340 INFO  [org.jboss.weld.deployer] (MSC service thread 1-1) JBAS016002: Processing weld deployment helloworld-mbean.sar
18:13:25,368 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC000001: Failed to start service jboss.deployment.unit."helloworld-mbean.sar".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."helloworld-mbean.sar".INSTALL: JBAS018733: Failed to process phase INSTALL of deployment "helloworld-mbean.sar"
    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [jboss-as-server-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1980) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1913) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_10]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_10]
    at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_10]
Caused by: org.jboss.msc.service.CircularDependencyException: Container jboss-as has a circular dependency: [service jboss.mbean.service.quickstarts:type=SarMXPojoHelloWorld.create]
    at org.jboss.msc.service.ServiceContainerImpl.detectCircularity(ServiceContainerImpl.java:799) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]
    at org.jboss.msc.service.ServiceContainerImpl.detectCircularity(ServiceContainerImpl.java:770) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]
    at org.jboss.msc.service.ServiceContainerImpl.install(ServiceContainerImpl.java:744) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]
    at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:243) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]
    at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2433) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]
    at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:243) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]
    at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2433) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]
    at org.jboss.msc.service.ServiceBuilderImpl.install(ServiceBuilderImpl.java:345) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]
    at org.jboss.as.service.MBeanServices.install(MBeanServices.java:136)
    at org.jboss.as.service.ParsedServiceDeploymentProcessor.addServices(ParsedServiceDeploymentProcessor.java:151)
    at org.jboss.as.service.ParsedServiceDeploymentProcessor.deploy(ParsedServiceDeploymentProcessor.java:103)
    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [jboss-as-server-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
    ... 5 more

18:13:25,373 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 2) JBAS014612: Operation ("deploy") failed - address: ([("deployment" => "helloworld-mbean.sar")]) - failure description: {
    "JBAS014671: Failed services" => {"jboss.deployment.unit.\"helloworld-mbean.sar\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"helloworld-mbean.sar\".INSTALL: JBAS018733: Failed to process phase INSTALL of deployment \"helloworld-mbean.sar\"
    Caused by: org.jboss.msc.service.CircularDependencyException: Container jboss-as has a circular dependency: [service jboss.mbean.service.quickstarts:type=SarMXPojoHelloWorld.create]"},
    "JBAS014771: Services with missing/unavailable dependencies" => ["jboss.deployment.unit.\"helloworld-mbean.sar\".weld.weldClassIntrospector is missing [jboss.deployment.unit.\"helloworld-mbean.sar\".beanmanager]"]
}
18:13:25,376 ERROR [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "helloworld-mbean.sar" was rolled back with the following failure message: 
{
    "JBAS014671: Failed services" => {"jboss.deployment.unit.\"helloworld-mbean.sar\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"helloworld-mbean.sar\".INSTALL: JBAS018733: Failed to process phase INSTALL of deployment \"helloworld-mbean.sar\"
    Caused by: org.jboss.msc.service.CircularDependencyException: Container jboss-as has a circular dependency: [service jboss.mbean.service.quickstarts:type=SarMXPojoHelloWorld.create]"},
    "JBAS014771: Services with missing/unavailable dependencies" => ["jboss.deployment.unit.\"helloworld-mbean.sar\".weld.weldClassIntrospector is missing [jboss.deployment.unit.\"helloworld-mbean.sar\".beanmanager]"]
}

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content