序方式 动作... 
![]() | 启动了一套与此搜索 |
![]() | 包括搜索在我的一个集 |
![]() | 排除了这一搜索从我的一个集 |
![]() | 永久这些结果 贴此链接在电子邮件或im : |
| atom供稿跟踪未来的搜寻结果 此网址粘贴到您的读者: |
16中的邮件net.java.dev.appfuse.users 稀土: [ appfuse用户]打开ehcache英寸.. | 出的 | 件 | |
|---|---|---|
| 王驰 | 2007年1月28日下午11时34分 | |
| 丁,秦 | 2007年1月29日上午07时08分 | |
| 迈克尔霍维茨 | 2007年1月29日上午07点11 | |
| 丁,秦 | ○○七年一月三十〇号上午6时44 | |
| 丁,秦 | ○○七年一月三十〇号上午09时42分 | |
| 罗布面包车oostrum | ○○七年一月三十〇号上午十点08分 | |
| 丁,秦 | ○○七年一月三十〇号下午1时36分 | |
| 罗布面包车oostrum | ○○七年一月三十〇号下午4点54分 | |
| 丁,秦 | 2007年1月31日上午06点50分 | |
| 马特raible | 2007年1月31日上午10时53分 | |
| 丁,秦 | 2007年1月31日下午1时25 | |
| 丁,秦 | 2007年1月31日下午1时36分 | |
| 马特raible | 2007年1月31日下午4时37分 | |
| 丁,秦 | 2007年2月1日上午06点42分 | |
| 丁,秦 | 2007年2月1日上午6时54分 | |
| 马特raible | 2007年2月1日上午08点12 |

![]() | 永久此邮件 贴此链接在电子邮件或im : |
![]() | 永久此线程 贴此链接在电子邮件或im : |
| atom供稿此线程 此网址粘贴到您的读者: |
| 题: | 稀土: [ appfuse用户]打开ehcache在appfuse | 动作... |
|---|---|---|
| 自: | ,秦( 科迪亚... @ transunion.com ) | |
| 期: | 2007年1月31日上午06时50分14秒 | |
| 单: | net.java.dev.appfuse.users | |
布:非常感谢您的回复。
已尽力
web-inf/ehcache.xml
/ web-inf/ehcache.xml
/ web-inf/ehcache.xml
/ web-inf/classes/ehcache.xml
/ ehcache.xml
ehcache.xml
乎并不重要,我把它,它不能被发现。
样的错误:
org.springframework.beans.factory.beancreationexception :错误造成的bean的名称' sessionfactory到'界定的servletcontext的资源[ / web-inf/applicationcontext-hibernate.xml ] :调用的初始化方法失败;嵌套例外是org.hibernate.hibernateexception :不能实例cacheprovider : org.hibernate.cache.ehcacheprovider
造成的:
org.hibernate.hibernateexception :不能实例cacheprovider : org.hibernate.cache.ehcacheprovider
再次使用appfuse 1.8.4 。 ehcache融入appfule 。 没有人也有同样的问题在使用ehcache在appfuse ? 不知道现在该做什么。 需要的想法或建议。
谢。
________________________________
自:罗布面包车oostrum [地址: rva谱... @ gmail.com ]发送时间:星期二,二〇 〇七年一月三十号下午6时55分: 使用... @ appfuse.dev.java.net主旨: re : [ appfuse -用户]打开ehcache在appfuse
您移动它,并尝试引用它作为' ehcache.xml '或' / ehcache.xml ' ? 文件提到它作为一个类路径加载资源,所以它必须在web-inf/classes或在根的jar文件内web-inf/lib 。
是好奇,为什么您认为有必要把档案。
1/30/07 ,丁,秦“ 科迪亚... @ transunion.com ”写道:
布:非常感谢您的回复。
前appfuse 1.9.4 ,在ehcache.xml是web-inf/classes文件夹。 搬到了它与其他所有配置资源的网络inf文件夹中。
还
“道具关键= ” hibernate.cache.provider_configuration_file_resource_path “ ” / web-inf/ehcache.xml “ /道具”
有同样的错误:不能初始化cacheprovider : org.hibernate.cache.ehcacheprovider
________________________________
自:罗布面包车oostrum [地址: rva谱... @ gmail.com ]发送时间:星期二,二〇 〇七年一月三十号下午12点09分
to : 使用... @ appfuse.dev.java.net主旨: re : [ appfuse用户]打开ehcache在appfuse
http://ehcache.sourceforge.net/documentation/hibernate.html
设置一个? :
hibernate.cache.provider_configuration_file_resource_path = / name_of_confi guration_resource
错误可能是由于缺少配置项目。
1/30/07 ,丁,秦“ 科迪亚... @ transunion.com ”写道:
hibernate的网站,我发现我需要改变这种线
“道具关键= ” cache.provider_class “ ” org.hibernate.cache.ehcacheprovider “ /道具”
“道具关键= ”冬眠。 cache.provider_class “ ” org.hibernate.cache.ehcacheprovider “ /道具”
是,它仍然无法正常工作。 得到了不同的错误:
引的init方法失败;嵌套例外是org.hibernate.hibernateexception :不能实例cacheprovider : org.hibernate.cache.ehcacheprovider
造成的:
org.hibernate.hibernateexception :不能实例cacheprovider : org.hibernate.cache.ehcacheprovider
org.hibernate.cfg.settingsfactory.createcacheprovider ( settingsfactory.ja弗吉尼亚州: 361 )
org.hibernate.cfg.settingsfactory.buildsettings ( settingsfactory.java : 232 )
org.hibernate.cfg.configuration.buildsettings ( configuration.java : 1933 )
org.hibernate.cfg.configuration.buildsessionfactory ( configuration.java : 1 216 )
org.springframework.orm.hibernate3.localsessionfactorybean.newsessionfac托里
________________________________
:丁,秦[地址: 科迪亚... @ transunion.com ]发送时间:星期二,二〇 〇七年一月三十号上午8时45分: 使用... @ appfuse.dev.java.net主旨: re : [ appfuse -用户]打开ehcache在appfuse
克:你如何把“ second_level_cache ”吗? 说,到applicationconext - hibernate.xml ,但仍然得到了同样的错误。
“属性名称= ” hibernateproperties “ ”
“道具”
“道具关键= ” hibernate.dialect “ ” @ hibernate的方言@ “ /道具”
“道具关键= ” hibernate.query.substitutions “ ”真正的' y表示,虚假的'东经“ < /道具”
“道具关键= ” hibernate.cache.use_second_level_cache “ ”真实“ /道具”
“道具关键= ” cache.provider_class “ ” org.hibernate.cache.ehcacheprovider “ /道具”
“道具关键= ” hibernate.generate_statistics “ ”真实“ /道具”
“ /道具”
“ /属性”
________________________________
自:迈克尔霍维茨[地址: 迈克... @ gmail.com ]发送时间:星期一, 2007年1月29日上午九时12 : 使用... @ appfuse.dev.java.net主旨: re : [ appfuse用户]打开ehcache在appfuse
需要设置休眠财产hibernate.cache.use_second_level_cache为true ,如果您要使用查询缓存你需要设置hibernate.cache.use_query_cache真实的。 注意,查询缓存,您需要启用缓存的查询的查询。
克。
1/29/07 ,丁,秦“ 科迪亚... @ transunion.com <mailto: 联想... @transunion.com ” “中写道:
试着使用ehcache在我appfuse 1.9.4应用。
applicatoncontext - hibernate.xml , <property name="hibernateproperties">
还如下:
<property name="hibernateproperties">
<props>
<prop key="hibernate.dialect"> @ hibernate的方言@ “ /道具”
<prop key="hibernate.query.substitutions">真正y表示,虚假的'东经“ < /道具”
<prop key="cache.provider_class"> org.hibernate.cache.ehcacheprovider “ /道具”
<prop key="hibernate.generate_statistics">真正“ /道具”
“ /道具”
“ /属性”
pojo的地位,我说这个示例属性:
* @ hibernate.class表= “状态”
* @ hibernate.cache使用率= “读写”
ehcache.xml ,除了defaultcache ,我说
“快取
称= “ com.mycompany.model.status ”
maxelementsinmemory = “ 10 ”
恒= “假”
timetoidleseconds = “ 0 ”
timetoliveseconds = “ 0 ”
overflowtodisk = “真正的” / “
后我编译和部署到容器中的应用启动失败的很长的错误堆栈跟踪味精。 似乎造成的:
造成的: org.hibernate.cache.nocachingenabledexception :第二级缓存是没有启用使用[ hibernate.cache.use_second_level_cache | hibernate.cache.use_query_cache ]
org.hibernate.cache.nocacheprovider.buildcache ( nocacheprovider.java : 21 )
org.hibernate.cache.cachefactory.createcache ( cachefactory.java : 61 )
... 142多
的问题:除了我所做的那样,还有哪些我应该购买,以便使第二级缓存?




