Thursday, July 10, 2014

Error "No bean named 'cacheManager' is defined" in spring

Fix this bug please go to WEB-INF/spring/root-context.xml

Please check
xmlns:cache="http://www.springframework.org/schema/cache"
You must have above line.

And next
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/cache http://www.springframework.org/schema/cache/spring-cache.xsd"

You must change
http://www.springframework.org/schema/cache/spring-cache.xsd
to
http://www.springframework.org/schema/cache/spring-cache-3.1.xsd

Now let run

No comments:

Post a Comment