AnsweredAssumed Answered

CDI with Activiti 5.9

Question asked by ovonel on Mar 6, 2012
Latest reply on Mar 7, 2012 by ovonel

I am trying to migrate my application from activiti 5.8 to 5.9. I am using ProcessEngineLookup interface
to configure activiti cdi. After the update I saw that ProcessEngineLookup is deprecated.

Can you give me some hints, I get the following error while deploying my application:

org.jboss.weld.exceptions.DeploymentException: WELD-001409 Ambiguous dependencies for type [BusinessProcess] with qualifiers [@Default] at injection point [[field] @Inject private org.activiti.cdi.impl.ProcessVariableMap.businessProcess]. Possible dependencies [[Managed Bean [class org.activiti.cdi.BusinessProcess] with qualifiers [@Any @Default @Named], Managed Bean [class org.activiti.cdi.BusinessProcess] with qualifiers [@Any @Default @Named]]]
   at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(
   at org.jboss.weld.bootstrap.Validator.validateBean(
   at org.jboss.weld.bootstrap.Validator.validateRIBean(
   at org.jboss.weld.bootstrap.Validator.validateBeans(
   at org.jboss.weld.bootstrap.Validator.validateDeployment(
   at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(
   at org.glassfish.weld.WeldDeployer.event(

BTW: My application server is Glassfish 3.1.1.