EAR and WAR class loader

妖精的绣舞 提交于 2019-12-08 00:24:00

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!