Thanks Costin,
I am trying to debug the struts2 code. Actually this is the struts2 plugin code which is getting executed when the war bundle is loaded. I have pasted it below.
Code:
public Class<?> loadClass(String className) throws ClassNotFoundException {
Bundle bundle = getCurrentBundle(); //Line 1
if (bundle != null) {
Class cls = bundle.loadClass(className); //Line2
if (LOG.isTraceEnabled())
LOG.trace("Located class [#0] in bundle [#1]", className, bundle.getSymbolicName());
return cls;
}
throw new ClassNotFoundException("Unable to find class " + className);
}
At line1 the action bundle is obtained. This is the bundle where application action/interceptor classes are bundled. The bundle obtained is fine which I can see in the debugging session. However when it enters the if condition where at Line2 it tries to load the interceptor/action class (which is dependent the packages in struts and xwork bundles), the exception is thrown. To do further debugging I wrote a test activator class where I try to load a Struts class, however this fails as well.
Could there be any other reason which would be causing the problem to load struts or xwork classes?
Further I am going to do further investigation in terms of the classloader related inputs you have provided.
Please let me know any other input you may have.
Thanks,
Shashi