Jboss 4.2 Class Loading

落爺英雄遲暮 提交于 2019-12-04 14:53:54

Have a look at JBossClassLoadingUseCases. Your situation seems to be Use Case 4 (i.e. the class will be loaded from default/lib in preference to WEB-INF/classes.

What you seem to want is Use Case 3 (i.e. WEB-INF/classes preferred to default/lib), in which case you should omit the java2ParentDelegation=true config option from jboss-web.xml (or set it to false, which is the default).

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