0

尝试在我的网络应用程序中使用休眠并获得以下异常:

Initial SessionFactory creation failed.org.hibernate.HibernateException: could not
instantiate RegionFactory [org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory]
org.hibernate.HibernateException: could not instantiate RegionFactory  
[org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory]
at org.hibernate.cfg.SettingsFactory.createRegionFactory(SettingsFactory.java:423)

Caused by: java.lang.ClassCastException: 
org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory cannot be cast to 
org.hibernate.cache.RegionFactory
at org.hibernate.cfg.SettingsFactory.createRegionFactory(SettingsFactory.java:409)
... 31 more

任何想法如何解决这个问题?

4

1 回答 1

0

问题是本地数据库问题。问题解决了。

于 2012-06-08T15:57:51.230 回答