ERROR:New missing/unsatisfied dependencies. While Migrating app from jBoss 5.1 to EAP 7
verma.pankaj Oct 24, 2016 9:53 AMHi,
I am trying to migrate a webapp based on JDK 1.5 running on JBoss 5.1. My application is war archive(Maven Multi module project) having dependent jar in its class-path (myApp.war/WEB-INF/lib/dependent.jar).
For this purpose I have upgraded JDK to 1.8 and Spring 2.x to Spring 4.x and hibernate 3.x to 5.x.
On starting the server(standalone.bat) by putting the war in JBOSS_BASE/standalone/deployments its giving me error.
Error Logs :
15:24:48,677 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "myApp.war")]) - failure description: {"WFLYCTL0180: Services with missing/unavailable dependencies" => [
"jboss.deployment.unit.\"myApp.war\".WeldStartService is missing [jboss.deployment.subunit.\"myApp.war\".\"dependentJar.jar\".jndiDependencyService]",
"jboss.deployment.subunit.\"myApp.war\".\"dependentJar.jar\".batch.environment is missing [jboss.deployment.subunit.\"myApp.war\".\"dependentJar.jar\".beanmanager]",
"jboss.deployment.subunit.\"myApp.war\".\"dependentJar.jar\".INSTALL is missing [jboss.naming.context.java.app.\"dependentJar\"]",
"jboss.deployment.unit.\"myApp.war\".deploymentCompleteService is missing [jboss.deployment.subunit.\"myApp.war\".\"dependentJar.jar\".deploymentCompleteService]"
]}
15:24:48,733 INFO [org.jboss.as.server] (ServerService Thread Pool -- 34) WFLYSRV0010: Deployed "myApp.war" (runtime-name : "myApp.war")
15:24:48,765 INFO [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183: Service status report
WFLYCTL0184: New missing/unsatisfied dependencies:
service jboss.deployment.subunit."myApp.war"."dependentJar.jar".beanmanager (missing) dependents: [service jboss.deployment.subunit."myApp.war"."dependentJar.jar".batch.environment]
service jboss.deployment.subunit."myApp.war"."dependentJar.jar".deploymentCompleteService (missing) dependents: [service jboss.deployment.unit."myApp.war".deploymentCompleteService]
service jboss.deployment.subunit."myApp.war"."dependentJar.jar".jndiDependencyService (missing) dependents: [service jboss.deployment.unit."myApp.war".WeldStartService]
service jboss.naming.context.java.app."dependentJar" (missing) dependents: [service jboss.deployment.subunit."myApp.war"."dependentJar.jar".INSTALL]
15:24:48,909 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:9991/management
15:24:48,929 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:9991
15:24:48,949 ERROR [org.jboss.as] (Controller Boot Thread) WFLYSRV0026: JBoss EAP 7.0.0.GA (WildFly Core 2.1.2.Final-redhat-1) started (with errors) in 12411ms - Started 774 of 1354 services (290 services failed or missing dependencies, 385 services are lazy, passive or on-demand)
15:24:49,032 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 15) WFLYJPA0004: Stopping Persistence Unit Service 'myApp.war#myApp'
15:24:49,110 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) WFLYSRV0208: Stopped subdeployment (runtime-name: dependentJar.jar) in 84ms
15:24:49,557 INFO [org.jboss.as.server.deployment] (MSC service thread 1-3) WFLYSRV0028: Stopped deployment myApp.war (runtime-name: myApp.war) in 535ms
15:24:49,633 INFO [org.jboss.as.repository] (DeploymentScanner-threads - 1) WFLYDR0002: Content removed from location JBOSS_BASE\standalone\data\content\fa\033129dde3bd0c15f556950c52ebcfdbbb7aee\content
15:24:49,641 INFO [org.jboss.as.server] (DeploymentScanner-threads - 1) WFLYSRV0009: Undeployed "myApp.war" (runtime-name: "myApp.war")
15:24:49,662 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 1) WFLYCTL0183: Service status report
WFLYCTL0184: New missing/unsatisfied dependencies:
service jboss.deployment.unit."myApp.war".WeldBootstrapService (missing) dependents: [service jboss.deployment.unit."myApp.war".component."com.jgeppert.struts2.jquery.views.jsp.ui.DialogTag".WeldInstantiator, service jboss.deployment.unit."myApp.war".component."org.springframework.web.servlet.tags.form.CheckboxesTag".WeldInstantiator, service jboss.deployment.unit."myApp.war".component."org.apache.struts2.views.jsp.ui.DoubleSelectTag".WeldInstantiator, service jboss.deployment.unit."myApp.war".component."org.apache.struts2.views.jsp.ElseIfTag".WeldInstantiator, WFLYCTL0208: ... and 140 more ]
I have tried googling the error but could only found One link unavailable dependencies => .beanmanager
Problem still persists even after following the solution in the link by creating a marker beans.xml file.
Surprisingly if I create a module in my JBOSS_BASE/modules folder for the dependent.jar and adding the entry in jboss-deployement-structure.xml, then I don't get this error.
Regards,
Pankaj Verma