25 May 2016

net.sf.ehcache.CacheException

Working on a POC for ehcache Replicated demo:
https://github.com/devwebcl/java-caches-demo

I hit an issue for Tomcat in Mac OS X using ehcache listener for replication:

May 25, 2016 11:07:41 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class de.consol.research.cache.part03.ehcache.ServletContextListener
net.sf.ehcache.CacheException: Can't assign requested address


This is solved by setting Java system property:

-Djava.net.preferIPv4Stack=true




No comments :

My Blog List

Blog Archive

There was an error in this gadget

Disclaimer

The views expressed on this blog are my own and do not necessarily reflect the views of Oracle.