配置如下:
<cacheManagerPeerProviderFactory
class="net.sf.ehcache.distribution.jgroups.JGroupsCacheManagerPeerProviderFactory"
properties="connect=TCP(start_port=37800;end_port=37820;loopback=true):
TCPPING(initial_hosts=192.168.2.121[37800],192.168.2.239[37800];port_range=10;timeout=3000;
num_initial_members=3;up_thread=true;down_thread=true):
VERIFY_SUSPECT(timeout=1500;down_thread=false;up_thread=false):
pbcast.NAKACK(down_thread=true;up_thread=true;gc_lag=100;retransmit_timeout=3000):
pbcast.GMS(join_timeout=5000;join_retry_timeout=2000;shun=false;print_local_addr=false;down_thread=true;up_thread=true)"
propertySeparator="::"
/>
结果报错:
net.sf.ehcache.CacheException: Error configuring from C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\lklmposweb\WEB-INF\classes\ehcache.xml. Initial cause was Error configuring from input stream. Initial cause was null:28: Element <cacheManagerPeerProviderFactory> does not allow attribute "propertySeparator".
at net.sf.ehcache.config.ConfigurationFactory.parseConfiguration(ConfigurationFactory.java:69)
at net.sf.ehcache.CacheManager.parseConfiguration(CacheManager.java:229)
at net.sf.ehcache.CacheManager.init(CacheManager.java:190)
at net.sf.ehcache.CacheManager.<init>(CacheManager.java:131)
哪位师傅有碰到过这个问题?帮忙解答下
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。
没人么。。。
ehcache不同版本的配置可能会有些差别,比如你错误里的
<cacheManagerPeerProviderFactory>doesnotallowattribute"propertySeparator".
相同的版本我在java工程里是可以的,当时换成web工程,用tomcat启动就报以上错误了