-
1. Re: Can I turn off CDI in JBPM 6.0?
swiderski.maciej Feb 14, 2014 1:36 AM (in response to jkranes)you can disable subsystem from within your application using jboss-demoplyment-structure.xml, see details here. Moreover if you move to 6.0.1 you should not have issues with CDI any more as entire cdi integration was moved to jbpm-kie-services module and if you don't include it is should not affect you.
HTH
-
2. Re: Can I turn off CDI in JBPM 6.0?
jkranes Feb 14, 2014 8:51 AM (in response to swiderski.maciej)Maciej,
I tried the jboss-deployment-structure trick already but it did not seem to work. I read somewhere that it does not work in 7.1.1 (community) but only in 7.2 (enterprise only)? Also I am using 6.0.1, and it still has this problem. The CDI error I am getting is coming from the jbpm-runtime-manager jar, in org.jbpm.runtime.manager.impl.factory.CDITaskServiceFactory. The jar has a META-INF/beans.xml file which if I understand correctly is what triggers CDI for classes in that jar.
Jon
-
3. Re: Can I turn off CDI in JBPM 6.0?
swiderski.maciej Feb 19, 2014 4:50 AM (in response to jkranes)Jon, you're right there was recently fix for runtime manager to ensure that the injection points are properly initialized before actually using them. So you could either apply that path on the version you use or try to use 6.0.2-SNAPSHOT (or time stamped version) for now.
That might be the case, excluding subsystem does not work on 7.1.1. Is moving to EAP not an option? It should be available with "0 dollar subscription" or something similar (downloadable from community site)...
HTH
-
4. Re: Can I turn off CDI in JBPM 6.0?
jkranes Feb 19, 2014 9:59 AM (in response to swiderski.maciej)Maciej,
For now I will just continue to remove Weld completely from the server, as I don't currently have any need for any CDI enabled apps on the same server instance. Hopefully by the time we are anywhere near production there will be a new GA release out with this issue addressed.
Thanks,
Jon