Java – prevents ehcache from attempting to access the Internet at startup

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

I received this error at startup:

<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: connection timeout

How do I block this call?

This 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'm sure this ehcache XML is being selected and used, for example, there is no classpath problem

I am using: ehcache 2.0 1 and Hibernate 3.3 1.GA

Solution

Add updatecheck = "false" to < ehcache / > if the element does not work, try using - DNET. Net on the command line sf. ehcache. Skippupdatecheck = true or use system.exe programmatically Setproperty ("net. SF. Ehcache. Skippupdatecheck", "true") sets system properties

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>