Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Classloading order in JBoss

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.

like image 289
Spiderman Avatar asked Nov 05 '22 13:11

Spiderman


1 Answers

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.

like image 60
Brian Agnew Avatar answered Nov 12 '22 09:11

Brian Agnew