Hi!!
I'm using Security 3.0.3.RELEASE, Spring 3.0.4.RELEASE and EhCache 2.2.0 to implement Cache in the Users objects but I gat this error:
Caused by: org.springframework.beans.factory.CannotLoadBeanCl assException: Cannot find class [org.springframework.security.providers.dao.cache.E hCacheBasedUserCache] for bean with name 'userCache' defined in class path resource [securityAppCtx.xml]; nested exception is java.lang.ClassNotFoundException: org.springframework.security.providers.dao.cache.E hCacheBasedUserCache
My conf is:
Exploring a little I found this class in different packages with the version of Security:Code:<authentication-manager> <authentication-provider> <password-encoder hash="md5" /> <jdbc-user-service id="jdbcUserService" data-source-ref="dataSource" cache-ref="userCache" /> </authentication-provider> </authentication-manager> <beans:bean id="userCache" class="org.springframework.security.providers.dao.cache.EhCacheBasedUserCache"> <beans:property name="cache" ref="userEhCache" /> </beans:bean> <beans:bean id="userEhCache" class="org.springframework.cache.ehcache.EhCacheFactoryBean"> <beans:property name="cacheManager" ref="cacheManager" /> <beans:property name="cacheName" value="userCache" /> </beans:bean> <beans:bean id="cacheManager" class="org.springframework.security.core.userdetails.cache.EhCacheManagerFactoryBean" />
Spring Security 3
org.springframework.security.core.userdetails.cach e.EhCacheBasedUserCache
But is searching for:
org.springframework.security.providers.dao.cache.E hCacheBasedUserCache
In Spring Security 2.0.x
I added this jar but I have many conflicts...
How can I solve this??
Thks in advance...


Reply With Quote
