首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2EE开发 >

一个关于 org.hibernate.LockMode类的有关问题

2012-04-23 
一个关于 org.hibernate.LockMode类的问题我对数据库做了一些修改,然后也做了相应的映射,但是运行后报错严

一个关于 org.hibernate.LockMode类的问题
我对数据库做了一些修改,然后也做了相应的映射,但是运行后报错
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'travelExpenseManager' defined in ServletContext resource [/WEB-INF/spring/applicationContextBeans-config.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.cuc.account.manager.TravelExpenseManangerImpl]: Constructor threw exception; nested exception is java.lang.Error: Unresolved compilation problem: 
The type org.hibernate.LockMode cannot be resolved. It is indirectly referenced from required .class files
在网上查了一下说是Hibernate.jar没有引用进来,但这怎么可能,我之前可以正常运行啊,请问这可能是什么原因啊

[解决办法]
你把TOMCAT里的缓存清一下,再试试。

热点排行