How to filter classes and resources from jar files in a WAR/EAR on EAP 6

Solution Verified - Updated -

Issue

  • How to exclude a class from being loaded using jboss-deployment-structure.xml in JBoss EAP 6?
    Where the library is under WEB-INF/lib and looking to exclude from the classloader.
  • How to exclude a common resource, existing in multiple libraries, from being loaded using jboss-deployment-structure.xml in JBoss EAP 6, where the libraries are bundled within a ear and looking to exclude from the classloader?

Environment

  • Red Hat 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