0 Replies Latest reply on Jun 22, 2015 3:00 AM by Adam A R

    MBean dependencies while migrating from JBoss AS5 to JBoss EAP6.4

    Adam A R Newbie

      Hi All,

       

      We have a few MBeans in our application which need to be migrated to JBoss EAP6.4 from JBoss AS5.

       

      I have moved the classes into a module, added it as dependency in the service archive jboss-deployment-structure.xml. The first MBean without any dependencies is getting deployed correctly. But other MBeans are throwing error during deployment. These MBeans are dependent on the first MBean and a Datasource.

       

      MBean 1. XMLConfigService. dependent only on module myModule1. Able to deploy without errors.

      MBean 2. PersisterService. dependent on XMLConfigService MBean and a DataSource (correctly configured and succeeds in Test Connection). Unable to deploy.

       

      I get the following errors in console (renamed the package names):

       

      12:26:59,535 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014612: Operation ("deploy") failed - address: ([("deployment" => "reportframework.sar")]) - failure description: {"JBAS014771: Services with missing/unavailable dependencies" => [

          "jboss.mbean.service.\"my.config:type=Persister,name=ReportFramework\".create is missing [jboss.mbean.service.\"jboss.jca:name=OracleDS,service=DataSourceBinding\".create]",

       

          "jboss.mbean.service.\"my.config:type=Persister,name=ReportFramework\".start is missing [jboss.mbean.service.\"jboss.jca:name=OracleDS,service=DataSourceBinding\".start]"

      ]}

      12:26:59,660 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 28) JBAS015859: Deployed "reportframework.sar" (runtime-name : "reportframework.sar")

      12:26:59,675 INFO  [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report

      JBAS014775:    New missing/unsatisfied dependencies:

            service jboss.mbean.service."jboss.jca:name=OracleDS,service=DataSourceBinding".create (missing) dependents: [service jboss.mbean.service."my.config:type=Persister,name=ReportFramework".create]

            service jboss.mbean.service."jboss.jca:name=OracleDS,service=DataSourceBinding".start (missing) dependents: [service jboss.mbean.service."my.config:type=Persister,name=ReportFramework".start]

       

      12:26:59,769 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://127.0.0.1:9990/management

      12:26:59,784 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990

      12:26:59,784 ERROR [org.jboss.as] (Controller Boot Thread) JBAS015875: JBoss EAP 6.4.0.GA (AS 7.5.0.Final-redhat-21) started (with errors) in 21666ms - Started 417 of 458 services

      (3 services failed or missing dependencies, 66 services are lazy, passive or on-demand)

      12:27:00,018 INFO  [com.my.config.XMLConfigService] (MSC service thread 1-7) Stop...

      12:27:00,018 INFO  [com.my.config.XMLConfigService] (MSC service thread 1-7) Destroy...

       

      12:27:00,049 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015877: Stopped deployment reportframework.sar (runtime-name: reportframework.sar) in 44ms

      12:27:00,268 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015858: Undeployed "reportframework.sar" (runtime-name: "reportframework.sar")

      12:27:00,268 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report

      JBAS014775:    New missing/unsatisfied dependencies:

            service jboss.deployment.unit."reportframework.sar".component."my.config:type=Persister,name=ReportFramework".START (missing) dependents: [service jboss.mbean.service."my.config:type=Persister,name=ReportFramework".create]

            service jboss.mbean.service."my.config:type=Config,name=ReportFramework".create (missing) dependents: [service jboss.mbean.service."my.config:type=Persister,name=ReportFramework".create]

            service jboss.mbean.service."my.config:type=Config,name=ReportFramework".start (missing) dependents: [service jboss.mbean.service."my.config:type=Persister,name=ReportFramework".start]

            service jboss.mbean.service."my.config:type=Persister,name=ReportFramework".start (missing) dependents: [service jboss.mbean.registration."my.config:type=Persister,name=ReportFramework"]

       

      12:27:04,807 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 2) JBAS015003: Found reportframework.sar in deployment directory. To trigger deployment cre

      ate a file called reportframework.sar.dodeploy


      Please let me know how to fix this or please point me to any reference/links.


      regards,

      Adam