当前位置: 代码迷 >> Java Web开发 >> ant.jar在tomcat中的异常
  详细解决方案

ant.jar在tomcat中的异常

热度:524   发布时间:2016-04-17 12:19:50.0
ant.jar在tomcat中的错误
HTTP Status 500 - 

--------------------------------------------

type Exception report

message 

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:565)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
com.e7cp.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:122)


root cause 

java.lang.NullPointerException
org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java:159)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
com.e7cp.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:122)


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



------解决方案--------------------
没听懂你什么意思
不过错误原因是jasper-complier和jasper-runtime和servlet-api三个jar没加吧
------解决方案--------------------
com.e7cp.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:122)

这附近有null值,打出来看一下
------解决方案--------------------
可能是JSP页面写的有问题,试试其它的页面有没有问题。
------解决方案--------------------
不行!
建议新装个jdk1.5,然后导入到myeclipse!
代码迷推荐解决方案:The server encountered an internal error () that prevented it from fulfilling this request.,http://www.daimami.com/search?q=317
代码迷推荐解决方案:org.apache.jasper.JasperException: Unable to compile class,http://www.daimami.com/search?q=2308
  相关解决方案