Hi,
I deploy the hibernate related configuration files in .har file and few of the classes which are part of .har are also part of .war file.
When I tried to cast few classes which are returned by hibernate and loaded by both class loaders , I ended up with classcastexception.
Can anyone share experience on how to handle this? Can I force the server to use only use classes loaded by one loader instead of both?
Thanks
Sun
I managed to overcome this issue by setting
Java2ClassLoadingCompliance and
UseJBossWebLoader to true in jbossweb-tomcat55.sar/META-INF/jboss-service.xml.
Is this the right approach?
Sun