How to share jars containing tlds between multiple wars inside of an ear in JBoss EAP

Solution Verified - Updated -

Issue

  • Our EAR file has multiple web projects which are dependent on a common set of JARs (JSF / Tomahawk). We moved all the dependent JARS to the EAR level by placing them in the EAR Library folder. The web projects refer those libraries and there are no compilation errors. When we deploy, it fails to load the tag libraries (tld) from the jars in the ear/lib with messages such as :
The absolute uri: http://java.sun.com/jsf/core cannot be resolved in either web.xml or the jar files deployed with this application

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.