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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.