2 Replies Latest reply on May 28, 2010 2:35 AM by rebody

    JBPM-2875 enhance classloader strategy for OSGi


      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.