0 Replies Latest reply on May 19, 2014 11:10 AM by Ahsan Shaikh

    Jersey 2x with wildfly deployment failed

    Ahsan Shaikh Newbie

      I am using Jersey 2x with Wildfly but getting exceptions on deployment.

       

      I also added dependencies as mentioned in Jersey2 application is not getting deployed to WildFly 8 , but no luck yet . I am getting the same exception on deployment of Jersey 2x  based war.

       

      please find attached file for dependencies.

       

      any suggestion ?

       

      MSC000001: Failed to start service jboss.deployment.unit."MyApplication.war".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit.".war".WeldStartService: Failed to start service

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904) [jboss-msc-1.2.0.Final.jar:1.2.0.Final]

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45]

        at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]

      Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type Providers with qualifiers @Default

        at injection point [BackedAnnotatedParameter] Parameter 1 of [BackedAnnotatedConstructor] @Inject public org.glassfish.jersey.media.multipart.internal.MultiPartReaderServerSide(@Context Providers, Provider<CloseableService>)

        at org.glassfish.jersey.media.multipart.internal.MultiPartReaderServerSide.<init>(MultiPartReaderServerSide.java:0)

       

       

       

       

        at org.jboss.weld.bootstrap.Validator.validateInjectionPointForDeploymentProblems(Validator.java:368)

        at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:289)

        at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:135)

        at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:166)

        at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:514)

        at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:68)

        at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:66)

        at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:60)

        at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:53)

        at java.util.concurrent.FutureTask.run(FutureTask.java:262) [rt.jar:1.7.0_45]

        ... 3 more

       

       

       

       

      16:08:41,338 ERROR [org.jboss.as.controller.management-operation] (XNIO-1 task-3) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "MyApplication.war")]) - failure description: {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"MyApplication.war\".WeldStartService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"MyApplication.war\".WeldStartService: Failed to start service

          Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type Providers with qualifiers @Default

        at injection point [BackedAnnotatedParameter] Parameter 1 of [BackedAnnotatedConstructor] @Inject public org.glassfish.jersey.media.multipart.internal.MultiPartReaderServerSide(@Context Providers, Provider<CloseableService>)

        at org.glassfish.jersey.media.multipart.internal.MultiPartReaderServerSide.<init>(MultiPartReaderServerSide.java:0)

      "}}

      16:08:41,341 ERROR [org.jboss.as.server] (XNIO-1 task-3) JBAS015870: Deploy of deployment "MyApplication.war" was rolled back with the following failure message:

      {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"MyApplication.war\".WeldStartService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"MyApplication.war\".WeldStartService: Failed to start service

          Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type Providers with qualifiers @Default

        at injection point [BackedAnnotatedParameter] Parameter 1 of [BackedAnnotatedConstructor] @Inject public org.glassfish.jersey.media.multipart.internal.MultiPartReaderServerSide(@Context Providers, Provider<CloseableService>)

        at org.glassfish.jersey.media.multipart.internal.MultiPartReaderServerSide.<init>(MultiPartReaderServerSide.java:0)

      "}}

      16:08:41,345 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-2) JBAS010418: Stopped Driver service with driver-name = MyApplication.war_com.microsoft.sqlserver.jdbc.SQLServerDriver_2_0

      16:08:41,345 INFO  [org.jboss.weld.deployer] (MSC service thread 1-8) JBAS016009: Stopping weld service for deployment MyApplication.war

      16:08:41,446 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015877: Stopped deployment MyApplication.war (runtime-name: MyApplication.war) in 105ms

      16:08:41,450 INFO  [org.jboss.as.controller] (XNIO-1 task-3) JBAS014774: Service status report

      JBAS014775:    New missing/unsatisfied dependencies:

            service jboss.deployment.unit."MyApplication.war".WeldBootstrapService (missing) dependents: [service jboss.deployment.unit."MyApplication.war".CdiValidatorFactoryService, service jboss.deployment.unit."MyApplication.war".component."com.sun.faces.config.ConfigureListener".WeldInstantiator, service jboss.deployment.unit."MyApplication.war".component."org.jboss.weld.servlet.WeldTerminalListener".WeldInstantiator, service jboss.deployment.unit."MyApplication.war".component."org.jboss.weld.servlet.WeldInitialListener".WeldInstantiator, JBAS014799: ... and 7 more ]

            service jboss.deployment.unit."MyApplication.war".WeldStartService (missing) dependents: [service jboss.deployment.unit."MyApplication.war".CdiValidatorFactoryService, service jboss.deployment.unit."MyApplication.war".component."com.sun.faces.config.ConfigureListener".WeldInstantiator, service jboss.deployment.unit."MyApplication.war".component."org.jboss.weld.servlet.WeldTerminalListener".WeldInstantiator, service jboss.deployment.unit."MyApplication.war".component."org.jboss.weld.servlet.WeldInitialListener".WeldInstantiator, JBAS014799: ... and 4 more ]

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

            service jboss.deployment.unit."MyApplication.war".component."com.sun.faces.config.ConfigureListener".START (missing) dependents: [service jboss.deployment.unit."MyApplication.war".deploymentCompleteService, service jboss.undertow.deployment.default-server.default-host./MyApplication, service jboss.undertow.deployment.default-server.default-host./MyApplication.UndertowDeploymentInfoService]

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

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

            service jboss.deployment.unit."MyApplication.war".component."javax.faces.webapp.FacetTag".START (missing) dependents: [service jboss.undertow.deployment.default-server.default-host./MyApplication, service jboss.undertow.deployment.default-server.default-host./MyApplication.UndertowDeploymentInfoService]

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

            service jboss.deployment.unit."MyApplication.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".CREATE (missing) dependents: [service jboss.deployment.unit."MyApplication.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".START]

            service jboss.deployment.unit."MyApplication.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".START (missing) dependents: [service jboss.undertow.deployment.default-server.default-host./MyApplication, service jboss.undertow.deployment.default-server.default-host./MyApplication.UndertowDeploymentInfoService]

            service jboss.deployment.unit."MyApplication.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".WeldInstantiator (missing) dependents: [service jboss.deployment.unit."MyApplication.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".START]

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

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

            service jboss.deployment.unit."MyApplication.war".component."org.glassfish.jersey.servlet.ServletContainer".CREATE (missing) dependents: [service jboss.deployment.unit."MyApplication.war".component."org.glassfish.jersey.servlet.ServletContainer".START]

            service jboss.deployment.unit."MyApplication.war".component."org.glassfish.jersey.servlet.ServletContainer".START (missing) dependents: [service jboss.undertow.deployment.default-server.default-host./MyApplication, service jboss.undertow.deployment.default-server.default-host./MyApplication.UndertowDeploymentInfoService]

            service jboss.deployment.unit."MyApplication.war".component."org.glassfish.jersey.servlet.ServletContainer".WeldInstantiator (missing) dependents: [service jboss.deployment.unit."MyApplication.war".component."org.glassfish.jersey.servlet.ServletContainer".START]

            service jboss.deployment.unit."MyApplication.war".component."org.jboss.weld.servlet.WeldInitialListener".CREATE (missing) dependents: [service jboss.deployment.unit."MyApplication.war".component."org.jboss.weld.servlet.WeldInitialListener".START]

            service jboss.deployment.unit."MyApplication.war".component."org.jboss.weld.servlet.WeldInitialListener".START (missing) dependents: [service jboss.deployment.unit."MyApplication.war".deploymentCompleteService, service jboss.undertow.deployment.default-server.default-host./MyApplication, service jboss.undertow.deployment.default-server.default-host./MyApplication.UndertowDeploymentInfoService]

            service jboss.deployment.unit."MyApplication.war".component."org.jboss.weld.servlet.WeldInitialListener".WeldInstantiator (missing) dependents: [service jboss.deployment.unit."MyApplication.war".component."org.jboss.weld.servlet.WeldInitialListener".START]

            service jboss.deployment.unit."MyApplication.war".component."org.jboss.weld.servlet.WeldTerminalListener".CREATE (missing) dependents: [service jboss.deployment.unit."MyApplication.war".component."org.jboss.weld.servlet.WeldTerminalListener".START]

            service jboss.deployment.unit."MyApplication.war".component."org.jboss.weld.servlet.WeldTerminalListener".START (missing) dependents: [service jboss.undertow.deployment.default-server.default-host./MyApplication, service jboss.undertow.deployment.default-server.default-host./MyApplication.UndertowDeploymentInfoService]

            service jboss.deployment.unit."MyApplication.war".component."org.jboss.weld.servlet.WeldTerminalListener".WeldInstantiator (missing) dependents: [service jboss.deployment.unit."MyApplication.war".component."org.jboss.weld.servlet.WeldTerminalListener".START]

            service jboss.deployment.unit."MyApplication.war".ee.ComponentRegistry (missing) dependents: [service jboss.undertow.deployment.default-server.default-host./MyApplication.UndertowDeploymentInfoService]

            service jboss.deployment.unit."MyApplication.war".jndiDependencyService (missing) dependents: [service jboss.deployment.unit."MyApplication.war".component."org.jboss.weld.servlet.WeldTerminalListener".START, service jboss.deployment.unit."MyApplication.war".component."javax.faces.webapp.FacetTag".START, service jboss.deployment.unit."MyApplication.war".component."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".START, service jboss.deployment.unit."MyApplication.war".component."com.sun.faces.config.ConfigureListener".START, JBAS014799: ... and 4 more ]

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

            service jboss.undertow.deployment.default-server.default-host./MyApplication.UndertowDeploymentInfoService (missing) dependents: [service jboss.undertow.deployment.default-server.default-host./MyApplication]

            service jboss.undertow.deployment.default-server.default-host./MyApplication.codec (missing) dependents: [service jboss.undertow.deployment.default-server.default-host./MyApplication.UndertowDeploymentInfoService]

      JBAS014777:   Services which failed to start:      service jboss.deployment.unit."MyApplication.war".WeldStartService