EAP 7 returns a 500 response code sent if JSP include is nested within custom tag

Solution Unverified - Updated -

Issue

  • We're migrating from EAP 6 to EAP 7. For some pages on EAP 7, we see a 500 response code, but the response otherwise seems good. We note this occurs for a page that has a jsp include nested in a custom tag of ours:
<ex:repro><jsp:include page="/include.html"></jsp:include></ex:repro>
  • Undertow debug logging shows an IOException is hit on these requests:
DEBUG [io.undertow.request.io] (default task-1) UT005013: An IOException occurred: java.io.IOException
    at io.undertow.servlet.core.BlockingWriterSenderImpl.writeBuffer(BlockingWriterSenderImpl.java:208)
    at io.undertow.servlet.core.BlockingWriterSenderImpl.send(BlockingWriterSenderImpl.java:75)
    at io.undertow.server.handlers.resource.PathResource$1ServerTask.run(PathResource.java:184)
    at io.undertow.server.handlers.resource.PathResource.serveImpl(PathResource.java:253)
    at io.undertow.server.handlers.resource.PathResource.serve(PathResource.java:111)
    at org.wildfly.extension.undertow.deployment.ServletResource.serve(ServletResource.java:96)
    at io.undertow.server.handlers.resource.CachedResource.serve(CachedResource.java:168)
    at io.undertow.servlet.handlers.DefaultServlet.serveFileBlocking(DefaultServlet.java:357)
    at io.undertow.servlet.handlers.DefaultServlet.doGet(DefaultServlet.java:198)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:686)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:791)
    at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)
    at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
    at io.undertow.servlet.handlers.ServletChain$1.handleRequest(ServletChain.java:68)
    at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
    at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
    at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
    at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
    at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:274)
    at io.undertow.servlet.handlers.ServletInitialHandler.dispatchToServlet(ServletInitialHandler.java:219)
    at io.undertow.servlet.spec.RequestDispatcherImpl.includeImpl(RequestDispatcherImpl.java:380)
    at io.undertow.servlet.spec.RequestDispatcherImpl.setupIncludeImpl(RequestDispatcherImpl.java:315)
    at io.undertow.servlet.spec.RequestDispatcherImpl.include(RequestDispatcherImpl.java:279)
    at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:907)

Environment

  • 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