问题
I'm very confused about the JBoss class loader. Can any one describe in details how the class loader works, exactly? I only have to do one thing...
If a WAR doesn't find a class with its own classloader, he delegates the search to its parent classloader which must be the EAR's.
What changes should I have to do in my application for the above?
Please reply as soon as possible.
Thank you.
回答1:
In continuation of our discussion in the comments, I noticed the following JBoss feature request.
https://issues.jboss.org/browse/JBAS-4037
It looks like JBoss 4 is not fully Java EE5 compatible, however later versions of JBoss should have fixed this issue.
What version of JBoss are you running?
来源:https://stackoverflow.com/questions/6030008/ear-and-war-class-loader