0

在网络应用程序中出现奇怪的错误。

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)
4

2 回答 2

0

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

于 2013-02-05T18:06:48.020 回答
0

很难调试,除非您能够回忆并恢复最近的一些更改或部分部署以调试哪个 jsp 文件有问题。

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

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

这是假设 JSP 有问题。

于 2013-02-05T18:10:56.257 回答