13 Replies Latest reply on May 31, 2016 3:50 AM by nickarls

    WELD-001409: Ambiguous dependencies for type HttpSession with qualifiers @Default

    educlj

      Dear community,

       

      I have a war that is running smooth on JBoss 6.1. It happens that I need to bring it to Wildfly 10 and, after going through a lot of minor adjustments, I got stuck on the problem you can see below.

      Does anyone have a tip or advice about what I shall do to finish my ambiguity problem?

       

      Any help is quite welcome.

      Thanks in advance!

      ______________________________________________

      13:51:22,922 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service jboss.deployment.unit."int.war".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."int.war".WeldStartService: Failed to start service

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904)

          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

          at java.lang.Thread.run(Thread.java:745)

      Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001409: Ambiguous dependencies for type HttpSession with qualifiers @Default

        at injection point [BackedAnnotatedField] @Inject org.jboss.seam.security.IdentityImpl.session

        at org.jboss.seam.security.IdentityImpl.session(IdentityImpl.java:0)

      Possible dependencies:

        - WELD%AbstractBuiltInBean%int.war/WEB-INF/lib/seam-security-3.1.0.Final.jar%HttpSession,

        - Producer Method [HttpSession] with qualifiers [@Any @Default] declared as [[BackedAnnotatedMethod] @Produces @RequestScoped protected org.jboss.solder.servlet.http.ImplicitHttpServletObjectsProducer.getHttpSession()]

       

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

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

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

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

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

          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:63)

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

          at java.util.concurrent.FutureTask.run(FutureTask.java:266)

          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

          at java.lang.Thread.run(Thread.java:745)

          at org.jboss.threads.JBossThread.run(JBossThread.java:320)