工程启动时,报一下异常:
[wdfportal] [2014-11-12 13:56:17] [INFO ] main org.springframework.cache.ehcache.EhCacheManagerFactoryBean.afterPropertiesSet(EhCacheManagerFactoryBean.java:100) Initializing EHCache CacheManager
[wdfportal] [2014-11-12 13:56:17] [ERROR] main net.sf.ehcache.Cache.<clinit>(Cache.java:128) Unable to set localhost. This prevents creation of a GUID. Cause was: BJS0-0WP-V: BJS0-0WP-V
java.net.UnknownHostException: BJS0-0WP-V: BJS0-0WP-V
at java.net.InetAddress.getLocalHost(InetAddress.java:1360)
at net.sf.ehcache.Cache.<clinit>(Cache.java:126)
at net.sf.ehcache.config.ConfigurationHelper.createCache(ConfigurationHelper.java:418)
at net.sf.ehcache.config.ConfigurationHelper.createDefaultCache(ConfigurationHelper.java:334)
at net.sf.ehcache.CacheManager.configure(CacheManager.java:306)
at net.sf.ehcache.CacheManager.init(CacheManager.java:226)
at net.sf.ehcache.CacheManager.<init>(CacheManager.java:202)
at org.springframework.cache.ehcache.EhCacheManagerFactoryBean.afterPropertiesSet(EhCacheManagerFactoryBean.java:113)
查看hostname:
[root@BJS0-0WP-V bin]# hostname
BJS0-0WP-V
[root@BJS0-0WP-V bin]# hostname -i
未知的主机
在查看/etc/hosts
[root@BJS0-0WP-V bin]# vi /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
其中没有hostname的映射,导致找不到主机。
修改hosts文件,添加主机的hostname即可:
[root@BJS0-0WP-V bin]# vi /etc/hosts
127.0.0.1 BJS0-0WP-V localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
分享到:
相关推荐
标签:ehcache、jar包、java、中英对照文档; 使用方法:解压翻译后的API文档,用浏览器打开“index.html”文件,即可纵览文档内容。 人性化翻译,文档中的代码和结构保持不变,注释和说明精准翻译,请放心使用。 ...
软件介绍: 已测试有效的ehcache.xsd文件,引入ide中,进行ehcache.xml的代码提示。Windows外壳公用DLL文件,大小23.1KB。
1、ehcache.xml和ehcache.xsd两个文件可以在下在下载下来的名为“ehcache-core-x.x.x-distribution.tar.gz”压缩文件中找到 2、由于要实现Ehcache缓存页面,所以必须要添加“ehcache-web-2.0.4.jar” jar包,该jar包...
基于java的开发源码-Ehcache Java 缓存框架.zip 基于java的开发源码-Ehcache Java 缓存框架.zip 基于java的开发源码-Ehcache Java 缓存框架.zip 基于java的开发源码-Ehcache Java 缓存框架.zip 基于java的开发源码-...
jar包,官方版本,自测可用
该包是hibernate中所用的一个包,专门用来去处理特定的问题,它是和ehcache一起用的一个包
ehcache-core-2.6.10.jar专用包,欢迎下载 ehcache-core-2.6.10.jar ehcache-core-2.6.10.jar ehcache-core-2.6.10.jarehcache-core-2.6.10.jarehcache-core-2.6.10.jar
ehcache-1.6.2-distribution.tar.gz ehcache-2.7.0-distribution.tar.gz 官网下载,放在此处作甲板
jar包,官方版本,自测可用
ehcache-2.8.0-distribution.tar.gz
ehcache缓存jar(ehcache-core-2.4.6.jar+ehcache-web-2.0.4.jar)
hibernate-ehcache-4.1.0.Final.jar 是hibernate4.1使用缓存的jar包
ehcache-core-2.5.1.jar
ehcache-core-2.4.6.jar
ehcache-core-1.7.2.jar
ehcache-2.7.3-distribution.tar.gz EHCache技术文档详解.doc
ehcache-core-2.6.8.jar mybatis 开发缓存文件配合使用jar包
基于java的开发源码-ehcache(Java缓存框架 EhCache).zip 基于java的开发源码-ehcache(Java缓存框架 EhCache).zip 基于java的开发源码-ehcache(Java缓存框架 EhCache).zip 基于java的开发源码-ehcache(Java缓存框架 ...
ehcache.xml配置内容 <ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.ehcache.org/ehcache.xsd"> <diskStore path="java.io.tmpdir"/> eternal=...
ehcache core 2 6 6 jar