JBPM-2875 enhance classloader strategy for OSGi

created by HuiSheng Xu in jBPM Development - View the full discussion

Hi guys,


I really need this feature to let jbpm4 run in an OSGi envrionment.


Now jBPM4 only use Thread.currentThread().getContextClassLoader() to load resources or class.  But in an OSGi environment, the contextClassLoader may be not for the jbpm4 bundle,  So jBPM4 won't find any xml configuration resource from classloader,  then lots of errors occured.


So I need when jbpm4 find resource or class, it not only use contextClassLoader, but also use it's owner classloader, e.g. JpdlParser.class.getClassLoader().


Any opinions are appreciated.  Thank you very much.

Reply to this message by going to Community

Start a new discussion in jBPM Development at Community