Thanks! I was able to build the client, which resulted in cas-client-core-3.4.2-SNAPSHOT.jar
However, I still encountered the error 05-May-2016 16:56:46.328 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.filterStart Exception starting filter CAS Validation Filter java.lang.ClassNotFoundException: org.jasig.cas.client.validation.Saml11TicketValidationFilter This puzzled me until I realized upon examination of the Unicon sample pom.xml that apparently saml stuff had been factored out from the earlier versions of the client. Once I added cas-client-support-saml-3.4.2-SNAPSHOT.jar to the tomcat's libs, it worked. Aloha, -baron On Wed, May 04, 2016 at 09:41:31PM -0700, Misagh Moayyed wrote: >Docs should be here: >https://github.com/Jasig/java-cas-client > >Sample I use and configure mostly: >https://github.com/UniconLabs/cas-sample-java-webapp/blob/master/pom.xml > > >> -----Original Message----- >> From: [email protected] [mailto:[email protected]] On Behalf Of >> Baron Fujimoto >> Sent: Wednesday, May 4, 2016 7:19 PM >> To: CAS Community <[email protected]> >> Subject: [cas-user] CAS client for Java 3.3.3 and >> Saml11TicketValidationFilter >> example? >> >> Is there any current documentation for using the Java CAS client 3.3.3 >> with the >> Saml11TicketValidationFilter example? >> >> The CAS Client for Java 3.1 wiki page at >> <https://wiki.jasig.org/display/CASC/CAS+Client+for+Java+3.1> indicates >> that >> the latest version of the client is 3.3.3 should be used.[*] >> >> The configuration for the Saml11TicketValidationFilter example described >> at >> <https://wiki.jasig.org/display/CASC/Saml11TicketValidationFilter+Example> >> works with Java CAS client 3.2.1. >> >> When I try to use 3.3.3 though, it starts throwing exceptions. >> >> 04-May-2016 14:09:16.235 SEVERE [localhost-startStop-1] >> org.apache.catalina.core.StandardContext.filterStart Exception starting >> filter >> CAS Validation Filter >> java.lang.NoClassDefFoundError: >> org/opensaml/common/IdentifierGenerator >> >> I think I resolved this by updating opensaml-1.1b.jar with >> opensaml-2.6.4.jar. >> >> Then it threw this exception. >> >> 04-May-2016 14:51:10.138 SEVERE [localhost-startStop-1] >> org.apache.catalina.core.StandardContext.filterStart Exception starting >> filter >> CAS Validation Filter >> java.lang.NoClassDefFoundError: >> org/apache/commons/httpclient/protocol/ProtocolSocketFactory >> >> Which I think was resolved by adding commons-httpclient-3.1.jar. >> >> But now I'm stuck at >> >> 04-May-2016 15:10:22.810 SEVERE [localhost-startStop-1] >> org.apache.catalina.core.StandardContext.filterStart Exception starting >> filter >> CAS Validation Filter java.lang.ExceptionInInitializerError >> at >> org.jasig.cas.client.validation.Saml11TicketValidationFilter.getTicketValidator(S >> aml11TicketValidationFilter.java:54) >> at >> org.jasig.cas.client.validation.AbstractTicketValidationFilter.initInternal(Abstra >> ctTicketValidationFilter.java:142) >> at >> org.jasig.cas.client.validation.Saml11TicketValidationFilter.initInternal(Saml11T >> icketValidationFilter.java:44) >> at >> org.jasig.cas.client.util.AbstractCasFilter.init(AbstractCasFilter.java:75) >> at >> org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterCon >> fig.java:279) >> at >> org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterCon >> fig.java:260) >> at >> org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig. >> java:105) >> at >> org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:46 >> 58) >> at >> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java: >> 5277) >> at >> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147) >> at >> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java: >> 725) >> at >> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701) >> at >> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717) >> at >> org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1092 >> ) >> at >> org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java: >> 1834) >> at >> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) >> at java.util.concurrent.FutureTask.run(FutureTask.java:266) >> at >> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.jav >> a:1142) >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.ja >> va:617) >> at java.lang.Thread.run(Thread.java:745) >> Caused by: java.lang.IllegalArgumentException: InputStream cannot be null >> at >> javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:117) >> at >> org.opensaml.xml.parse.BasicParserPool$DocumentBuilderProxy.parse(BasicP >> arserPool.java:672) >> at >> org.opensaml.xml.parse.BasicParserPool.parse(BasicParserPool.java:216) >> at org.opensaml.xml.XMLConfigurator.load(XMLConfigurator.java:142) >> at >> org.opensaml.DefaultBootstrap.initializeXMLTooling(DefaultBootstrap.java:22 >> 4) >> at >> org.opensaml.DefaultBootstrap.initializeXMLTooling(DefaultBootstrap.java:20 >> 7) >> at >> org.opensaml.DefaultBootstrap.bootstrap(DefaultBootstrap.java:100) >> at >> org.jasig.cas.client.validation.Saml11TicketValidator.<clinit>(Saml11TicketValid >> ator.java:60) >> ... 20 more >> >> Unfortunately the only documentation I can find for this is several years >> old at >> this point and doesn't seem to address this. Does anyone have any >> suggestions on how to get Saml11TicketValidator example working with the >> 3.3.3 client? >> >> [*] I also find references to 3.4.1 at >> <http://mvnrepository.com/artifact/org.jasig.cas.client/cas-client/3.4.1> >> but I haven't found a distribution there like there was for 3.3.3 and I'm >> too >> much of a noob to figure out how to build it from what I can find there. >> >> Aloha, >> -baron >> -- >> Baron Fujimoto <[email protected]> :: UH Information Technology Services >> minutas cantorum, minutas balorum, minutas carboratum desendus >> pantorum >> >> -- >> 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 [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at >> https://groups.google.com/a/apereo.org/group/cas-user/. >> To view this discussion on the web visit >> https://groups.google.com/a/apereo.org/d/msgid/cas- >> user/20160505021208.GA44693%40praenomen.mgt.hawaii.edu. >> For more options, visit https://groups.google.com/a/apereo.org/d/optout. > >-- >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 [email protected]. >To post to this group, send email to [email protected]. >Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/. >To view this discussion on the web visit >https://groups.google.com/a/apereo.org/d/msgid/cas-user/01f201d1a688%2464b8a2c0%242e29e840%24%40unicon.net. >For more options, visit https://groups.google.com/a/apereo.org/d/optout. -- Baron Fujimoto <[email protected]> :: UH Information Technology Services minutas cantorum, minutas balorum, minutas carboratum desendus pantorum -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/20160506032030.GG44693%40praenomen.mgt.hawaii.edu. For more options, visit https://groups.google.com/a/apereo.org/d/optout.
