Hi,
thank you for your quick reply. I still get an error:
org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration
of element 'ehcache'.
Actually I'm not sure that I have the correct setup. I'm not sure how
to link my ehcache.xml in my project.
It's in my web.xml and looks like:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xmlns="
http://java.sun.com/xml/ns/javaee" xmlns:web="http://
java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://
java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
id="WebApp_ID" version="2.5">
<display-name>FLLims</display-name>
<description>FLLims application</description>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/ehcache.xml /WEB-INF/applicationContext-
jdbc.xml /WEB-INF/applicationContext.xml
/WEB-INF/applicationContext-security.xml</param-value>
</context-param>
<filter>
<filter-name>springSecurityFilterChain</filter-name>
<filter-class>
org.springframework.web.filter.DelegatingFilterProxy
</filter-class>
</filter>
<filter-mapping>
<filter-name>springSecurityFilterChain</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<listener>
<listener-
class>org.springframework.web.context.ContextLoaderListener</listener-
class>
</listener>
<servlet>
<servlet-name>FLLims</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</
servlet-class>
<load-on-startup>0</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>FLLims</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>FLLims</servlet-name>
<url-pattern>*.xls</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>
If I remove /WEB-INF/ehcache.xml from my web.xml file, I get an error
saying Unable to find projectCache (which I defined in my dao as
@Cacheable(cacheName = "projectCache")
I guess because the application doesn't know of the ehcache.xml file.
Shouldn't I have something like this in my applicationContext:
<ehcache:annotation-driven cache-manager="cacheManager"/>
<bean id="cacheManager"
class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean">
<property name="configLocation" value="classpath:/WEB-INF/
ehcache.xml"/>
</bean>
I'm really confused :-) Well, it's the end of the day here, so maybe
that's why.
Thank you!
Ralph
On 18 aug, 16:30, Eric Dalquist <
eric.dalqu...@gmail.com> wrote:
> Can you accesshttp://
ehcache.org/ehcache.xsdfrom your computer?