5 Replies Latest reply on Nov 23, 2016 2:56 AM by jaikiran

    ERROR:New missing/unsatisfied dependencies. While Migrating app from jBoss 5.1 to EAP 7

    verma.pankaj

      Hi,

       

      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

        • 1. Re: ERROR:New missing/unsatisfied dependencies. While Migrating app from jBoss 5.1 to EAP 7
          srivastava.rajat

          I am also facing the same problem. Request help.

          • 2. Re: ERROR:New missing/unsatisfied dependencies. While Migrating app from jBoss 5.1 to EAP 7
            ctomc

            Rajat Srivastava wrote:

             

            I am also facing the same problem. Request help.

            Exact same? Right?

            If so, can you paste the missing part of stacktrace of original poster so anyone could help you both.

             

            and btw, you *ask* for help not "request" it.

            • 3. Re: ERROR:New missing/unsatisfied dependencies. While Migrating app from jBoss 5.1 to EAP 7
              srivastava.rajat

              Hi..

              I'm migrating my webapp from jboss eap 5.0/java 5 to jboss eap 7.0/java 8. In that I'm facing New missing/unsatisfied dependencies: issue.

              My webapp requires one more web app to be deployed at the same server but some dependencies are creating conflicts. Below are the steps I have performed till now.

              Step 1 :     I deploy war1 on jboss eap 7/java 8.

              Step 2 :     Find some missing dependencies and classes.

              Step 3 :     Add missing dependencies.

              Step 4 :     War1 runs successfully.

              Step 5 :     I deploy war2 but some dependencies are common in both. Dependencies which are common in both are :

                  1. jboss-jsf-api_2.2_spec-2.2.12.redhat-1.jar
                  2. jsf-impl-2.2.12.redhat-1.jar
                  3. jboss-jstl-api_1.2_spec-1.0.4.Final.jar.

              Step 6 :     Some classes are not being picked from these jars even if these are present. e.g.

                  1. javax.faces.webapp.FacetTag from jboss-jsf-api_2.2_spec-2.2.12.redhat-1.jar
                  2. com.sun.faces.config.ConfigureListener from jsf-impl-2.2.12.redhat-1.jar
                  3. javax.servlet.jsp.jstl.tlv.ScriptFreeTLV from jboss-jstl-api_1.2_spec-1.0.4.Final.jar
                  4. javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV from jboss-jstl-api_1.2_spec-1.0.4.Final.jar

              Step 7 :     I manually download these jars from maven.java.net and use them instead of jboss provided jars.

              Step 8 :    War2 runs successfully.

              Step 9 :    But then I see, some classes of jstl-api-1.2.jar (downloaded from above site) creates problem in war1.

              Step 10 :  For war1, jboss provided jar is running fine and for war2 manually downloaded jar is running fine.

              Step 11 :  So for this I follow slot concept of modules in which we can mention slot as well. Create one more slot along with main(default) slot and

                               use it for war2. But unfortunately slot concept is not helping me at all. Please find below the complete stacktrace.

               

              9:02:06,361 INFO  [org.hibernate.tuple.PojoInstantiator] (ServerService Thread Pool -- 129) HHH000182: No default (no-argument) constructor for class: com.war.backend.domain.PurgeArchiveBatchLog (class must be instantiated by Interceptor)

              19:02:06,518 INFO  [org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean] (ServerService Thread Pool -- 129) Initialized JPA EntityManagerFactory for persistence unit 'war1'

              19:02:07,596 INFO  [org.springframework.security.web.DefaultSecurityFilterChain] (ServerService Thread Pool -- 129) Creating filter chain: org.springframework.security.web.util.matcher.AnyRequestMatcher@1, [org.springframework.security.web.context.SecurityContextPersistenceFilter@32bf78f9, org.springframework.security.web.session.ConcurrentSessionFilter@2484e503, org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@1ce360bf, org.springframework.security.web.header.HeaderWriterFilter@cc27b44, org.springframework.security.web.authentication.logout.LogoutFilter@7d01be92, org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter@5dac3f47, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@1c883011, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@3ce2ef9f, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@484e433c, org.springframework.security.web.session.SessionManagementFilter@56cca093, org.springframework.security.web.access.ExceptionTranslationFilter@6b0aeb85, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@7b12b953]

              19:02:07,679 INFO  [org.springframework.web.context.ContextLoader] (ServerService Thread Pool -- 129) Root WebApplicationContext: initialization completed in 3161 ms

              Nov 09, 2016 07:02:07.837 PM INFO  org.apache.tiles.access.TilesAccess - Publishing TilesContext for context: org.apache.struts2.tiles.StrutsWildcardServletApplicationContext

              19:02:07,852 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 129) Initializing Mojarra 2.2.12-jbossorg-2  for context '/war1'

              19:02:09,603 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 129) WFLYUT0021: Registered web context: /war1

              19:02:09,618 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "war2.war")]) - failure description: {"WFLYCTL0180: Services with missing/unavailable dependencies" => [

                  "jboss.deployment.subunit.\"war2.war\".classes.INSTALL is missing [jboss.naming.context.java.app.classes]",

                  "jboss.deployment.unit.\"war2.war\".deploymentCompleteService is missing [jboss.deployment.subunit.\"war2.war\".classes.deploymentCompleteService]"

              ]}

              19:02:09,649 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 34) WFLYSRV0010: Deployed "war1.war" (runtime-name : "war1.war")

              19:02:09,649 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 34) WFLYSRV0010: Deployed "war2.war" (runtime-name : "war2.war")

              19:02:09,665 INFO  [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183: Service status report

              WFLYCTL0184:    New missing/unsatisfied dependencies:

                    service jboss.deployment.subunit."war2.war".classes.deploymentCompleteService (missing) dependents: [service jboss.deployment.unit."war2.war".deploymentCompleteService]

                    service jboss.naming.context.java.app.classes (missing) dependents: [service jboss.deployment.subunit."war2.war".classes.INSTALL]

               

               

               

               

              19:02:09,774 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:9990/management

              19:02:09,790 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:9990

              19:02:09,790 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 19231ms - Started 960 of 1260 services (3 services failed or missing dependencies, 396 services are lazy, passive or on-demand)

              19:02:09,837 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 8) WFLYUT0022: Unregistered web context: /war2

              19:02:09,868 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) WFLYSRV0208: Stopped subdeployment (runtime-name: classes) in 38ms

              19:02:09,899 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) WFLYSRV0028: Stopped deployment war2.war (runtime-name: war2.war) in 78ms

              19:02:09,962 INFO  [org.jboss.as.repository] (DeploymentScanner-threads - 1) WFLYDR0002: Content removed from location D:\Softwares\Servers\jboss-eap-7.0\standalone\data\content\54\1663297b076e9d3685a879647bf38b66569afc\content

              19:02:09,962 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 1) WFLYSRV0009: Undeployed "war2.war" (runtime-name: "war2.war")

              19:02:09,962 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 1) WFLYCTL0183: Service status report

              WFLYCTL0184:    New missing/unsatisfied dependencies:

                    service jboss.deployment.unit."war2.war".component."com.sun.faces.config.ConfigureListener".START (missing) dependents: [service jboss.deployment.unit."war2.war".deploymentCompleteService]

                    service jboss.deployment.unit."war2.war".component."javax.faces.webapp.FacetTag".START (missing) dependents: [service jboss.deployment.unit."war2.war".deploymentCompleteService]

                    service jboss.deployment.unit."war2.war".component."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".START (missing) dependents: [service jboss.deployment.unit."war2.war".deploymentCompleteService]

                    service jboss.naming.context.java.module.classes.classes (missing) dependents: [service jboss.deployment.subunit."war2.war".classes.INSTALL]

                    service jboss.undertow.deployment.default-server.default-host./war2(missing) dependents: [service jboss.deployment.unit."war2.war".deploymentCompleteService]

               

               

              Thanks

              • 4. Re: ERROR:New missing/unsatisfied dependencies. While Migrating app from jBoss 5.1 to EAP 7
                piyushgoel996

                Hi..I'm also facing the same issue. Please help anybody.

                • 5. Re: ERROR:New missing/unsatisfied dependencies. While Migrating app from jBoss 5.1 to EAP 7
                  jaikiran

                  Piyush Goel wrote:

                   

                  Hi..I'm also facing the same issue. Please help anybody.

                  You probably might have already noticed in this thread, not all "Missing dependencies" are the same issue. Just adding a "me too" kind of reply won't usually generate helpful responses. Please create a separate thread in relevant forum with precise description of the issue, including details about the server version and the relevant logs and stacktraces, so that someone can then attempt to help.