SSH2整合后 启动tomcat 报如下错误 求指导
2014-4-1816:22:32org.apache.catalina.core.StandardContextlistenerStart严重:Exceptionsen...
2014-4-18 16:22:32 org.apache.catalina.core.StandardContext listenerStart
严重: 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 'service': Injection of resource fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [D:\Program huwenli\apache-tomcat-6.0.37\webapps\hwenlioaa\WEB-INF\classes\beans.xml]: Invocation of init method failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.hibernate.cfg.Configuration]: Constructor threw exception; nested exception is java.lang.ClassCastException: org.hibernate.annotations.common.reflection.java.JavaReflectionManager cannot be cast to org.hibernate.annotations.common.reflection.MetadataProviderInjector 展开
严重: 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 'service': Injection of resource fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [D:\Program huwenli\apache-tomcat-6.0.37\webapps\hwenlioaa\WEB-INF\classes\beans.xml]: Invocation of init method failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.hibernate.cfg.Configuration]: Constructor threw exception; nested exception is java.lang.ClassCastException: org.hibernate.annotations.common.reflection.java.JavaReflectionManager cannot be cast to org.hibernate.annotations.common.reflection.MetadataProviderInjector 展开
展开全部
Could not instantiate bean class [org.hibernate.cfg.Configuration]: Constructor threw exception; nested exception is java.lang.ClassCastException: org.hibernate.annotations.common.reflection.java.JavaReflectionManager cannot be cast to org.hibernate.annotations.common.reflection.MetadataProviderInjector
创建 hibernate配置类的实例时,发生错误。
instantiate bean class [org.hibernate.cfg.Configuration]:
.ClassCastException意思是发生了类型转换,从.JavaReflectionManager到MetadataProviderInjector
检查你的hibernate配置文件,
创建 hibernate配置类的实例时,发生错误。
instantiate bean class [org.hibernate.cfg.Configuration]:
.ClassCastException意思是发生了类型转换,从.JavaReflectionManager到MetadataProviderInjector
检查你的hibernate配置文件,
展开全部
你的spring的bean配置错了,一个叫service的bean出错了
追问
我把这个bean不注入 也会报错啊
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
WEB.xml少配置了一个spring的监听器吧?
追问
我配了啊
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询