cas client异常

1.异常信息

  org.apache.jasper.JasperException: java.lang.ClassCastException: 

org.apache.catalina.util.DefaultAnnotationProcessor cannot be cast to org.apache.AnnotationProcessor

org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:527)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:359)

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)

org.jasig.cas.client.util.AssertionThreadLocalFilter.doFilter(AssertionThreadLocalFilter.java:54)

org.jasig.cas.client.util.HttpServletRequestWrapperFilter.doFilter(HttpServletRequestWrapperFilter.java:75)

org.jasig.cas.client.validation.AbstractTicketValidationFilter.doFilter(AbstractTicketValidationFilter.java:201)

org.jasig.cas.client.authentication.AuthenticationFilter.doFilter(AuthenticationFilter.java:107)

org.jasig.cas.client.session.SingleSignOutFilter.doFilter(SingleSignOutFilter.java:76)

 

2.解决方法

是tomcat的lib文件夹jar包和项目的lib文件下的jar包冲突了把项目下lib文件下和tomcat的jar的重复的全部删除。错误终于被搞定。

主要是cas-client/modules下的catalina-6.0.29.jar和annotations-api-6.0.29.jar两个jar包,至少我是这样的,如果还有一样的,就把客户端的jar包删除吧。

你可能感兴趣的:(client)