HTTP Status 500 - javax.servlet.ServletException: File [/head.jsp] not found

完整错误信息

type Exception report

message javax.servlet.ServletException: File [/head.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 [/head.jsp] not found

org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:584)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:454)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)

javax.servlet.http.HttpServlet.service(HttpServlet.java:729)

org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:168)

org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:303)

org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1228)

org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1011)

org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:955)

org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:877)

org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:966)

org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:857)

javax.servlet.http.HttpServlet.service(HttpServlet.java:622)

org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842)

javax.servlet.http.HttpServlet.service(HttpServlet.java:729)

org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

com.auth.filter.AuthorizationFilter.doFilterInternal(AuthorizationFilter.java:77)

org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344)

org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261)

com.auth.filter.AuthenticationFilter.doFilterInternal(AuthenticationFilter.java:115)

org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344)

org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261)

com..activate.filter.ActivateFilter.doFilterInternal(ActivateFilter.java:52)

org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344)

org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261)

org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)

org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

root cause

javax.servlet.ServletException: File [/head.jsp] not found

org.apache.jasper.servlet.JspServlet.handleMissingResource(JspServlet.java:418)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)

javax.servlet.http.HttpServlet.service(HttpServlet.java:729)

org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:934)

org.apache.jsp.interaction.online_jsp._jspService(online_jsp.java:246)

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

javax.servlet.http.HttpServlet.service(HttpServlet.java:729)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:431)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)

javax.servlet.http.HttpServlet.service(HttpServlet.java:729)

org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:168)

org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:303)

org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1228)

org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1011)

org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:955)

org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:877)

org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:966)

org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:857)

javax.servlet.http.HttpServlet.service(HttpServlet.java:622)

org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842)

javax.servlet.http.HttpServlet.service(HttpServlet.java:729)

org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

com.auth.filter.AuthorizationFilter.doFilterInternal(AuthorizationFilter.java:77)

org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344)

org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261)

com.auth.filter.AuthenticationFilter.doFilterInternal(AuthenticationFilter.java:115)

org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344)

org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261)

com.activate.filter.ActivateFilter.doFilterInternal(ActivateFilter.java:52)

org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344)

org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261)

org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)

org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

note The full stack trace of the root cause is available in the Apache Tomcat/8.0.21 logs.

Apache Tomcat/8.0.21

错误原因

JSP页面中使用了jsp:include语句:

<jsp:include flush="false" page="/head.jsp" ></jsp:include>

这个head.jsp文件不存在,结果就导致了这个问题!

注意:如果flush=”true”,则会出现一个很诡异的问题Failed to load resource: net::ERR_INCOMPLETE_CHUNKED_ENCODING

===============================================

PS:飞机上,一只鹦鹉对空姐说:“给爷来杯水”,猪也学鹦鹉,对空姐说:“给爷来杯水”,空姐大怒,将鹦鹉和猪都扔下了飞机。这时鹦鹉对猪说:“傻B了吧,爷会飞。”

版权声明:本文为博主原创文章,未经博主允许不得转载。

时间: 2024-10-05 03:20:29

HTTP Status 500 - javax.servlet.ServletException: File [/head.jsp] not found的相关文章

tomcat6.0发布项目打开jsp页面报错:HTTP Status 500 - javax.servlet.ServletException

今天遇到一个tomcat的部署的问题,问题根源在于server.xml 的配置里. 错误如标题,说HTTP Status 500 - javax.servlet.ServletException:XXX文件找不到,几经查找测试,程序并没有错误,有人说是jsp-api.jar和serlet-api.jar包冲突,调试发现并不能解决问题,后来才发现问题的所在: 开始的server.xml 配置对Host 以及其内的Context 是如下配置的: <Host name="localhost&qu

HTTP Status 500 - javax.servlet.ServletException: java.lang.OutOfMemoryError: PermGen space

详细错误信息 HTTP Status 500 - javax.servlet.ServletException: java.lang.OutOfMemoryError: PermGen space type Exception report message javax.servlet.ServletException: java.lang.OutOfMemoryError: PermGen space description The server encountered an internal

HTTP Status 500 - javax.servlet.ServletException: java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/LoopTag

我在项目中导入了jar,还是不能使用EL表达式,一运行就出现了下面的额错误: org.apache.jasper.JasperException: javax.servlet.ServletException: java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/LoopTag org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWra

Servlet.service() for Servlet jsp threw exception javax.servlet.ServletException:File &amp;quot;/pageFoo

1.错误描述 Servlet.service() for Servlet jsp threw exception javax.servlet.ServletException:File "/pageFoot.jsp "not found 2.错误原因 <jsp:include page="../../pageFoot.jsp"></jsp:include> 3.解决办法 利用<jsp:include></jsp:includ

javax.servlet.ServletException: java.lang.NoClassDefFoundError: javax/el/ELResolver错误解决办法

今天不用eclipse.myeclipse等开发工具,纯手写JSP页面(有点作死)时突然出现以前从来没遇到过的问题,报错如下: HTTP Status 500 - java.lang.NoClassDefFoundError: javax/el/ELResolver type Exception report message java.lang.NoClassDefFoundError: javax/el/ELResolver description The server encountered

使用Maven创建Web项目后,jsp引入静态文件提示报错。JSP 报错:javax.servlet.ServletException cannot be resolved to a type

使用Maven创建Web项目后,jsp引入静态文件提示报错. 错误提示:javax.servlet.ServletException cannot be resolved to a type 错误如下图: 解决方案: 在Maven的pom文件中引发如下依赖即可: <dependency> <groupId>javax.servlet.jsp</groupId> <artifactId>jsp-api</artifactId> <versio

import javax.servlet.ServletException出错

import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; 出错的问题大概就是缺少servlet的jar包 网上搜素servlet.jar下

javax.servlet.ServletException cannot be resolved to a type错误解决方法

在页面中使用全局路径时${pageContext.request.contextPath}出现javax.servlet.ServletException cannot be resolved to a type错误,解决方法如下: 这个错误主要是因为缺少jsp-api.jar 和  servlet-api.jar这两个Jar包. 第一种解决方法: 直接把 Tomcat7.0 下lib目录中的 jsp-api.jar 添加  Build path 中. 第二种解决方法:使用 Maven 将 js

javax.servlet.ServletException: java.lang.LinkageError: loader constraint violation:

javax.servlet.ServletException: java.lang.LinkageError: loader constraint violation: when resolving method "org.apache.jasper.runtime.InstanceManagerFactory.getInstanceManager(Ljavax/servlet/ServletConfig;)Lorg/apache/tomcat/InstanceManager;" th