读书人

myeclipse8+struts2.1+spring2.5+hibe

发布时间: 2012-11-09 10:18:47 作者: rapoo

myeclipse8+struts2.1+spring2.5+hibernate3.2+weblogic10配置二级缓存时提示错误
弄了两天的二级缓存,一直没有弄好,网上找了很多资料都没能弄好,望各位帮帮忙。
但是工程一样能插入、删除、查询数据。
下面是部分代码,
工程在weblogic部署时和weblogic启动时提示有错误。
weblogic部署工程提示:
java.lang.IllegalAccessError: tried to access method net.sf.ehcache.CacheManager.()V from class org.hibernate.cache.EhCacheProvider

weblogic服务器启动时提示:
2010-02-03 23:00:43,015 ERROR (org.springframework.web.context.ContextLoader:215) - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [
/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.IllegalAccessError: tried to access method
net.sf.ehcache.CacheManager.<init>()V from class org.hibernate.cache.EhCacheProvider
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.ja
va:1338)
---------------------

-------------------------------------------
applicationContext.xml 文件




-----------------------------

        eternal="false" 
timeToIdleSeconds="120"
timeToLiveSeconds="120"
overflowToDisk="true"
/>
----------------------------------
weblogic部署工程
weblogic提示:
java.lang.IllegalAccessError: tried to access method net.sf.ehcache.CacheManager.()V from class org.hibernate.cache.EhCacheProvider
执行此操作时遇到错误。



-------------------------------------
工程中用到的jar包



-------------------------------------
控制台提示错误信息

-------------------------------------

junit测试




读书人网 >Web前端

热点推荐