求解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.html
我的异常网推荐解决方案:org.springframework.beans.factory.BeanCreationException:,http://www.myexception.cn/j2ee/10759.html