WELD-001409 Ambiguous dependencies for type [EntityManager]
love-dev.1988 Aug 21, 2014 12:34 AMHi experts,
I imported a jBPM project (Maven) ca!!ed ociWorkflowWeb, but I encounter those errors:
- 05:11:14,454 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC00001: Failed to start service jboss.deployment.unit."ociWorkflowWeb.war".WeldService: org.jboss.msc.service.StartException in service jboss.deployment.unit."ociWorkflowWeb.war".WeldService: org.jboss.weld.exceptions.DeploymentException: Exception List with 3 exceptions:
- Exception 0 :
- org.jboss.weld.exceptions.DeploymentException: WELD-001409 Ambiguous dependencies for type [EntityManager] with qualifiers [@Default] at injection point [[field] @Inject private com.oci.workflow.controller.MemberRegistration.em]. Possible dependencies [[Resource Producer Field[EntityManager] with qualifiers [@Any @Default] declared as [[field] @Produces @PersistenceContext private com.oci.workflow.util.Resources.em], Producer Method [EntityManager] with qualifiers [@Any @Default] declared as [[method] @Produces@ApplicationScoped public org.jbpm.examples.cdi.EnvironmentProducer.getEntityManager()]]]
- at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:278)
- at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:244)
- at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:107)
- at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:127)
- at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:346)
- at org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:331)
- at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:366)
- at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:83)
- at org.jboss.as.weld.services.WeldService.start(WeldService.java:76)
- at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
- at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
- at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
- at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
- at java.lang.Thread.run(Thread.java:745)
- Exception 0 :
- org.jboss.weld.exceptions.DeploymentException: WELD-001409 Ambiguous dependencies for type [EntityManager] with qualifiers [@Default] at injection point [[field] @Inject private com.oci.workflow.rest.MemberResourceRESTService.em]. Possible dependencies [[Resource Producer Field[EntityManager] with qualifiers [@Any @Default] declared as [[field] @Produces @PersistenceContext private com.oci.workflow.util.Resources.em], Producer Method [EntityManager] with qualifiers [@Any @Default] declared as [[method] @Produces@ApplicationScoped public org.jbpm.examples.cdi.EnvironmentProducer.getEntityManager()]]]
- at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:278)
- at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:244)
- at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:107)
- at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:127)
- at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:346)
- at org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:331)
- at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:366)
- at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:83)
- at org.jboss.as.weld.services.WeldService.start(WeldService.java:76)
- at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
- at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
- at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
- at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
- at java.lang.Thread.run(Thread.java:745)
- Exception 0 :
- org.jboss.weld.exceptions.DeploymentException: WELD-001409 Ambiguous dependencies for type [EntityManager] with qualifiers [@Default] at injection point [[field] @Inject private com.oci.workflow.data.MemberListProducer.em]. Possible dependencies [[Resource Producer Field[EntityManager] with qualifiers [@Any @Default] declared as [[field] @Produces @PersistenceContext private com.oci.workflow.util.Resources.em], Producer Method [EntityManager] with qualifiers [@Any @Default] declared as [[method] @Produces@ApplicationScoped public org.jbpm.examples.cdi.EnvironmentProducer.getEntityManager()]]]
- at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:278)
- at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:244)
- at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:107)
- at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:127)
- at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:346)
- at org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:331)
- at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:366)
- at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:83)
- at org.jboss.as.weld.services.WeldService.start(WeldService.java:76)
- at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
- at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
- at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
- at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
- at java.lang.Thread.run(Thread.java:745)
- at org.jboss.as.weld.services.WeldService.start(WeldService.java:83)
- at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
- at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
- at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_55]
- at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_55]
- at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_55]
- Caused by: org.jboss.weld.exceptions.DeploymentException: Exception List with 3 exceptions:
- Exception 0 :
- org.jboss.weld.exceptions.DeploymentException: WELD-001409 Ambiguous dependencies for type [EntityManager] with qualifiers [@Default] at injection point [[field] @Inject private com.oci.workflow.controller.MemberRegistration.em]. Possible dependencies [[Resource Producer Field[EntityManager] with qualifiers [@Any @Default] declared as [[field] @Produces @PersistenceContext private com.oci.workflow.util.Resources.em], Producer Method [EntityManager] with qualifiers [@Any @Default] declared as [[method] @Produces@ApplicationScoped public org.jbpm.examples.cdi.EnvironmentProducer.getEntityManager()]]]
- at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:278)
- at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:244)
- at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:107)
- at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:127)
- at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:346)
- at org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:331)
- at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:366)
- at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:83)
- at org.jboss.as.weld.services.WeldService.start(WeldService.java:76)
- at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
- at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
- at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
- at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
- at java.lang.Thread.run(Thread.java:745)
- Exception 0 :
- org.jboss.weld.exceptions.DeploymentException: WELD-001409 Ambiguous dependencies for type [EntityManager] with qualifiers [@Default] at injection point [[field] @Inject private com.oci.workflow.rest.MemberResourceRESTService.em]. Possible dependencies [[Resource Producer Field[EntityManager] with qualifiers [@Any @Default] declared as [[field] @Produces @PersistenceContext private com.oci.workflow.util.Resources.em], Producer Method [EntityManager] with qualifiers [@Any @Default] declared as [[method] @Produces@ApplicationScoped public org.jbpm.examples.cdi.EnvironmentProducer.getEntityManager()]]]
- at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:278)
- at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:244)
- at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:107)
- at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:127)
- at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:346)
- at org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:331)
- at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:366)
- at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:83)
- at org.jboss.as.weld.services.WeldService.start(WeldService.java:76)
- at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
- at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
- at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
- at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
- at java.lang.Thread.run(Thread.java:745)
- Exception 0 :
- org.jboss.weld.exceptions.DeploymentException: WELD-001409 Ambiguous dependencies for type [EntityManager] with qualifiers [@Default] at injection point [[field] @Inject private com.oci.workflow.data.MemberListProducer.em]. Possible dependencies [[Resource Producer Field[EntityManager] with qualifiers [@Any @Default] declared as [[field] @Produces @PersistenceContext private com.oci.workflow.util.Resources.em], Producer Method [EntityManager] with qualifiers [@Any @Default] declared as [[method] @Produces@ApplicationScoped public org.jbpm.examples.cdi.EnvironmentProducer.getEntityManager()]]]
- at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:278)
- at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:244)
- at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:107)
- at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:127)
- at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:346)
- at org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:331)
- at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:366)
- at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:83)
- at org.jboss.as.weld.services.WeldService.start(WeldService.java:76)
- at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
- at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
- at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
- at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
- at java.lang.Thread.run(Thread.java:745)
- at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:358)
- at org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:331)
- at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:366)
- at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:83)
- at org.jboss.as.weld.services.WeldService.start(WeldService.java:76)
- ... 5 more
- 05:11:14,749 INFO [org.jboss.as.jpa] (MSC service thread 1-4) JBAS011403: Stopping Persistence Unit Service'ociWorkflowWeb.war#org.jbpm.sample'
- 05:11:14,742 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "ociWorkflowWeb.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"ociWorkflowWeb.war\".WeldService" =>"org.jboss.msc.service.StartException in service jboss.deployment.unit.\"ociWorkflowWeb.war\".WeldService: org.jboss.weld.exceptions.DeploymentException: Exception List with 3 exceptions:
- Exception 0 :
- org.jboss.weld.exceptions.DeploymentException: WELD-001409 Ambiguous dependencies for type [EntityManager] with qualifiers [@Default] at injection point [[field] @Inject private com.oci.workflow.controller.MemberRegistration.em]. Possible dependencies [[Resource Producer Field [EntityManager] with qualifiers [@Any @Default] declared as [[field] @Produces @PersistenceContext private com.oci.workflow.util.Resources.em], Producer Method [EntityManager] with qualifiers [@Any @Default] declared as [[method] @Produces @ApplicationScoped public org.jbpm.examples.cdi.EnvironmentProducer.getEntityManager()]]]
- at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:278)
- at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:244)
- at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:107)
- at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:127)
- at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:346)
- at org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:331)
- at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:366)
- at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:83)
- at org.jboss.as.weld.services.WeldService.start(WeldService.java:76)
- at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
- at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
- at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
- at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
- at java.lang.Thread.run(Thread.java:745)
- Exception 0 :
- org.jboss.weld.exceptions.DeploymentException: WELD-001409 Ambiguous dependencies for type [EntityManager] with qualifiers [@Default] at injection point [[field] @Inject private com.oci.workflow.rest.MemberResourceRESTService.em]. Possible dependencies [[Resource Producer Field [EntityManager] with qualifiers [@Any @Default] declared as [[field] @Produces @PersistenceContext private com.oci.workflow.util.Resources.em], Producer Method [EntityManager] with qualifiers [@Any @Default] declared as [[method] @Produces @ApplicationScoped public org.jbpm.examples.cdi.EnvironmentProducer.getEntityManager()]]]
- at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:278)
- at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:244)
- at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:107)
- at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:127)
- at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:346)
- at org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:331)
- at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:366)
- at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:83)
- at org.jboss.as.weld.services.WeldService.start(WeldService.java:76)
- at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
- at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
- at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
- at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
- at java.lang.Thread.run(Thread.java:745)
- Exception 0 :
- org.jboss.weld.exceptions.DeploymentException: WELD-001409 Ambiguous dependencies for type [EntityManager] with qualifiers [@Default] at injection point [[field] @Inject private com.oci.workflow.data.MemberListProducer.em]. Possible dependencies [[Resource Producer Field [EntityManager] with qualifiers [@Any @Default] declared as [[field] @Produces @PersistenceContext private com.oci.workflow.util.Resources.em], Producer Method [EntityManager] with qualifiers [@Any @Default] declared as [[method] @Produces @ApplicationScoped public org.jbpm.examples.cdi.EnvironmentProducer.getEntityManager()]]]
- at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:278)
- at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:244)
- at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:107)
- at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:127)
- at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:346)
- at org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:331)
- at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:366)
- at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:83)
- at org.jboss.as.weld.services.WeldService.start(WeldService.java:76)
- at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
- at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
- at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
- at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
- at java.lang.Thread.run(Thread.java:745)
- "}}
- 05:11:15,558 INFO [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015877: Stopped deployment ociWorkflowWeb.war in 818ms
- 05:11:15,561 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
- JBAS014777: Services which failed to start: service jboss.deployment.unit."ociWorkflowWeb.war".WeldService:org.jboss.msc.service.StartException in service jboss.deployment.unit."ociWorkflowWeb.war".WeldService:org.jboss.weld.exceptions.DeploymentException: Exception List with 3 exceptions:
- Exception 0 :
- org.jboss.weld.exceptions.DeploymentException: WELD-001409 Ambiguous dependencies for type [EntityManager] with qualifiers [@Default] at injection point [[field] @Inject private com.oci.workflow.controller.MemberRegistration.em]. Possible dependencies [[Resource Producer Field[EntityManager] with qualifiers [@Any @Default] declared as [[field] @Produces @PersistenceContext private com.oci.workflow.util.Resources.em], Producer Method [EntityManager] with qualifiers [@Any @Default] declared as [[method] @Produces@ApplicationScoped public org.jbpm.examples.cdi.EnvironmentProducer.getEntityManager()]]]
- at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:278)
- at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:244)
- at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:107)
- at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:127)
- at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:346)
- at org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:331)
- at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:366)
- at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:83)
- at org.jboss.as.weld.services.WeldService.start(WeldService.java:76)
- at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
- at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
- at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
- at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
- at java.lang.Thread.run(Thread.java:745)
- Exception 0 :
- org.jboss.weld.exceptions.DeploymentException: WELD-001409 Ambiguous dependencies for type [EntityManager] with qualifiers [@Default] at injection point [[field] @Inject private com.oci.workflow.rest.MemberResourceRESTService.em]. Possible dependencies [[Resource Producer Field[EntityManager] with qualifiers [@Any @Default] declared as [[field] @Produces @PersistenceContext private com.oci.workflow.util.Resources.em], Producer Method [EntityManager] with qualifiers [@Any @Default] declared as [[method] @Produces@ApplicationScoped public org.jbpm.examples.cdi.EnvironmentProducer.getEntityManager()]]]
- at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:278)
- at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:244)
- at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:107)
- at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:127)
- at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:346)
- at org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:331)
- at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:366)
- at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:83)
- at org.jboss.as.weld.services.WeldService.start(WeldService.java:76)
- at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
- at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
- at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
- at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
- at java.lang.Thread.run(Thread.java:745)
- Exception 0 :
- org.jboss.weld.exceptions.DeploymentException: WELD-001409 Ambiguous dependencies for type [EntityManager] with qualifiers [@Default] at injection point [[field] @Inject private com.oci.workflow.data.MemberListProducer.em]. Possible dependencies [[Resource Producer Field[EntityManager] with qualifiers [@Any @Default] declared as [[field] @Produces @PersistenceContext private com.oci.workflow.util.Resources.em], Producer Method [EntityManager] with qualifiers [@Any @Default] declared as [[method] @Produces@ApplicationScoped public org.jbpm.examples.cdi.EnvironmentProducer.getEntityManager()]]]
- at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:278)
- at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:244)
- at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:107)
- at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:127)
- at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:346)
- at org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:331)
- at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:366)
- at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:83)
- at org.jboss.as.weld.services.WeldService.start(WeldService.java:76)
- at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
- at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
- at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
- at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
- at java.lang.Thread.run(Thread.java:745)
- 05:11:15,591 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" =>{"jboss.deployment.unit.\"ociWorkflowWeb.war\".WeldService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"ociWorkflowWeb.war\".WeldService: org.jboss.weld.exceptions.DeploymentException: Exception List with 3 exceptions:
- Exception 0 :
- org.jboss.weld.exceptions.DeploymentException: WELD-001409 Ambiguous dependencies for type [EntityManager] with qualifiers [@Default] at injection point [[field] @Inject private com.oci.workflow.controller.MemberRegistration.em]. Possible dependencies [[Resource Producer Field [EntityManager] with qualifiers [@Any @Default] declared as [[field] @Produces @PersistenceContext private com.oci.workflow.util.Resources.em], Producer Method [EntityManager] with qualifiers [@Any @Default] declared as [[method] @Produces @ApplicationScoped public org.jbpm.examples.cdi.EnvironmentProducer.getEntityManager()]]]
- at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:278)
- at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:244)
- at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:107)
- at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:127)
- at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:346)
- at org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:331)
- at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:366)
- at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:83)
- at org.jboss.as.weld.services.WeldService.start(WeldService.java:76)
- at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
- at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
- at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
- at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
- at java.lang.Thread.run(Thread.java:745)
- Exception 0 :
- org.jboss.weld.exceptions.DeploymentException: WELD-001409 Ambiguous dependencies for type [EntityManager] with qualifiers [@Default] at injection point [[field] @Inject private com.oci.workflow.rest.MemberResourceRESTService.em]. Possible dependencies [[Resource Producer Field [EntityManager] with qualifiers [@Any @Default] declared as [[field] @Produces @PersistenceContext private com.oci.workflow.util.Resources.em], Producer Method [EntityManager] with qualifiers [@Any @Default] declared as [[method] @Produces @ApplicationScoped public org.jbpm.examples.cdi.EnvironmentProducer.getEntityManager()]]]
- at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:278)
- at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:244)
- at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:107)
- at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:127)
- at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:346)
- at org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:331)
- at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:366)
- at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:83)
- at org.jboss.as.weld.services.WeldService.start(WeldService.java:76)
- at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
- at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
- at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
- at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
- at java.lang.Thread.run(Thread.java:745)
- Exception 0 :
- org.jboss.weld.exceptions.DeploymentException: WELD-001409 Ambiguous dependencies for type [EntityManager] with qualifiers [@Default] at injection point [[field] @Inject private com.oci.workflow.data.MemberListProducer.em]. Possible dependencies [[Resource Producer Field [EntityManager] with qualifiers [@Any @Default] declared as [[field] @Produces @PersistenceContext private com.oci.workflow.util.Resources.em], Producer Method [EntityManager] with qualifiers [@Any @Default] declared as [[method] @Produces @ApplicationScoped public org.jbpm.examples.cdi.EnvironmentProducer.getEntityManager()]]]
- at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:278)
- at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:244)
- at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:107)
- at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:127)
- at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:346)
- at org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:331)
- at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:366)
- at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:83)
- at org.jboss.as.weld.services.WeldService.start(WeldService.java:76)
- at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
- at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
- at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
- at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
- at java.lang.Thread.run(Thread.java:745)
- "}}}}
Knowing that this is the file pom.xml, could you please help me ?
- <?xml version="1.0" encoding="UTF-8"?>
- <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>com.oci.workflow</groupId>
- <artifactId>ociWorkflowWeb</artifactId>
- <version>1.0-SNAPSHOT</version>
- <packaging>war</packaging>
- <name>Java EE 6 webapp project</name>
- <description>A starter Java EE 6 webapp project for use on JBoss AS 7, generated from the jboss-javaee6-webapp archetype</description>
- <properties>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>
- <jboss.home>/Users/tom/Documents/workspace/tools/jboss-6.1.0.Final/</jboss.home>
- <drools.version>6.0.0.CR2</drools.version>
- <jbpm.version>6.0.0.CR2</jbpm.version>
- <hibernate.version>4.2.0.Final</hibernate.version>
- <hibernate.core.version>4.2.0.Final</hibernate.core.version>
- <slf4j.version>1.7.2</slf4j.version>
- <arquillian.bom.version>1.1.0.Final</arquillian.bom.version>
- <jboss.javaee.version>1.0.0.Final</jboss.javaee.version>
- <seam.tx.version>3.1.0.Final</seam.tx.version>
- <solder.version>3.2.0.Final</solder.version>
- <logback.version>1.0.9</logback.version>
- <h2.version>1.3.161</h2.version>
- <btm.version>3.0.0-SNAPSHOT</btm.version>
- <arquillian.weld.version>1.0.0.CR3</arquillian.weld.version>
- </properties>
- <dependencyManagement>
- <dependencies>
- <dependency>
- <groupId>org.jboss.spec</groupId>
- <artifactId>jboss-javaee-web-6.0</artifactId>
- <version>2.0.0.Final</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
- <dependency>
- <groupId>dom4j</groupId>
- <artifactId>dom4j</artifactId>
- <version>1.6.1</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.drools</groupId>
- <artifactId>drools-bom</artifactId>
- <type>pom</type>
- <version>${drools.version}</version>
- <scope>import</scope>
- </dependency>
- <dependency>
- <groupId>org.jbpm</groupId>
- <artifactId>jbpm-bom</artifactId>
- <type>pom</type>
- <version>${jbpm.version}</version>
- <scope>import</scope>
- </dependency>
- </dependencies>
- </dependencyManagement>
- <dependencies>
- <dependency>
- <groupId>javax.enterprise</groupId>
- <artifactId>cdi-api</artifactId>
- <scope>1.0-SP4</scope>
- </dependency>
- <dependency>
- <groupId>org.jboss.spec.javax.annotation</groupId>
- <artifactId>jboss-annotations-api_1.1_spec</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.jboss.spec.javax.ws.rs</groupId>
- <artifactId>jboss-jaxrs-api_1.1_spec</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.hibernate.javax.persistence</groupId>
- <artifactId>hibernate-jpa-2.0-api</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.jboss.spec.javax.ejb</groupId>
- <artifactId>jboss-ejb-api_3.1_spec</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-validator</artifactId>
- <version>4.2.0.Final</version>
- <scope>provided</scope>
- <exclusions>
- <exclusion>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-api</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-jpamodelgen</artifactId>
- <version>1.1.1.Final</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>4.10</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.jboss.arquillian.junit</groupId>
- <artifactId>arquillian-junit-container</artifactId>
- <version>1.0.0.CR4</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.jbpm</groupId>
- <artifactId>jbpm-flow</artifactId>
- <exclusions>
- <exclusion>
- <artifactId>slf4j-api</artifactId>
- <groupId>org.slf4j</groupId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>org.jbpm</groupId>
- <artifactId>jbpm-flow-builder</artifactId>
- <exclusions>
- <exclusion>
- <artifactId>slf4j-api</artifactId>
- <groupId>org.slf4j</groupId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>org.jbpm</groupId>
- <artifactId>jbpm-bpmn2</artifactId>
- <exclusions>
- <exclusion>
- <artifactId>slf4j-api</artifactId>
- <groupId>org.slf4j</groupId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>org.jbpm</groupId>
- <artifactId>jbpm-persistence-jpa</artifactId>
- <exclusions>
- <exclusion>
- <artifactId>slf4j-api</artifactId>
- <groupId>org.slf4j</groupId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>org.jbpm</groupId>
- <artifactId>jbpm-human-task-core</artifactId>
- <exclusions>
- <exclusion>
- <artifactId>weld-core</artifactId>
- <groupId>org.jboss.weld</groupId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>org.jbpm</groupId>
- <artifactId>jbpm-runtime-manager</artifactId>
- <exclusions>
- <exclusion>
- <artifactId>slf4j-api</artifactId>
- <groupId>org.slf4j</groupId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency> <groupId>org.jboss.seam.transaction</groupId> <artifactId>seam-transaction</artifactId>
- <version>${seam.tx.version}</version> </dependency> <dependency> <groupId>org.jboss.solder</groupId>
- <artifactId>solder-api</artifactId> <version>${solder.version}</version>
- </dependency>
- </dependencies>
- <build>
- <finalName>${project.artifactId}</finalName>
- <plugins>
- <plugin>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>2.3.1</version>
- <configuration>
- <source>1.6</source>
- <target>1.6</target>
- </configuration>
- </plugin>
- <plugin>
- <artifactId>maven-war-plugin</artifactId>
- <version>2.1.1</version>
- <configuration>
- <failOnMissingWebXml>false</failOnMissingWebXml>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.jboss.as.plugins</groupId>
- <artifactId>jboss-as-maven-plugin</artifactId>
- <version>7.1.1.Final</version>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>jboss-maven-plugin</artifactId>
- <version>1.5.0</version>
- <configuration>
- <jbossHome>${jboss.home}</jbossHome>
- <port>8080</port>
- <serverName>default</serverName>
- <fileName>target/ociWorkflowWeb.war</fileName>
- </configuration>
- </plugin>
- </plugins>
- </build>
- <profiles>
- <profile>
- <id>default</id>
- <activation>
- <activeByDefault>true</activeByDefault>
- </activation>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <version>2.4.3</version>
- <configuration>
- <skip>true</skip>
- </configuration>
- </plugin>
- </plugins>
- </build>
- <repositories>
- <repository>
- <id>repo.fusesource.com</id>
- <name>repo.fusesource.com</name>
- <url>http://repo.fusesource.com/maven2-legacy/</url>
- <layout>default</layout>
- </repository>
- <repository>
- <id>jboss-public-repository-group</id>
- <name>JBoss Public Repository Group</name>
- <url>http://repository.jboss.org/nexus/content/groups/public/</url>
- <releases>
- <enabled>true</enabled>
- <updatePolicy>never</updatePolicy>
- </releases>
- <snapshots>
- <enabled>true</enabled>
- <updatePolicy>daily</updatePolicy>
- </snapshots>
- </repository>
- </repositories>
- </profile>
- <profile>
- <repositories>
- <repository>
- <id>jboss-public-repository</id>
- <name>JBoss Repository</name>
- <url>http://repository.jboss.org/nexus/content/groups/public</url>
- <releases>
- </releases>
- <snapshots>
- <enabled>false</enabled>
- </snapshots>
- </repository>
- </repositories>
- <pluginRepositories>
- <pluginRepository>
- <id>jboss-public-repository</id>
- <name>JBoss Repository</name>
- <url>http://repository.jboss.org/nexus/content/groups/public</url>
- <releases>
- </releases>
- <snapshots>
- <enabled>false</enabled>
- </snapshots>
- </pluginRepository>
- </pluginRepositories>
- <id>arq-jbossas-managed</id>
- <dependencies>
- <dependency>
- <groupId>org.jboss.as</groupId>
- <artifactId>jboss-as-arquillian-container-managed</artifactId>
- <version>6.1.0.Final</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
- </profile>
- <profile>
- <repositories>
- <repository>
- <id>jboss-public-repository</id>
- <name>JBoss Repository</name>
- <url>http://repository.jboss.org/nexus/content/groups/public</url>
- <releases>
- </releases>
- <snapshots>
- <enabled>false</enabled>
- </snapshots>
- </repository>
- </repositories>
- <pluginRepositories>
- <pluginRepository>
- <id>jboss-public-repository</id>
- <name>JBoss Repository</name>
- <url>http://repository.jboss.org/nexus/content/groups/public</url>
- <releases>
- </releases>
- <snapshots>
- <enabled>false</enabled>
- </snapshots>
- </pluginRepository>
- </pluginRepositories>
- <id>arq-jbossas-remote</id>
- <dependencies>
- <dependency>
- <groupId>org.jboss.as</groupId>
- <artifactId>jboss-as-arquillian-container-remote</artifactId>
- <version>6.1.0.Final</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
- </profile>
- </profiles>
- </project>
Thanks in advance.