求解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