Missing JSP in EAP 5.1.2.GA throwing file not found exception

Solution Verified - Updated -

Issue

The users are including a JSP which does not exist in the application and in 4.3 this seems to ignore the missing file but EAP 5.1.2.GA throws an exception shown below
This caused the following output to be renedered when I accessed the index.jsp file which contained the include line;

<jsp:include page="/missing.jsp"></jsp:include>
javax.servlet.ServletException: File "/missing.jsp" not found
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:300)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)
    org.apache.jsp.index_jsp._jspService(index_jsp.java:100)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:322)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    jcifs.http.NtlmHttpFilter.doFilter(NtlmHttpFilter.java:125)
    org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

Environment

JBoss Enterprise Application Platform (EAP)

  • 5.1.2
  • Migration from EAP 4.3.0 to 5.1.2

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