求解: java web项目 http:500错误 5
HTTPStatus500-typeExceptionreportmessagedescriptionTheserverencounteredaninternalerro...
HTTP Status 500 -
typeException report
message
descriptionThe server encountered an internal error () that
prevented it from fulfilling this request.
exceptionorg.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:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
com.cheea.filter.AuthFilter.doFilter(AuthFilter.java:38)
com.anychart.servlet.ResourceFilter.doFilter(ResourceFilter.java:53)
com.cheea.filter.EncodingFilter.doFilter(EncodingFilter.java:29)
root causejava.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:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
com.cheea.filter.AuthFilter.doFilter(AuthFilter.java:38)
com.anychart.servlet.ResourceFilter.doFilter(ResourceFilter.java:53)
com.cheea.filter.EncodingFilter.doFilter(EncodingFilter.java:29)
noteThe full stack trace of the root cause is available in the
Apache Tomcat/6.0.35 logs. 展开
typeException report
message
descriptionThe server encountered an internal error () that
prevented it from fulfilling this request.
exceptionorg.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:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
com.cheea.filter.AuthFilter.doFilter(AuthFilter.java:38)
com.anychart.servlet.ResourceFilter.doFilter(ResourceFilter.java:53)
com.cheea.filter.EncodingFilter.doFilter(EncodingFilter.java:29)
root causejava.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:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
com.cheea.filter.AuthFilter.doFilter(AuthFilter.java:38)
com.anychart.servlet.ResourceFilter.doFilter(ResourceFilter.java:53)
com.cheea.filter.EncodingFilter.doFilter(EncodingFilter.java:29)
noteThe full stack trace of the root cause is available in the
Apache Tomcat/6.0.35 logs. 展开
4个回答
展开全部
重启tomcat,500以上都是后台java代码错误,重写了后台代码一定记得要重启服务,不然不能编译成可执行的字节码文件
ClassCastException表示类转换错误,你看看有没有地方类型强转错误
ClassCastException表示类转换错误,你看看有没有地方类型强转错误
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
java.lang.ClassCastException是强制转换异常
org.apache.catalina.util.DefaultAnnotationProcessor不能转换 org.apache.AnnotationProcessor
org.apache.catalina.util.DefaultAnnotationProcessor不能转换 org.apache.AnnotationProcessor
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
java.lang.ClassCastException: 此错误为类型转换错误.是不匹配异常,解决方法,强转型,或者你在tomcat的comtext。xml下添加<Loader delegate="true" /> ,望采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
500说明是服务器断错误,这说明你的代码有问题,而不是路径问题!很显然错误在JspServletWrapper.java中仔细找找
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询