tomcat6报错

HTTP Status 500 - java.lang.ClassCastException: org.apache.catalina.util.DefaultAnnotationProcessor cannot be cast to org.apache.AnnotationProcessor


type Exception report

message java.lang.ClassCastException: org.apache.catalina.util.DefaultAnnotationProcessor cannot be cast to org.apache.AnnotationProcessor

description The server encountered an internal error that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: java.lang.ClassCastException: org.apache.catalina.util.DefaultAnnotationProcessor cannot be cast to org.apache.AnnotationProcessor
	org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:161)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:340)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:321)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
	com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:123)

 

root cause

java.lang.ClassCastException: org.apache.catalina.util.DefaultAnnotationProcessor cannot be cast to org.apache.AnnotationProcessor
	org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:151)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:340)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:321)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
	com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:123)

 

note The full stack trace of the root cause is available in the Apache Tomcat/6.0.53 logs.


Apache Tomcat/6.0.53

发生问题原因::

使用IDEA没有加载进去tomcat的jsp-api.jar包 

你可能感兴趣的:(tomcat6报错)