Scott,
Right now I'm using the 2.1.1. I understand the ibiblio push can be tricky.
I'm sure most CAS users know what to do in any case. I just added the
dependency like this in my pom:
<dependency>
<groupId>cas</groupId>
<artifactId>casclient</artifactId>
<version>2.1.1</version>
<scope>runtime</scope>
<exclusions>
<exclusion>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
</exclusion>
</exclusions>
</dependency>
Without that Tomcat just logs that the 2.3 servlet dependency was present, but
it's smart enough to avoid class loading conflicts, so it's coooole. I also
went ahead an updated the demo tutorial (wiki) with a note that Tomcat 6 also
needs the commons-logging library in the lib folder:
http://www.ibiblio.org/maven/commons-logging/jars/commons-logging-1.0.4.jar
I'm sure most maven tomcat plugin users will appreciate the servlet dependency
scope being set to "provided" in the 3.1 release.
Thanks,
- Ole
Scott Battaglia wrote:
> Ole, which CAS client are you using? If its the 2.x one then I'm not
> sure we can update any of those POMs. If its 3.1 then I still have time
> to update it.
>
> Thanks
> -Scott
>
> On Jan 31, 2008 10:30 AM, Ole Ersoy <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> Hi Scott,
>
> Looks like we may have crossed messages. After completing steps six
> in the demo tutorial:
>
> http://www.ja-sig.org/wiki/display/CASUM/Demo
>
> I fired it up and got the exception. The only log message was
> SEVER: Error FilterStart. Turns out that I also needed to add
> commons-logging, which I found out by just doing a fresh maven
> webapp, with the cas client dependency specified. I did add an
> exlusion element within the cas dependency element to exclude the
> servlet transitive dependency, such that the tomcat plugin did not
> bundle the servlet 2.3 jar with the other transitive dependencies
> (commons-logging). I'm sure this is preaching to the quire...if the
> servlet dependency has scope set to provided, then others deploying
> the cas client get to skip the exclusion step. Tomcat 6 detects and
> logs that the dependency is there, and still uses 2.5, so it's only
> to avoid bloat.
>
> Thanks for all the brilliant work on CAS,
> - Ole
>
>
>
>
> Scott Battaglia wrote:
> > Are any other messages showing up in your catalina.out? CAS
> Client for
> > Java 3.1 is where we will be putting our development efforts going
> > forward. However, the version you are using should still work fine.
> >
> > -Scott
> >
> > On Jan 30, 2008 5:43 PM, Ole Ersoy <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>
> > <mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>> wrote:
> >
> > Hi,
> >
> > I'm trying to get the wiki example setup on Tomcat 6.0.14 and
> I get
> > a SEVERE: Error filterStart, in the log during startup, which
> causes
> > the /examples app to startup to fail. I have https working fine,
> > and my web.xml cas filter is setup like this:
> >
> > <filter>
> > <filter-name>CAS Filter</filter-name>
> >
> <filter-class>edu.yale.its.tp.cas.client.filter.CASFilter</filter-class>
> > <init-param>
> >
> <param-name>edu.yale.its.tp.cas.client.filter.loginUrl</param-name>
> >
> <param-value>https://localhost.localdomain:8443/cas/login</param-value>
> > </init-param>
> > <init-param>
> >
> <param-name>edu.yale.its.tp.cas.client.filter.validateUrl</param-name>
> >
>
> <param-value>https://localhost.localdomain:8443/cas/serviceValidate</param-value>
> > </init-param>
> > <init-param>
> >
> <param-name>edu.yale.its.tp.cas.client.filter.serverName</param-name>
> > <param-value>localhost.localdomain:8080</param-value>
> > </init-param>
> > </filter>
> >
> > <filter-mapping>
> > <filter-name>CAS Filter</filter-name>
> > <url-pattern>/servlet/HelloWorldExample</url-pattern>
> > </filter-mapping>
> >
> > Any ideas on how to debug this? Also it seems like there are
> 2 cas
> > clients. Right now I'm using 2.1.1. Should I be using 3.1 with
> > Tomcat 6?
> >
> > Thanks,
> > - Ole
> > _______________________________________________
> > Yale CAS mailing list
> > [email protected] <mailto:[email protected]>
> <mailto:[email protected] <mailto:[email protected]>>
> > http://tp.its.yale.edu/mailman/listinfo/cas
> >
> >
> >
> >
> > --
> > -Scott Battaglia
> >
> > LinkedIn: http://www.linkedin.com/in/scottbattaglia
> >
> >
> >
> ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Yale CAS mailing list
> > [email protected] <mailto:[email protected]>
> > http://tp.its.yale.edu/mailman/listinfo/cas
> _______________________________________________
> Yale CAS mailing list
> [email protected] <mailto:[email protected]>
> http://tp.its.yale.edu/mailman/listinfo/cas
>
>
>
>
> --
> -Scott Battaglia
>
> LinkedIn: http://www.linkedin.com/in/scottbattaglia
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Yale CAS mailing list
> [email protected]
> http://tp.its.yale.edu/mailman/listinfo/cas
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas