You shouldn't need to copy jar files when adding the dependency to pom.xml:
 
<dependency>
        <groupId>org.jasig.cas</groupId>
        <artifactId>cas-server-integration-ehcache</artifactId>
        <version>3.5.2</version>
</dependency>
 
Assuming you recompiled after adding the dependency to pom.xml, both 
cas-server-integration-ehcache-3.5.2.jar and ehcache-core-2.6.0.jar should be 
present in the lib folder, and you shouldn't have to copy them.  Rather, they 
will be present when the application servers deploy the new WAR.
 
--Ken

>>> Vivi Matthews <[email protected]> 5/31/2013 2:22 PM >>>
Thanks for your response David. I really appreciate it.

cas-server-integration-ehcache-3.5.2.jar is on WEB-INF/lib with 644 permissions.
But I still get the error.

I'm not sure if I did the right thing to generated it though.
I used the pom.xml file on the wiki and executed locally, and then I copied 
just the jars.
Is that the way it should work?

This is a CAS built that is already working I don't want to rebuild it , i just 
need to add that specific part.

Thanks again..

Vivi Matthews
[email protected]



On May 31, 2013, at 12:40 PM, "Ohsie, David" <[email protected]> wrote:

At first blush, it appears that you did not put the
cas-server-integration-ehcache-3.5.2.jar  file properly onto the classpath.
You would want to put the jar files into "WEB-INF/lib" and ensure it that
the files are readable by whatever user your servlet container runs under.

David Ohsie
Software Architect
EMC Corporation

> -----Original Message-----
> From: Viviana [mailto:[email protected]]
> Sent: Friday, May 31, 2013 12:31 PM
> To: [email protected]
> Subject: Re:[cas-user] EhCache Compilation Error
> 
> Hello,
> 
> I found your post while trying to configure EhCache for ticketRegistry,
and I
> would really appreciate if you could shed some light on the issue I'm
facing.
> I've been trying to follow the instructions on the wiki also.
> I placed ehcache-replicated.xml on WEB_INF/classes I did replace the the
> ticketRegistry file and added ehcache-core-2.6.0.jar  and cas-server-
> integration-ehcache-3.5.2.jar,
> 
> Then when I start tomcat I get the following error:
> 
> 2013-05-31 09:56:29,752 ERROR
> [org.springframework.web.context.ContextLoader] - <Context initialization
> failed>
> 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 java.lang.ClassNotFoundException:
> org.jasig.cas.ticket.registry.EhCacheTicketRegistry
>          at
> org.springframework.beans.factory.support.AbstractBeanFactory.resolveBe
> anClass
> (AbstractBeanFactory.java:1262)
>           at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanF
> actory.
> predictBeanType(AbstractAutowireCapableBeanFactory.java:576)
> 
> 
> I don't understand what I'm missing, looks like it is something obvious.
> Thank you !
> 
> Viviana.
> 
> 
> --
> 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



-- 
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


-- 
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

Reply via email to