Topic: 求助,hibernate的异常 (could not instantiate CacheProvider) |
Print this page |
1.求助,hibernate的异常 (could not instantiate CacheProvider) | Copy to clipboard |
Posted by: vincent20 Posted on: 2004-07-25 15:08 在运行一个hiberate例程的时候,抛出一个Exception could not instantiate CacheProvider: net.sf.ehcache.hibernate.Provider的异常,请问应该从哪里去排除?是哪里的问题?hibernate的properties的里面的吗? 谢谢。 |
2.Re:求助,hibernate的异常 [Re: vincent20] | Copy to clipboard |
Posted by: why Posted on: 2004-07-25 19:08 You should have checked Hibernate's FAQ or search on Google first http://www.hibernate.org/74.html#A26 During startup there is an error: could not instantiate CacheProvider: net.sf.ehcache.hibernate.Provider Since 2.1, ehcache is now the default hibernate cache provider. You have two options: * Add ehcache.jar to your classpath * Specify an alternative cache provider by setting the hibernate.cache.provider_class property - net.sf.hibernate.cache.HashtableCacheProvider should be okay if you dont use any caching. |
3.Re:求助,hibernate的异常 (could not instantiate CacheProvider) [Re: vincent20] | Copy to clipboard |
Posted by: vincent20 Posted on: 2004-07-25 19:54 thank you. |
4.Re:求助,hibernate的异常 (could not instantiate CacheProvider) [Re: vincent20] | Copy to clipboard |
Posted by: wenic705 Posted on: 2004-07-26 08:46 好象是数据库连接初始化出错。 |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |