问题描述
- jsp页面在linux报错问题
- HTTP Status 500 - javax.servlet.ServletException: File ""/jsp/base/header.jsp"" not found
type Exception report
message javax.servlet.ServletException: File ""/jsp/base/header.jsp"" not found
description The server encountered an internal error that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: javax.servlet.ServletException: File ""/jsp/base/header.jsp"" not found
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:538)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:412)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
root causejavax.servlet.ServletException: File ""/jsp/base/header.jsp"" not found
org.apache.jasper.servlet.JspServlet.handleMissingResource(JspServlet.java:335)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)
org.apache.jsp.base.iad_jsp._jspService(iad_jsp.java:112)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.37 logs报的是这个错误,我比较纳闷的是我其他页面也引用相同的jsp头,没有报错,唯独有一个页面报错,我看了不是路径问题,因为这个页面我和其他页面的写法是一样的,求大神解答一下,
解决方案
解决方案二:
路径写全试试呢。其他页面 和这个报错的jsp 不在同一个文件夹下把。