How to specify order that jars in a WAR are searched for classes
Issue
- Our application uses two frameworks, each of which uses a separate version of Spring, the jars for which are packaged within the WEB-INF/lib. What is the order of precedence in the Module Loader/ Classloader looks at the jars to load a given class? Also is there a way to set this precedence?
- What's could be the reason for application server to acts differently on different environment? How should we compare 2 environment? or, what's the best way to compare 2 environment? This would help us to troubleshoot issue quicker if issue exists in one particular environment.
- What is the order of precedence in the Module Loader/ Classloader looks at the jars to load a given class? I suspect this is different for the two platforms mentioned above. Also is there a way to set this precedence?
Environment
- JBoss Enterprise Application Platform (EAP)
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
