PDA

View Full Version : Spring-ehcache


shobhitha
Jun 2nd, 2006, 05:17 AM
I am getting an error as follows..

Error creating bean with name 'questionServices' defined in file [C:\Documents and Settings\shobhitha.s\workspace\zapzone\build\sprin gcontext.xml]: Cannot resolve reference to bean 'iqdao' while setting bean property 'iqdao'; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'iqdao' defined in file [C:\Documents and Settings\shobhitha.s\workspace\zapzone\build\sprin gcontext.xml]: Cannot resolve reference to bean 'hibernateTemplate' while setting bean property 'hibernateTemplate'; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'hibernateTemplate' defined in file [C:\Documents and Settings\shobhitha.s\workspace\zapzone\build\sprin gcontext.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'sessionFactory' defined in file [C:\Documents and Settings\shobhitha.s\workspace\zapzone\build\sprin gcontext.xml]: Initialization of bean failed; nested exception is org.hibernate.cache.CacheException: net.sf.ehcache.CacheException: Cannot configure CacheManager: The system cannot find the path specified

I am using eclipse, hibernate3 junit for unit testing..

I also reffred the site http://ehcache.sourceforge.net/docum...iguration.html, there it says if ehcache.xml is not found then this error comes. but my classpath refers to ehcache-1.1.jar.

Where am i wrong?Can any one help me on this issue?

acnesiac
Jun 26th, 2007, 02:02 PM
Does your ehcache.xml is in your classpath, ?
Do you have the rigth version 1.2.3 or later ?
Because if you have two jars in your classpath with diferent versions doesn work.

Why dont you use interceptors instead.