码迷,mamicode.com
首页 > Web开发 > 详细

org.apache.jasper.JasperException: Unable to compile class for JSP

时间:2015-07-24 20:52:26      阅读:148      评论:0      收藏:0      [点我收藏+]

标签:

部署war时,遇到下面异常:
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)
	com.sk.skkx.common.SessionAreaQueryFilter.doFilter(SessionAreaQueryFilter.java:167)
	com.sk.skkx.common.CookieLoginFilter.doFilter(CookieLoginFilter.java:179)
	com.sk.admin.common.filter.LoginFilter.doFilter(LoginFilter.java:62)
	org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)
	org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
	org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
	org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:390)
	com.zl.common.SetCharEncodingFilter.doFilter(SetCharEncodingFilter.java:73)
 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)

解决:
找到war解压开的lib里面的servlet-api.jar的类似版本,比如:servlet-api-2.5.jar。然后使用tomcat的lib中的servlet-api.jar替换。然后重启tomcat。

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

org.apache.jasper.JasperException: Unable to compile class for JSP

标签:

原文地址:http://blog.csdn.net/forlong401/article/details/47045561

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!