cancel
Showing results for 
Search instead for 
Did you mean: 

CDI with Activiti 5.9

ovonel
Champ in-the-making
Champ in-the-making
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.
1 REPLY 1

ovonel
Champ in-the-making
Champ in-the-making
Problem solved! It was a user error Smiley Happy

I have set up a new activiti db and now it works well.