This content has been marked as final. Show 1 reply
Solved the problem
When we use the following code
to parse the xml so that we can deploy it, It uses a ClassLoader internally instantiated by its own custom class Ã¢Â€Â“ ClassLoaderUtil.java to load the resource, and for some reason it searches for the resources with respect to where the lib file Ã¢Â€Â“ jbpm-jpdl.jar is present.
Till now I had placed the jar files in the <Jboss_home>\server\default\lib. I removed them and placed them in the automation.war/WEB-INF/lib and now it works. Am I missing something. How can the resource loader search with respect to where the lib is placed, shouldnÃ¢Â€Â™t it searching the entire classpath?
If I create my own class loader I am able to place it in the classpath and it picks it up, but since that would instantiate a separate class loader, it cannot find the action classes that would have been loaded by JBOSS class loader.
I know I am missing something, though it works now, I really would like to know why is the above phenomenon occurring.