TLDs under META-INF/resources inside the web-fragment jar are not loaded in JBoss EAP 7.x

Solution Verified - Updated -


TLDs under META-INF/resources inside the web-fragment jar are not loaded in JBoss EAP 7.x.

  • An example directory structure of the web-fragment jar
|   |-- resources
|   |   `-- WEB-INF
|   |       `-- tlds
|   |           `-- example.tld
|   `-- web-fragment.xml
`-- simple
    `-- ExampleTag.class
  • web-fragment.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-fragment id="WebFragment_ID"



The following ERROR is thrown at the deployment:

ERROR [org.wildfly.extension.undertow] (MSC service thread 1-8) WFLYUT0074: Could not find TLD /WEB-INF/tlds/example.tld

JSP returns "500 Internal Server Error" and Jastow throws the following ERROR when accessing the JSP which uses the taglib like <%@ taglib uri="/ExampleTag" prefix="say"%>:

ERROR [io.undertow.request] (default task-1) UT005023: Exception handling request to /example.war/example.jsp: org.apache.jasper.JasperException: JBWEB004036: File "/ExampleTag" not found
    at org.apache.jasper.compiler.DefaultErrorHandler.jspError(
    at org.apache.jasper.compiler.ErrorDispatcher.dispatch(
    at org.apache.jasper.compiler.ErrorDispatcher.jspError(
    at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(
    at org.apache.jasper.compiler.Parser.parseTaglibDirective(
    at org.apache.jasper.compiler.Parser.parseDirective(
    at org.apache.jasper.compiler.Parser.parseElements(
    at org.apache.jasper.compiler.Parser.parse(
    at org.apache.jasper.compiler.ParserController.doParse(
    at org.apache.jasper.compiler.ParserController.parse(
    at org.apache.jasper.compiler.Compiler.generateJava(
    at org.apache.jasper.compiler.Compiler.compile(
    at org.apache.jasper.compiler.Compiler.compile(
    at org.apache.jasper.compiler.Compiler.compile(
    at org.apache.jasper.JspCompilationContext.compile(
    at org.apache.jasper.servlet.JspServletWrapper.service(
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(
    at org.apache.jasper.servlet.JspServlet.service(
    at javax.servlet.http.HttpServlet.service(


  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7.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