AnsweredAssumed Answered

OSGi EL resolution cannot find methods and/or properties

Question asked by tomas.surovec on Jun 25, 2013
Latest reply on Jul 3, 2013 by frederikheremans1

the setup is this: I have a project A with predefined classes for data and project B with processes that uses data types from A, among others as variable types in process. I discovered an issue with evaluating EL when running an Activiti process in an OSGi environment. As long as unit testing is used, everything works just fine and all expressions are evaluated without problems. But when I deploy both A and B into OSGi, process execution fails on EL evaluation with MethodNotFoundException (or PropertyNotFoundException) like: "Cannot find method 'YYY' in 'class XXX'". Altough apparently the bundle for A exports the appropriate package correctly (I can work with class XXX in bundle B without problems), somehow the EL resolver in Activiti manages to find the class type (or it appears so), but cannot find its methods.

OSGi: Apache Karaf 2.3.1
Activiti: 5.12.1

If needed, I can prepare a demo project.