Classloading order in JBoss

被刻印的时光 ゝ 提交于 2020-01-13 10:49:25

问题


I'd like to know if the default behavior of JBoss server (4.2.3.GA in my case) is loading the classes in parent-first or parent-last mode. And in case it work as I suspect in parent-last mode (i.e. first trying to load classes from the application's WEB-INF/lib and only if they are not found go to server\lib), how can I configure it to work in the opposite- first trying to load classes from outside and only looking inside the application afterwards.


回答1:


It sounds like you need to set

java2ParentDelegation={false|true}

in your jboss-app.xml or jboss-web.xml. See this article for more information.



来源:https://stackoverflow.com/questions/2852613/classloading-order-in-jboss

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