Cas Client + CAS Server 5.0.1

96 views
Skip to first unread message

Sebastian Wilde

unread,
Jan 30, 2017, 8:30:43 AM1/30/17
to CAS Community
Hello,

i've installed a CAS Server Version 5.0.1 and works.

Furthermore i have write a website with php and works, too.

But now i have written a simple java Program, but the Client doesn't work.

I have added the cas-client-core.jar to the Libaries and added this code the web.xml:

<filter> <filter-name>CAS Authentication Filter</filter-name> <filter-class>org.jasig.cas.client.authentication.AuthenticationFilter</filter-class> <init-param> <param-name>casServerLoginUrl</param-name> <param-value>https://battags.ad.ess.rutgers.edu:8443/cas/login</param-value> </init-param> <init-param> <param-name>serverName</param-name> <param-value>http://www.acme-client.com</param-value> </init-param> </filter> <filter-mapping> <filter-name>CAS Authentication Filter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping>

The casServerLoginUrl and serverName are updated to our company.

But when i copy the war file to the tomcat webapp folder i get the following error:

java.lang.ClassNotFoundException: org.jasig.cas.client.authentication.AuthenticationFilter

Is there anyone, who can help me?

Thanks a lot.

Menno en Erla Avegaart

unread,
Feb 6, 2017, 7:35:56 AM2/6/17
to CAS Community
Sounds like you didn't include cas-client-core-3.4.1.jar.

Did you follow the instructions and added the following lines to your pom.xml?

<dependency>
    <groupId>org.jasig.cas.client</groupId>
    <artifactId>cas-client-core</artifactId>
    <version>${java.cas.client.version}</version>
</dependency>


Op maandag 30 januari 2017 14:30:43 UTC+1 schreef Sebastian Wilde:
Reply all
Reply to author
Forward
0 new messages