java.lang.ClassNotFoundException:javax.servlet.jsp.SkipPageException

问题描述 投票:0回答:1
When i run the jsp page i am getting the following error. 
Web sever : Tomcat 6.0 , using Struts 
java.lang.ClassNotFoundException: javax.servlet.jsp.SkipPageException 
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680) 
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526) 
at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:128) 
at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:66) 
at org.apache.jsp.jsp.login.Main_005ffit_jsp._jspService(Main_005ffit_jsp.java:2846) 
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) 
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:386) 
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) 
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) 
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) 
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646) 
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436) 
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374) 
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302) 
at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069) 
at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455) 
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279) 
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) 
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) 
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) 
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) 
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) 
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) 
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) 
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) 
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) 
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) 
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) 
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) 
at java.lang.Thread.run(Thread.java:619)
java jsp classnotfoundexception struts-1
1个回答
2
投票

来自

javax.servlet.jsp.SkipPageException
javadoc

自:

     JSP 2.0

因此,这个特殊的异常表明您的 web 应用程序的

/WEB-INF/lib
,或者更糟糕的是,JRE 的
/lib
/lib/ext
被特定于 servlet 容器的 JSP 库(例如
jsp-api.jar
j2ee.jar
)污染,这些库源自不同的 servlet 容器,支持只有较旧的 JSP 版本。

您应该绝对确保您的 web 应用程序的

/WEB-INF/lib
文件夹或运行时类路径中的其他位置没有 servletcontainer 特定的库,这些库在类加载中只会优先于目标 servletcontainer 的(在您的情况下为 Tomcat 6.0)自己的图书馆。

它们被放置在一个常见的初学者错误中,试图“修复”编译错误。必须以不同的方式解决。

另请参阅:

© www.soinside.com 2019 - 2024. All rights reserved.