开发者社区 问答 正文

tomcat启动jgroups报错?报错

配置如下:

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


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



展开
收起
爱吃鱼的程序员 2020-06-14 21:19:08 496 分享 版权
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    没人么。。。

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

    <cacheManagerPeerProviderFactory>doesnotallowattribute"propertySeparator".

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

    2020-06-14 21:19:25
    赞同 展开评论