How to specify order that jars in a WAR are searched for classes

Solution Unverified - Updated -

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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content