今天把项目部署到Tomcat,启动Tomcat服务器之后出了,控制台输出了java.lang.IllegalAccessError: tried to access method net.sf.ehcache.CacheManager.<init>()V from class org.hibernate.cache.EhCacheProvider此类错误错误信息,上网上查了一下.大概了解了下,原来是JAR文件版本问题,
The latest hibernate uses ehcache 1.2 - you seem to be using an older version (1.1 maybe). Upgrade your ehcache library and report back if you still have problems.
<!-- / message --><!-- sig -->
原来项目中使用了两个ehcache文件,一个是1.1.版本,一个是1.2.4.jar版本,把1.1的删除即可,问题解决~~~~
相关资源:敏捷开发V1.0.pptx