Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Prevent ehcache trying to access internet on startup

I have a fairly simple non-clustered application running ehcache with spring and hibernate.

On startup I'm getting this error:

<06-Sep-2010 19:14:05 o'clock BST> <Error> <Net>  <Failed to communicate with proxy:   10.x.x.x/8080. Will try connection www.terracotta.org/80 now.

java.net.SocketTimeoutException: connect timed out

How do I prevent this call?

Here is my ehcache.xml:

<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:noNamespaceSchemaLocation="ehcache.xsd"
         updateCheck="false" monitoring="off" dynamicConfig="false">


<defaultCache maxElementsInMemory="1000" eternal="false"
    timeToIdleSeconds="60" timeToLiveSeconds="60"
     overflowToDisk="false" >
      <terracotta clustered="false"/>
</defaultCache>

I am certain that this ehcache.xml is being picked up and used e.g. no classpath issues.

I'm using: ehcache 2.0.1, and hibernate 3.3.1.GA

like image 227
Pablojim Avatar asked Sep 06 '10 18:09

Pablojim


1 Answers

When adding updateCheck="false" to your <ehcache /> element doesn't work, try setting the system property, either with -Dnet.sf.ehcache.skipUpdateCheck=true at the command line or System.setProperty("net.sf.ehcache.skipUpdateCheck", "true") programmatically.

like image 178
earldouglas Avatar answered Sep 21 '22 06:09

earldouglas