JBoss Community

Re: How to stop my WAR loading JBoss's provided 3rd party classes?

created by Ales Justin in JBoss Microcontainer - View the full discussion

This is certainly possible, but unfortunately not completely out-of-the-box aka via configuration.

 

What you need to do is the following:

* create new cl domain for your deployment -- can be done via jboss-classloading.xml

* set default cl domain as your parent cl domain -- can be done via jboss-classloading.xml

* create parent policy for Module which sets your excludes -- needs some deployer / programmatic

 

This probably means you would have to create a new deployer which would create custom Module - to override the getDeterminedParentPolicy,

which would disable the usage of VFSClassLoaderDescribeDeployer --> your similar deployer should kick in.

 

You can have a crack at it, but let me know if you get stuck, and I'll help you.

Reply to this message by going to Community

Start a new discussion in JBoss Microcontainer at Community