0 Replies Latest reply on May 12, 2014 6:00 AM by Amit Jain

    Unable to deploy Jersey2.7 application on WildFly 8

    Amit Jain Newbie

      I am upgrading existing Jersey1 application to Jersey2. While deployment of this application in WF8 I am getting below WELD exception


      15:12:32,093 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC000001: Failed to start service jboss.deployment.unit."pd-web-consumer.war".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."pd-web-consumer.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_25]

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

        at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_25]

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

        at injection point [BackedAnnotatedParameter] Parameter 1 of [BackedAnnotatedConstructor] @Inject private org.glassfish.hk2.internal.ImmediateHelper(ServiceLocator)

        at org.glassfish.hk2.internal.ImmediateHelper.<init>(ImmediateHelper.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$Sync.innerRun(FutureTask.java:334) [rt.jar:1.7.0_25]

        at java.util.concurrent.FutureTask.run(FutureTask.java:166) [rt.jar:1.7.0_25]

        ... 3 more

       

       

      15:12:32,109 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 1) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "pd-web-consumer.war")]) - failure description: {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"pd-web-consumer.war\".WeldStartService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"pd-web-consumer.war\".WeldStartService: Failed to start service

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

        at injection point [BackedAnnotatedParameter] Parameter 1 of [BackedAnnotatedConstructor] @Inject private org.glassfish.hk2.internal.ImmediateHelper(ServiceLocator)

        at org.glassfish.hk2.internal.ImmediateHelper.<init>(ImmediateHelper.java:0)

      "}}

       

      Does anyone tried wildfly with Jersey2.7 ?

       

      Dependency tree :

       

      [INFO] +- org.glassfish.jersey.core:jersey-client:jar:2.7:compile

      [INFO] |  +- org.glassfish.jersey.core:jersey-common:jar:2.7:compile

      [INFO] |  |  +- (javax.ws.rs:javax.ws.rs-api:jar:2.0:compile - omitted for duplicate)

      [INFO] |  |  +- javax.annotation:javax.annotation-api:jar:1.2:compile

      [INFO] |  |  +- org.glassfish.jersey.bundles.repackaged:jersey-guava:jar:2.7:compile

      [INFO] |  |  +- (org.glassfish.hk2:hk2-api:jar:2.2.0:compile - omitted for duplicate)

      [INFO] |  |  +- (org.glassfish.hk2.external:javax.inject:jar:2.2.0:compile - omitted for duplicate)

      [INFO] |  |  +- (org.glassfish.hk2:hk2-locator:jar:2.2.0:compile - omitted for duplicate)

      [INFO] |  |  \- org.glassfish.hk2:osgi-resource-locator:jar:1.0.1:compile

      [INFO] |  +- javax.ws.rs:javax.ws.rs-api:jar:2.0:compile

      [INFO] |  +- org.glassfish.hk2:hk2-api:jar:2.2.0:compile

      [INFO] |  |  +- org.glassfish.hk2:hk2-utils:jar:2.2.0:compile

      [INFO] |  |  \- org.glassfish.hk2.external:aopalliance-repackaged:jar:2.2.0:compile

      [INFO] |  +- org.glassfish.hk2.external:javax.inject:jar:2.2.0:compile

      [INFO] |  \- org.glassfish.hk2:hk2-locator:jar:2.2.0:compile

      [INFO] |     +- (org.glassfish.hk2.external:javax.inject:jar:2.2.0:compile - omitted for duplicate)

      [INFO] |     +- (org.glassfish.hk2.external:aopalliance-repackaged:jar:2.2.0:compile - omitted for duplicate)

      [INFO] |     +- (org.glassfish.hk2:hk2-api:jar:2.2.0:compile - omitted for duplicate)

      [INFO] |     +- (org.glassfish.hk2:hk2-utils:jar:2.2.0:compile - omitted for duplicate)

      [INFO] |     \- (org.javassist:javassist:jar:3.18.1-GA:compile - version managed from 3.15.0-GA; omitted for duplicate)