java - Spring Unit Testing on EHCache -


i have annotated

@runwith(springjunit4classrunner.class) @contextconfiguration(locations = { "file:webcontent/web-inf/dispatcher-servlet.xml" })  <!-- start of  ehcache -->     <cache:annotation-driven />     <context:component-scan base-package="caching" />     <bean id="cachemanager" class="org.springframework.cache.ehcache.ehcachecachemanager" p:cachemanager-ref="ehcache"/>     <bean id="ehcache" class="org.springframework.cache.ehcache.ehcachemanagerfactorybean"       p:configlocation="/web-inf/ehcache.xml"        p:shared="true"/>      <!-- end of ehcache --> 

it keeps saying ehcache.xml not found... on normal server can found. may know issue?

if understand correctly both spring config , ehcache config in same directory. seems use p:configlocation="ehcache.xml"


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -