首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Web开发 >

ant.jar在tomcat中的异常

2013-09-11 
ant.jar在tomcat中的错误HTTP Status 500 ---------------------------------------------type Exception

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.myexception.cn/java-web/317.html
我的异常网推荐解决方案:org.apache.jasper.JasperException: Unable to compile class,http://www.myexception.cn/j2ee/2308.html

热点排行