tomcat启动jgroups报错

pingge406 发布于 2014/10/09 21:42
阅读 736
收藏 0

配置如下:

<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)


哪位师傅有碰到过这个问题?帮忙解答下



加载中
0
p
pingge406
没人么。。。
0
红薯
红薯

ehcache 不同版本的配置可能会有些差别,比如你错误里的

<cacheManagerPeerProviderFactory> does not allow attribute "propertySeparator".

p
pingge406
相同的版本我在java工程里是可以的,当时换成web工程,用tomcat启动就报以上错误了
返回顶部
顶部