问题描述
这是部署web应用后,开始访问页面的时候发生的错误,也重启tomcat了,不知道为甚?HTTP Status 500 - --------------------------------------------------------------------------------type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception java.lang.ClassNotFoundException: org.apache.jsp.logon_jspjava.net.URLClassLoader$1.run(URLClassLoader.java:200)java.security.AccessController.doPrivileged(Native Method)java.net.URLClassLoader.findClass(URLClassLoader.java:188)org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:131)org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:63)org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:597)org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:137)org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:314)org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)javax.servlet.http.HttpServlet.service(HttpServlet.java:803)cn.com.jdlh.common.SecurityFilter.doFilter(SecurityFilter.java:79)cn.com.jdlh.common.EncodingFilter.doFilter(EncodingFilter.java:31)note The full stack trace of the root cause is available in the Apache Tomcat/5.5.26 logs.--------------------------------------------------------------------------------Apache Tomcat/5.5.26 问题补充:u177734357 写道
解决方案
启动tomcat 访问.jsp会生成一个servlet,有的时候如果你不手动清除一下缓存,新定义的或者重新修改过的jsp是不会重新被编译成可执行的servlet的
解决方案二:
嗯是的,用的时间过长以及不断改代码,会造成这个问题,有时缓存不会自动给你清除
解决方案三:
缺少相关包