I am currently having an issue with the clearpass webapp piece where it's dumping the 2.2.0 version of ehcache-core and that made it throw a few weird issues like what you're seeing. Check your WEB-INF/lib directory to make sure you've got the 2.5.0 ehcache jars.
Jonathan Liedy Middleware Administrator The Florida State University 2035 East Paul Dirac Drive Sliger, Suite 113 Tallahassee, FL 32310 [email protected]<mailto:[email protected]> Voice: (850) 270-7368 From: CHAD CAMPBELL [mailto:[email protected]] Sent: Saturday, August 25, 2012 2:24 PM To: [email protected] Subject: [cas-user] cas-server-integration-ehcache issue Hey guys, I'm new to the maven war overlay process as well as ehcache, so forgive me if I'm overlooking something simple here. I've deployed CAS 3.5.0, configured for ldap, everything is working fine there. I'm trying to implement ehcache to replicate the ticket registry. Documentation on the wiki isn't up to current revision, but between those docs, github, and one or two other cas-users postings I thought I had it mostly figured out. I added the cas-server-integration-ehcache dependency to pom.xml (below), edited the ticketRegistry.xml config (first based on the wiki config, then based on Andrew's config at http://jasig.275507.n4.nabble.com/CAS-EHCache-Ticket-Registry-td278045.html), created the classes:/ehcache.xml config file. Now I'm getting the following error: 2012-08-25 10:19:15,858 ERROR [org.jasig.cas.web.init.SafeContextLoaderListener] - SafeContextLoaderListener: The Spring ContextLoaderListener we wrap threw on contextInitialized. But for our having caught this error, the web application context would not have initialized. org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.jasig.cas.ticket.registry.EhCacheTicketRegistry] for bean with name 'ticketRegistry' defined in ServletContext resource [/WEB-INF/spring-configuration /ticketRegistry.xml]; nested exception is java.lang.ClassNotFoundException: org.jasig.cas.ticket.registry.EhCacheTicketRegistry <<<<Snipped>>>> Any ideas what I'm missing? I've been beating my head against it for a few hours already, but I know it's something I'm just plain overlooking (I'm guessing a maven oversight on my part). My ticketregistry.xml is identical to the link above, and I'm using the ehcache-replicated.xml config from the wiki. My pom.xml is pretty simple: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd "> <modelVersion>4.0.0</modelVersion> <groupId>edu.university.cas</groupId> <artifactId>local-cas</artifactId> <packaging>war</packaging> <version>1.0-Testing</version> <build> <plugins> <plugin> <artifactId>maven-war-plugin</artifactId> <version>2.2</version> <configuration> <warName>cas</warName> </configuration> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>org.jasig.cas</groupId> <artifactId>cas-server-webapp</artifactId> <version>${cas.version}</version> <type>war</type> <scope>runtime</scope> </dependency> <dependency> <groupId>org.jasig.cas</groupId> <artifactId>cas-server-support-ldap</artifactId> <version>${cas.version}</version> </dependency> <dependency> <groupId>org.jasig.cas</groupId> <artifactId>cas-server-integration-ehcache</artifactId> <version>${cas.version}</version> </dependency> <dependency> <groupId>commons-pool</groupId> <artifactId>commons-pool</artifactId> <version>1.6</version> </dependency> </dependencies> <properties> <cas.version>3.5.0</cas.version> </properties> <repositories> <repository> <id>ja-sig</id> <url>http://oss.sonatype.org/content/repositories/releases/ </url> </repository> </repositories> </project> -- You are currently subscribed to [email protected]<mailto:[email protected]> as: [email protected]<mailto:[email protected]> To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user -- You are currently subscribed to [email protected] as: [email protected] To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user
