1 Reply Latest reply on Jul 11, 2012 10:34 AM by Christian Sadilek

    2.0.0.Final -> 2.0.1.Final upgrade and "WELD-001408 Unsatisfied dependencies for type [RequestDispatcher]..."

    slawek t Novice

      Hi, After upgrade to Errai 2.0.1.Final, during deployment I receive stack trace like that:

       

      21:55:57,373 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC00001: Failed to start service jboss.deployment.unit."proj.war".WeldService: org.jboss.msc.service.StartException in service jboss.deployment.unit."proj.war".WeldService: org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [RequestDispatcher] with qualifiers [@Default] at injection point [[field] @Inject private com.squap.dmslight.server.notification.ChangeNotificationHandler.dispatcher]

           at org.jboss.as.weld.services.WeldService.start(WeldService.java:96)

           at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]

           at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]

           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [:1.7.0_01]

           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [:1.7.0_01]

           at java.lang.Thread.run(Thread.java:722) [:1.7.0_01]

      Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [RequestDispatcher] with qualifiers [@Default] at injection point [[field] @Inject private com.company.proj.server.notification.ChangeNotificationHandler.dispatcher]

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

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

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

           at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:351)

           at org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:336)

           at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:404)

           at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:82)

           at org.jboss.as.weld.services.WeldService.start(WeldService.java:89)

           ... 5 more

       

      How to solve the issue?