当前位置: 代码迷 >> WebSphere >> 求解websphere 项目发布的有关问题
  详细解决方案

求解websphere 项目发布的有关问题

热度:9897   发布时间:2013-02-26 00:00:00.0
求解websphere 项目发布的问题
求解websphere 项目发布的问题:

本来在tomcat下能跑的项目,我要在websphere测试项目,
系统输出日志报错:
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'customerDAO' defined in class path resource [app-context.xml]: Cannot resolve reference to bean 'sessionFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [system-infrastructure-config.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org.hibernate.cfg.AnnotationConfiguration (initialization failure)


------解决方案--------------------------------------------------------
好像少了jar包
hibernate-annotations-*.jar
下载个吧 http://www.findjar.com/class/org/hibernate/cfg/AnnotationConfiguration