当提示以下内容是什么问题,该如何修改?
Unable to instantiate Action, com.institution.action.InstitutionAction, defined for 'findAllInstitution' in namespace '/institution'Error creating bean with name 'com.institution.action.InstitutionAction': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.institution.action.InstitutionAction.setIm(com.institution.service.InstitutionManage); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/hibernate/annotations/Entity
Unable to instantiate Action, com.institution.action.InstitutionAction, defined for 'findAllInstitution' in namespace '/institution'Error creating bean with name 'com.institution.action.InstitutionAction': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.institution.action.InstitutionAction.setIm(com.institution.service.InstitutionManage); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/hibernate/annotations/Entity
解决方案 »
- 业务校验和业务操作,必须放在一个或嵌套进一个service方法吗?关于事务的
- jvm加载类时怎样执行一段代码
- 会swing的进来帮帮忙吧
- 定制错误信息页面
- 怎样才能把存在ArrayList中的Collection集合取出来呢?
- 最近在看一个框架Romaframework,希望跟人交流
- 晕,每次修改struts-config.xml文件还要重启web服务器。
- 求助各位哥哥帮忙,小妹在此先谢了,问题解决就给分。谢谢!!帮忙啊
- 当用户输入了一个不存在的URL时,tomcat定向!!!!!
- 各位大侠帮忙,我自学j2ee,配置上出了问题,请看!!!!急!
- tomcat域名绑定问题
- 帮我看看这是什么错误。
jpa标注:ejb3-persistence-1.0.2.GA.jar自己搜索下载一下。
我在Dao和Service中都用了@autowired,还需要在XML中写bean吗?
没有报错呀?