×
文章路径: Java

RMI CacheException - problem starting listener for RMICachePeer

发表于2年前(May 24, 2016 2:18:04 PM)  阅读 1151  评论 0

分类: Java 异常

标签: Ehcache CacheException RMICachePeer

在tomcat下使用ehcache时,启动报错。在ehcache官网Tomcat Issues and Best Practices一文中有明确说:

I get the following error:

net.sf.ehcache.CacheException: Problem starting listener for RMICachePeer ... java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: java.net.MalformedURLException: no protocol: Files/Apache.

What is going on? This issue occurs to any RMI listener started on Tomcat whenever Tomcat has spaces in its installation path. It can be worked around in Tomcat. The workaround is to remove the spaces in your Tomcat installation path.

出现错误的原因就是tomcat的安装目录包含空格,所以如果出现上面的错误,请先检查tomcat安装目录是否包含空格。

发表评论