关闭

Tomcat 7 部署时出现org.apache.jasper.JasperException异常

1286人阅读 评论(0) 收藏 举报
分类:

今天部署新的war包到服务器时发现部署后,访问失败,提示如下:

HTTP Status 500 - Unable to compile class for JSP

type Exception report

message Unable to compile class for JSP

description The server encountered an internal error that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to compile class for JSP
	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:604)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
	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)
	org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
	common.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:149)

root cause

java.io.IOException: tmpFile.renameTo(classFile) failed
	org.apache.jasper.compiler.SmapUtil$SDEInstaller.install(SmapUtil.java:246)
	org.apache.jasper.compiler.SmapUtil.installSmap(SmapUtil.java:165)
	org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:458)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:356)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:334)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:321)
	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
	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)
	org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
	common.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:149)

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


网上搜结果都是说要删除工程的WEB-INF/lib下存在jsp-api.jar、servlet-api.jar,删除后,问题依然存在,继续搜索,有帖子说是百度/360杀毒的原因。。。

不知道服务器什么时候装了百度杀毒。。。。卸载百度杀毒,果然正常。。


0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:12178次
    • 积分:218
    • 等级:
    • 排名:千里之外
    • 原创:9篇
    • 转载:4篇
    • 译文:0篇
    • 评论:1条
    文章分类
    最新评论