AnsweredAssumed Answered

CDI with Activiti 5.9

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

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(Validator.java:274)
   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:396)
   at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:190)

BTW: My application server is Glassfish 3.1.1.

Outcomes