WARN No configuration found. Configuring ehcache from ehcache-failsafe.xml....
来源:互联网 发布:mac版本百度云 编辑:程序博客网 时间:2024/05/17 01:14
关键字: 警告:hibernate缓存配置文件问题
警告: No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/C:/Program%20Files/Tomcat%205.5/webapps/XFWebs/WEB-INF/lib/ehcache-1.2.4.jar!/ehcache-failsafe.xml
原因:报这个错是因为在/sandh/web-inf/classes下面没有ehcache.xml这个文件!这个文件是hibernate缓存配置文件。
解决方法:从ehcache-1.1.jar 中把文件ehcache-failsafe.xml 解压出来改名 ehcache.xml 复制到classes下面就行了!
配置文件解读:
<diskStore>表示当内存缓存中对象数量超过类设置内存缓存数量时,将缓存对象写到硬盘,path=”java.io.tmpdir
”表示把数据写到这个目录下。Java.io.tmpdir目录在运行时会根据相对路径生成。
<defaultCache>表示设定缓存的默认数据过期策略。
<cache>表示设定用具体的命名缓存的数据过期策略。
name表示具体的缓存命名。
maxElementsInMemory表示cache中最大允许保存的对象数据量。
eternal表示cache中数据是否为常量。
timeToIdleSeconds表示缓存数据钝化时间
timeToLiveSeconds表示缓存数据的生命时间。
overflowToDisk表示内存不足时,是否启用磁盘缓存。
原因:报这个错是因为在/sandh/web-inf/classes下面没有ehcache.xml这个文件!这个文件是hibernate缓存配置文件。
解决方法:从ehcache-1.1.jar 中把文件ehcache-failsafe.xml 解压出来改名 ehcache.xml 复制到classes下面就行了!
配置文件解读:
<diskStore>表示当内存缓存中对象数量超过类设置内存缓存数量时,将缓存对象写到硬盘,path=”java.io.tmpdir
”表示把数据写到这个目录下。Java.io.tmpdir目录在运行时会根据相对路径生成。
<defaultCache>表示设定缓存的默认数据过期策略。
<cache>表示设定用具体的命名缓存的数据过期策略。
name表示具体的缓存命名。
maxElementsInMemory表示cache中最大允许保存的对象数据量。
eternal表示cache中数据是否为常量。
timeToIdleSeconds表示缓存数据钝化时间
timeToLiveSeconds表示缓存数据的生命时间。
overflowToDisk表示内存不足时,是否启用磁盘缓存。
- WARN No configuration found. Configuring ehcache from ehcache-failsafe.xml....
- 1.WARN:No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath
- No configuration found. Configuring ehcache from ehcache-failsafe.xml
- No configuration found. Configuring ehcache from ehcache-failsafe.xml
- warn中出来如下信息的解决方案(No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath)
- No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath
- No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath
- No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath解决
- No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath
- 解决:No configuration found. Configuring ehcache from ehcache-failsafe.xml 问题
- 解决:No configuration found. Configuring ehcache from ehcache-failsafe.xml 问题
- hibernate:net.sf.ehcache.config.Configurator#configure : No configuration found. Configuring ehcache from ehcache-failsafe.xml f
- No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/D:/package/java/hibernat
- Configuring ehcache from ehcache-failsafe.xml found in the classpath:
- WARN : net.sf.ehcache.config.Configurator#configure : No configuration found. Configuring ehcache fr
- Myeclipse+hibernate报错:No configuration found.关于(ehcache-failsafe.xml)
- WARN : net.sf.ehcache.config.Configurator#configure : No co nfiguration found.Configuring ehcache
- net.sf.ehcache.config.Configurator#configure : No configuration found.
- TCPMP源代码分析
- AOP在大规模软件开发项目中应用的尝试与思考
- goto
- 常见Web应用安全漏洞
- TCPMP源代码分析---窥豹一斑
- WARN No configuration found. Configuring ehcache from ehcache-failsafe.xml....
- select 1 from ... sql语句中的1代表什么意思?
- DirectFB和Cairo的嵌入式图形开发实践
- oracle Date型时间加减
- java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava
- 美欲为G20峰会定调 重塑世界经济秩序
- 邮件属性说明
- SQL2005数据库引擎结构(二)
- ant针对ear的自动构建和发布到weblogic9