2 Replies Latest reply on Jun 10, 2013 6:47 AM by martin naughton

    Weld dependency problem but can not understand the exception

    martin naughton Newbie

      Hey All,

                 I find it very hard to understand the output of the exception produced by arquillian to do with Weld. It seems that weld can not find dependcies My application does not depend on these but Weld does.

       

      When reading this output is it saying that it can not find that JspInitializationListener class in the test.war directory?I do not expect it to be there. Also where is the component folder coming from?

      "jboss.deployment.subunit.\"CMReaderEEIBLOY.ear\".\"test.war\".component.\"org.jboss.as.weld.webtier.jsp.JspInitializationListener\".START Missing[JBAS014861: <one or more transitive dependencies>]",

      I can see in my jboss modules that the jar and class are there.

      /jboss-as-7.1.1.Final/modules/org/jboss/as/weld/main$ jar -tf jboss-as-weld-7.1.1.Final.jar

      org/jboss/as/weld/webtier/jsp/JspInitializationListener.class

       

       

       

      Is there one problem in this print out that is causing all the other services to have a problem? This seems like a list instead of a stack also.

      • org.jboss.arquillian.container.spi.client.container.DeploymentException: Could not deploy to container: {

          "JBAS014671: Failed services" => {"jboss.deployment.unit.\"CMReaderEEIBLOY.ear\".WeldService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"CMReaderEEIBLOY.ear\".WeldService: org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [CMReaderHope] with qualifiers [@Default] at injection point [[field] @Inject com.ericsson.oss.services.cm.cmreader.impl.test.integration.test.jar.CMReaderHopeTest.cmReaderHope]

          Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [CMReaderHope] with qualifiers [@Default] at injection point [[field] @Inject com.ericsson.oss.services.cm.cmreader.impl.test.integration.test.jar.CMReaderHopeTest.cmReaderHope]"},

          "JBAS014771: Services with missing/unavailable dependencies" => [

      "jboss.deployment.subunit.\"CMReaderEEIBLOY.ear\".\"test.war\".component.\"org.jboss.as.weld.webtier.jsp.JspInitializationListener\".START Missing[JBAS014861: <one or more transitive dependencies>]",

      "jboss.deployment.subunit.\"CMReaderEEIBLOY.ear\".\"test.war\".component.\"org.apache.jasper.servlet.JspServlet\".START Missing[JBAS014861: <one or more transitive dependencies>]",

      "jboss.deployment.subunit.\"CMReaderEEIBLOY.ear\".\"test.war\".jboss.security.jacc Missing[JBAS014861: <one or more transitive dependencies>]",

      "jboss.deployment.subunit.\"CMReaderEEIBLOY.ear\".\"test.war\".component.\"org.apache.catalina.servlets.DefaultServlet\".WeldInstantiator Missing[JBAS014861: <one or more transitive dependencies>]",

              "jboss.web.deployment.default-host./test Missing[JBAS014861: <one or more transitive dependencies>]",

      "jboss.deployment.subunit.\"CMReaderEEIBLOY.ear\".\"test.war\".component.\"javax.faces.webapp.FacetTag\".START Missing[JBAS014861: <one or more transitive dependencies>]",

      "jboss.naming.context.java.module.CMReaderEEIBLOY.test.BeanManager Missing[JBAS014861: <one or more transitive dependencies>]",

      "jboss.deployment.subunit.\"CMReaderEEIBLOY.ear\".\"test.war\".component.\"org.jboss.arquillian.protocol.servlet.runner.ServletTestRunner\".START Missing[JBAS014861: <one or more transitive dependencies>]",

      "jboss.deployment.subunit.\"CMReaderEEIBLOY.ear\".\"test.war\".component.\"org.apache.catalina.servlets.DefaultServlet\".START Missing[JBAS014861: <one or more transitive dependencies>]",

      "jboss.deployment.subunit.\"CMReaderEEIBLOY.ear\".\"test.war\".beanmanager Missing[JBAS014861: <one or more transitive dependencies>]",

      "jboss.deployment.subunit.\"CMReaderEEIBLOY.ear\".\"test.war\".component.\"com.sun.faces.config.ConfigureListener\".START Missing[JBAS014861: <one or more transitive dependencies>]",

      "jboss.deployment.subunit.\"CMReaderEEIBLOY.ear\".\"test.war\".component.\"javax.servlet.jsp.jstl.tlv.ScriptFreeTLV\".WeldInstantiator Missing[JBAS014861: <one or more transitive dependencies>]",

      "jboss.deployment.subunit.\"CMReaderEEIBLOY.ear\".\"test.war\".component.\"com.sun.faces.config.ConfigureListener\".WeldInstantiator Missing[JBAS014861: <one or more transitive dependencies>]",

      "jboss.deployment.subunit.\"CMReaderEEIBLOY.ear\".\"test.war\".jndiDependencyService Missing[JBAS014861: <one or more transitive dependencies>]",

      "jboss.deployment.subunit.\"CMReaderEEIBLOY.ear\".\"test.war\".component.\"javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV\".WeldInstantiator Missing[JBAS014861: <one or more transitive dependencies>]",

      "jboss.deployment.subunit.\"CMReaderEEIBLOY.ear\".\"test.war\".component.\"org.jboss.arquillian.protocol.servlet.runner.ServletTestRunner\".WeldInstantiator Missing[JBAS014861: <one or more transitive dependencies>]",

      "jboss.deployment.subunit.\"CMReaderEEIBLOY.ear\".\"test.war\".component.\"javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV\".START Missing[JBAS014861: <one or more transitive dependencies>]",

      "jboss.deployment.unit.\"CMReaderEEIBLOY.ear\".beanmanager Missing[JBAS014861: <one or more transitive dependencies>]",

      "jboss.deployment.subunit.\"CMReaderEEIBLOY.ear\".\"test.war\".component.\"javax.servlet.jsp.jstl.tlv.ScriptFreeTLV\".START Missing[JBAS014861: <one or more transitive dependencies>]",

      "jboss.deployment.subunit.\"CMReaderEEIBLOY.ear\".\"test.war\".component.\"javax.faces.webapp.FacetTag\".WeldInstantiator Missing[JBAS014861: <one or more transitive dependencies>]",

      "jboss.deployment.subunit.\"CMReaderEEIBLOY.ear\".\"test.war\".component.\"org.apache.jasper.servlet.JspServlet\".WeldInstantiator Missing[JBAS014861: <one or more transitive dependencies>]",

      "jboss.deployment.subunit.\"CMReaderEEIBLOY.ear\".\"test.war\".component.\"org.jboss.as.weld.webtier.jsp.JspInitializationListener\".WeldInstantiator Missing[JBAS014861: <one or more transitive dependencies>]"

          ]

      }

                     at org.jboss.as.arquillian.container.ArchiveDeployer.deploy(ArchiveDeployer.java:74)

                     at org.jboss.as.arquillian.container.CommonDeployableContainer.deploy(CommonDeployableContainer.java:148)

                     at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$3.call(ContainerDeployController.java:161)

                     at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$3.call(ContainerDeployController.java:128)

                     at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.executeOperation(ContainerDeployController.java:271)

                     at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.deploy(ContainerDeployController.java:127)

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

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

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

                     at java.lang.reflect.Method.invoke(Unknown Source)

                     at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

                     at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)

                     at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)

                     at org.jboss.arquillian.container.impl.client.container.DeploymentExceptionHandler.verifyExpectedExceptionDuringDeploy(DeploymentExceptionHandler.java:50)

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

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

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

                     at java.lang.reflect.Method.invoke(Unknown Source)

                     at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

                     at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

                     at org.jboss.arquillian.container.impl.client.ContainerDeploymentContextHandler.createDeploymentContext(ContainerDeploymentContextHandler.java:78)

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

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

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

                     at java.lang.reflect.Method.invoke(Unknown Source)

                     at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

                     at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

                     at org.jboss.arquillian.container.impl.client.ContainerDeploymentContextHandler.createContainerContext(ContainerDeploymentContextHandler.java:57)

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

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

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

                     at java.lang.reflect.Method.invoke(Unknown Source)

                     at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

                     at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

                     at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)

                     at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)

                     at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)

                     at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$1.perform(ContainerDeployController.java:95)

                     at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$1.perform(ContainerDeployController.java:80)

                     at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.forEachDeployment(ContainerDeployController.java:263)

                     at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.forEachManagedDeployment(ContainerDeployController.java:239)

                     at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.deployManaged(ContainerDeployController.java:79)

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

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

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

                     at java.lang.reflect.Method.invoke(Unknown Source)

                     at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

                     at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)

                     at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)

                     at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)

                     at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)

                     at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)

                     at org.jboss.arquillian.container.test.impl.client.ContainerEventController.execute(ContainerEventController.java:101)

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

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

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

                     at java.lang.reflect.Method.invoke(Unknown Source)

                     at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

                     at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)

                     at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)

                     at org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:75)

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

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

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

                     at java.lang.reflect.Method.invoke(Unknown Source)

                     at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

                     at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

                     at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:60)

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

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

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

                     at java.lang.reflect.Method.invoke(Unknown Source)

                     at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

                     at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

                     at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)

                     at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)

                     at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.beforeClass(EventTestRunnerAdaptor.java:80)

                     at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:182)

                     at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:314)

                     at org.jboss.arquillian.junit.Arquillian.access$100(Arquillian.java:46)

                     at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:199)

                     at org.junit.runners.ParentRunner.run(ParentRunner.java:300)

                     at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:147)

                     at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)

                     at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)

                     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)

                     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)

                     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)

                     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

      Caused by: java.lang.Exception: {

          "JBAS014671: Failed services" => {"jboss.deployment.unit.\"CMReaderEEIBLOY.ear\".WeldService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"CMReaderEEIBLOY.ear\".WeldService: org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [CMReaderHope] with qualifiers [@Default] at injection point [[field] @Inject com.ericsson.oss.services.cm.cmreader.impl.test.integration.test.jar.CMReaderHopeTest.cmReaderHope]

          Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [CMReaderHope] with qualifiers [@Default] at injection point [[field] @Inject com.ericsson.oss.services.cm.cmreader.impl.test.integration.test.jar.CMReaderHopeTest.cmReaderHope]"},

          "JBAS014771: Services with missing/unavailable dependencies" => [

      "jboss.deployment.subunit.\"CMReaderEEIBLOY.ear\".\"test.war\".component.\"org.jboss.as.weld.webtier.jsp.JspInitializationListener\".START Missing[JBAS014861: <one or more transitive dependencies>]",

      "jboss.deployment.subunit.\"CMReaderEEIBLOY.ear\".\"test.war\".component.\"org.apache.jasper.servlet.JspServlet\".START Missing[JBAS014861: <one or more transitive dependencies>]",

      "jboss.deployment.subunit.\"CMReaderEEIBLOY.ear\".\"test.war\".jboss.security.jacc Missing[JBAS014861: <one or more transitive dependencies>]",

      "jboss.deployment.subunit.\"CMReaderEEIBLOY.ear\".\"test.war\".component.\"org.apache.catalina.servlets.DefaultServlet\".WeldInstantiator Missing[JBAS014861: <one or more transitive dependencies>]",

              "jboss.web.deployment.default-host./test Missing[JBAS014861: <one or more transitive dependencies>]",

      "jboss.deployment.subunit.\"CMReaderEEIBLOY.ear\".\"test.war\".component.\"javax.faces.webapp.FacetTag\".START Missing[JBAS014861: <one or more transitive dependencies>]",

      "jboss.naming.context.java.module.CMReaderEEIBLOY.test.BeanManager Missing[JBAS014861: <one or more transitive dependencies>]",

      "jboss.deployment.subunit.\"CMReaderEEIBLOY.ear\".\"test.war\".component.\"org.jboss.arquillian.protocol.servlet.runner.ServletTestRunner\".START Missing[JBAS014861: <one or more transitive dependencies>]",

      "jboss.deployment.subunit.\"CMReaderEEIBLOY.ear\".\"test.war\".component.\"org.apache.catalina.servlets.DefaultServlet\".START Missing[JBAS014861: <one or more transitive dependencies>]",

      "jboss.deployment.subunit.\"CMReaderEEIBLOY.ear\".\"test.war\".beanmanager Missing[JBAS014861: <one or more transitive dependencies>]",

      "jboss.deployment.subunit.\"CMReaderEEIBLOY.ear\".\"test.war\".component.\"com.sun.faces.config.ConfigureListener\".START Missing[JBAS014861: <one or more transitive dependencies>]",

      "jboss.deployment.subunit.\"CMReaderEEIBLOY.ear\".\"test.war\".component.\"javax.servlet.jsp.jstl.tlv.ScriptFreeTLV\".WeldInstantiator Missing[JBAS014861: <one or more transitive dependencies>]",

      "jboss.deployment.subunit.\"CMReaderEEIBLOY.ear\".\"test.war\".component.\"com.sun.faces.config.ConfigureListener\".WeldInstantiator Missing[JBAS014861: <one or more transitive dependencies>]",

      "jboss.deployment.subunit.\"CMReaderEEIBLOY.ear\".\"test.war\".jndiDependencyService Missing[JBAS014861: <one or more transitive dependencies>]",

      "jboss.deployment.subunit.\"CMReaderEEIBLOY.ear\".\"test.war\".component.\"javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV\".WeldInstantiator Missing[JBAS014861: <one or more transitive dependencies>]",

      "jboss.deployment.subunit.\"CMReaderEEIBLOY.ear\".\"test.war\".component.\"org.jboss.arquillian.protocol.servlet.runner.ServletTestRunner\".WeldInstantiator Missing[JBAS014861: <one or more transitive dependencies>]",

      "jboss.deployment.subunit.\"CMReaderEEIBLOY.ear\".\"test.war\".component.\"javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV\".START Missing[JBAS014861: <one or more transitive dependencies>]",

      "jboss.deployment.unit.\"CMReaderEEIBLOY.ear\".beanmanager Missing[JBAS014861: <one or more transitive dependencies>]",

      "jboss.deployment.subunit.\"CMReaderEEIBLOY.ear\".\"test.war\".component.\"javax.servlet.jsp.jstl.tlv.ScriptFreeTLV\".START Missing[JBAS014861: <one or more transitive dependencies>]",

      "jboss.deployment.subunit.\"CMReaderEEIBLOY.ear\".\"test.war\".component.\"javax.faces.webapp.FacetTag\".WeldInstantiator Missing[JBAS014861: <one or more transitive dependencies>]",

      "jboss.deployment.subunit.\"CMReaderEEIBLOY.ear\".\"test.war\".component.\"org.apache.jasper.servlet.JspServlet\".WeldInstantiator Missing[JBAS014861: <one or more transitive dependencies>]",

      "jboss.deployment.subunit.\"CMReaderEEIBLOY.ear\".\"test.war\".component.\"org.jboss.as.weld.webtier.jsp.JspInitializationListener\".WeldInstantiator Missing[JBAS014861: <one or more transitive dependencies>]"

          ]

      }

                     at org.jboss.as.controller.client.helpers.standalone.impl.ServerDeploymentPlanResultFuture.getActionResult(ServerDeploymentPlanResultFuture.java:134)

                     at org.jboss.as.controller.client.helpers.standalone.impl.ServerDeploymentPlanResultFuture.getResultFromNode(ServerDeploymentPlanResultFuture.java:123)

                     at org.jboss.as.controller.client.helpers.standalone.impl.ServerDeploymentPlanResultFuture.get(ServerDeploymentPlanResultFuture.java:85)

                     at org.jboss.as.controller.client.helpers.standalone.impl.ServerDeploymentPlanResultFuture.get(ServerDeploymentPlanResultFuture.java:42)

                     at org.jboss.as.arquillian.container.ArchiveDeployer.executeDeploymentPlan(ArchiveDeployer.java:91)

                     at org.jboss.as.arquillian.container.ArchiveDeployer.deploy(ArchiveDeployer.java:58)

                     ... 88 more