在Web应用程序中出现奇怪的错误

时间:2013-02-05 18:05:06

标签: java java-ee tomcat

在网络应用中获得奇怪的错误。

org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
error: An error has occurred in the compiler; please file a bug report (http://java.sun.com/cgi-bin/bugreport.cgi).
1 error, 1 warning
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:262)
    at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:465)
    at org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:149)
    at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:161)
    at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:274)
    at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:387)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.xvsi.servlet.ServletContainer.service(ServletContainer.java:404)
    at com.xvsi.servlet.BVRequestDispatcher.forward(BVRequestDispatcher.java:133)
    at org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.java:692)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:584)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:147)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.xvsi.servlet.ServletContainer.service(ServletContainer.java:404)
    at com.xvsi.servlet.ServletContainer.processRequest(ServletContainer.java:348)
    at com.xvsi.servlet.ServletContextContainer.processRequest(ServletContextContainer.java:819)
    at com.xvsi.servlet.BVServletEngine.service(BVServletEngine.java:246)
    at com.xvsi.servlet.BVServletConnector.service(BVServletConnector.java:141)

2 个答案:

答案 0 :(得分:0)

这通常意味着JSP页面中存在语法错误等。没有看到更多,很难建议。

答案 1 :(得分:0)

难以调试,除非您能够重新收集并恢复最后几个更改或部分部署以调试哪个jsp文件存在问题。

我建议使用ANT预编译这里提到的JSP。

http://tomcat.apache.org/tomcat-6.0-doc/jasper-howto.html

这假设JSP存在问题。