-
Notifications
You must be signed in to change notification settings - Fork 275
所有访问的jsp页面都报不能编译jsp,这个有遇到的么,怎么修复? #1
Comments
不好意思!以前的jsp页面是由公司的web组开发的,我们只是负责提供接口,所以对这块我不是很熟!
|
你检查下webapp文件夹下面是不是少一些工程,tomcat自己的一些 |
这个问题还有解决办法吗? |
按文档,在Eclipse中右击start-tomcat.launch这个文件,点Debug As可以调试Tomcat,浏览器输入127.0.0.1:8080页面报错:Unable to compile class for JSP。 |
org.apache.jasper.JasperException: Unable to compile class for JSP
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:572)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:403)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:347)
javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
root cause
java.lang.NullPointerException
org.apache.jasper.compiler.Validator$ValidateVisitor.(Validator.java:516)
org.apache.jasper.compiler.Validator.validateExDirectives(Validator.java:1819)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:219)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:375)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:355)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:342)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:557)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:403)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:347)
javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
The text was updated successfully, but these errors were encountered: