I assume you are using Jboss EAp 6.1, If so, you can try jboss-deployment-structure.xml as below:
<jboss-deployment-structurexmlns="urn:jboss:deployment-structure:1.2"> <deployment> <!-- Exclusions allow you to prevent the server from automatically adding some dependencies --> <exclusions> <module name="org.javassist" /> </exclusions> </deployment> </jboss-deployment-structure>
For more info refer:section JBoss Deployment Structure File in Class Loading in AS7 - JBoss AS 7.1 - Project Documentation Editor
Sorry i'm using jboss as 6.1 final not eap do you have any idea?
1 of 1 people found this helpful
Moved to proper forum.
i think it could be possible to do that you want with jboss-classloading.xml but to be fair I really don't know.
Thanks, so i'll try to look at jboss-classloading.xml