[jboss-user] [JBoss Microcontainer] - Re: How to stop my WAR loading JBoss's provided 3rd party classes?

Ales Justin do-not-reply at jboss.com
Wed Sep 15 06:07:51 EDT 2010


Ales Justin [http://community.jboss.org/people/alesj] created the discussion

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

To view the discussion, visit: http://community.jboss.org/message/561449#561449

--------------------------------------------------------------
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
[http://community.jboss.org/message/561449#561449]

Start a new discussion in JBoss Microcontainer at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2114]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100915/8af0c052/attachment-0001.html 


More information about the jboss-user mailing list