Java CAS client /Tomcat Realm

31 views
Skip to first unread message

Bryan Wooten

unread,
Sep 7, 2018, 10:38:07 AM9/7/18
to cas-...@apereo.org
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


Reply all
Reply to author
Forward
0 new messages