I am trying to implement the Java Client on my Tomcat server but I am now
running into this exception:

java.lang.ClassCastException: org.jasig.cas.client.validation.AssertionImpl
cannot be cast to org.jasig.cas.client.validation.Assertion
        at
org.jasig.cas.client.tomcat.AuthenticatorDelegate.authenticate(AuthenticatorDelegate.java:83)

My server.xml looks like this:

<Context docBase="/opt/grouper/2.4.0/grouper.ui-2.4.0/dist/grouper"
path="/grouper" reloadable="false">
       If you do not need to map users to roles via a
grouper-users.properties file use this.
       <Realm className="org.jasig.cas.client.tomcat.v85.AssertionCasRealm"
        roleAttributeName="eduPersonAffiliation"/>
 <Valve className="org.jasig.cas.client.tomcat.v85.Saml11Authenticator"
     encoding="UTF-8"
     casServerLoginUrl="https://test.go.utah.edu/cas/login";
     casServerUrlPrefix="https://test.go.utah.edu/cas/";
     serverName="iam-grouper3.idm.utah.edu:8080"
   />
  <!-- Single sign-out support -->
  <Valve className="org.jasig.cas.client.tomcat.v85.SingleSignOutValve"
    artifactParameterName="SAMLart"
  />
</Context>

And my Tomcat-users.xml has this:

<role rolename="staff"/>

We built the CAS client from here: https://github.com/apereo/java-cas-client

I had to add the following jars to tomcat/lib:
-rw-r--r-- 1 root root   18544 Sep  4 10:35
cas-client-integration-tomcat-v85-3.5.1-SNAPSHOT.jar
-rw-r--r-- 1 root root  148773 Sep  4 10:59
cas-client-core-3.5.1-SNAPSHOT.jar
-rw-r--r-- 1 root root   12355 Sep  4 10:59
cas-client-integration-tomcat-common-3.5.1-SNAPSHOT.jar
-rw-r--r-- 1 root root  228154 Sep  4 15:34 log4j-api-2.8.2.jar
-rw-r--r-- 1 root root   32684 Sep  4 15:34 log4j-web-2.8.2.jar
-rw-r--r-- 1 root root   23124 Sep  4 15:34 log4j-slf4j-impl-2.8.2.jar
-rw-r--r-- 1 root root   12670 Sep  4 15:34 log4j-jcl-2.8.2.jar
-rw-r--r-- 1 root root 1407853 Sep  4 15:34 log4j-core-2.8.2.jar
-rw-r--r-- 1 root root   41203 Sep  4 15:35 slf4j-api-1.7.25.jar
-rw-r--r-- 1 root root   61829 Sep  4 15:47 commons-logging-1.2.jar
-rw-r--r-- 1 root root   10460 Sep  5 14:28
cas-client-support-saml-3.5.1-SNAPSHOT.jar
-rw-r--r-- 1 root root  640835 Sep  7 08:01 joda-time-2.10.jar

Any thoughts appreciated.

Thanks,

Bryan

University of Utah

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cas-user+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAG9x2GWmPkvivLwuzr6CuQA6xYVrOO6LP%2BtdOb0JqjKCJ54UDw%40mail.gmail.com.

Reply via email to