Shiro and Spring integration times versions of Ehcache before version 2.5 allowed any number of cachemanagers with the same name (same config Uration Resource) to exist in a JVM.

Source: Internet
Author: User

Shiro is integrated with spring and has been reported another unnamed CacheManager already exists in the same VM. Provide unique names for each cachemanager in the config or do one of the following:
1. Use one of the cachemanager.create () static factory methods to reuse same CacheManager with same name or create one if Necessary
2. Shutdown the earlier CacheManager before creating new one with same name.
The source of the existing CacheManager is:inputstreamconfigurationsource [[email protected]]

Workaround: The Ehcache jar package was changed to 2.5 before, because 2.5 CacheManager used a single case.

By the way, and now Baidu a bit of a problem, a uniform answer, all copy others, did not explain not to mention the source.

There is a need to see the blogger said the reason, the address is: http://blog.csdn.net/u013147600/article/details/48133913

Shiro and Spring integration times versions of Ehcache before version 2.5 allowed any number of cachemanagers with the same name (same config Uration Resource) to exist in a JVM.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.