
Originally Posted by
johanhammar
Hi
We're also affected by this problem in our project. Is there another solution for this or do we have to load all caching in the security context?
Regards
Johan Hammar
I ran into this post and also experienced the same issue. I had a web.xml that uses <context-param> to load up different xmls for data, service, security...etc and I found that the cache configuration needs to be place AFTER the intended cache beans are configured.
So, I put my cache config (cache-service.xml) as the last file to be loaded in contextConfigLocation and everything is working.
PHP Code:
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
/WEB-INF/service.xml,
/WEB-INF/data.xml,
/WEB-INF/security.xml,
/WEB-INF/cache-service.xml
</param-value>
</context-param>