I change this.getClass().getResource() with Thread.currentThread().getContextClassLoader().getResource() but the problem already exist !!! ???
JBoss' ClassLoading has always had this feature / notion of sharing resources across non-isolated deployments inside same classloading domain.
Unless you isolate your deployment, one can access any resource from your deployment, if both are in the same CL domain.
Same goes the other way around.
Read more about it here:
Very thanks for your reply
I follow your enclosed URL and add some changes to default class loader behavior
I add the jboss-classloading.xml whit the following content
After that I received some ClassCastException related to some duplicated jars like jaxb xmlxcerser jpa and etc
I fix all Jar conflicts and now my problem solved.