以下是报错的详细信息,请问这是什么原因要怎么决定呀
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'feeOrderInfoServiceImpl' defined in file [D:\uis\uis-backstage-services\target\classes\cn\sumpay\backstage\service\impl\FeeOrderInfoServiceImpl.class]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/springframework/aop/aspectj/autoproxy/AspectJAwareAdvisorAutoProxyCreator$PartiallyComparableAdvisorHolder
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)找不到类文件,看看你的配置文件里路径写对没,如果是对的看看对应路径下有没有这个文件路径是对的,文件也存在呀<spanstyle="font-family:'MicrosoftYaHei',Verdana,sans-serif,宋体;font-size:14px;line-height:22px;background-color:#FFFFFF;">feeOrderInfoServiceImpl这个bean没有实例到spring容器中,查看spring配置,有没有扫到这个bean或配置这个bean回复<aclass="referer"target="_blank">@wow_筱陌:回复<aclass="referer"target="_blank">@wow_筱陌:我是aspectjweaver.jar和aspectjrtweaver.jar这两个jar包没有加载回复<aclass='referer'target='_blank'>@筱潇:有个jar包没加载进来,又不说是哪个jar包,哎回复<aclass='referer'target='_blank'>@筱潇:楼主,这个问题能帮忙解决一下么谢谢呀,找到原因了,有个jar包加载不进来我也遇到了,结果发现缺少了aspectjweaver的包
java.lang.ClassNotFoundException:org.springframework.aop.aspectj.autoproxy.AspectJAwareAdvisorAutoProxyCreator$PartiallyComparableAdvisorHolder------------------------------------------
少包了
我的项目也包这种错,我也导了aspectjweaverjar包啊
在struts2和spring进行整合时,在controle层声明业务类对象时,需要声明接口,而不是实现类。(此问题也得以解决)
23423423
严重:StandardWrapper.Throwable
org.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname'itemController':Injectionofresourcedependenciesfailed;nestedexceptionisorg.springframework.beans.factory.NoSuchBeanDefinitionException:Noqualifyingbeanoftype[com.taotao.service.ItemService]foundfordependency:expectedatleast1beanwhichqualifiesasautowirecandidateforthisdependency.Dependencyannotations:{@javax.annotation.Resource(shareable=true,mappedName=,description=,name=,type=classjava.lang.Object,lookup=,authenticationType=CONTAINER)}
atorg.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:311)
atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214)
atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543)
atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
atorg.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
atorg.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
atorg.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)
atorg.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:839)
atorg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538)
atorg.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:668)
atorg.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:634)
atorg.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:682)
atorg.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:553)
atorg.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:494)
atorg.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)
atjavax.servlet.GenericServlet.init(GenericServlet.java:160)
atorg.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1280)
atorg.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1193)
atorg.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1088)
atorg.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5176)
atorg.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5460)
atorg.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
atorg.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
atorg.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
atjava.util.concurrent.FutureTask.run(FutureTask.java:262)
atjava.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
atjava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
atjava.lang.Thread.run(Thread.java:745)
Causedby:org.springframework.beans.factory.NoSuchBeanDefinitionException:Noqualifyingbeanoftype[com.taotao.service.ItemService]foundfordependency:expectedatleast1beanwhichqualifiesasautowirecandidateforthisdependency.Dependencyannotations:{@javax.annotation.Resource(shareable=true,mappedName=,description=,name=,type=classjava.lang.Object,lookup=,authenticationType=CONTAINER)}
atorg.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoSuchBeanDefinitionException(DefaultListableBeanFactory.java:1373)
atorg.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1119)
atorg.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1014)
atorg.springframework.context.annotation.CommonAnnotationBeanPostProcessor.autowireResource(CommonAnnotationBeanPostProcessor.java:508)
atorg.springframework.context.annotation.CommonAnnotationBeanPostProcessor.getResource(CommonAnnotationBeanPostProcessor.java:486)
atorg.springframework.context.annotation.CommonAnnotationBeanPostProcessor$ResourceElement.getResourceToInject(CommonAnnotationBeanPostProcessor.java:615)
atorg.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:169)
atorg.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
atorg.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:308)
...29more
六月04,20173:23:05下午org.apache.catalina.core.StandardContextloadOnStartup
严重:Servlet threwload()exception
org.springframework.beans.factory.NoSuchBeanDefinitionException:Noqualifyingbeanoftype[com.taotao.service.ItemService]foundfordependency:expectedatleast1beanwhichqualifiesasautowirecandidateforthisdependency.Dependencyannotations:{@javax.annotation.Resource(shareable=true,mappedName=,description=,name=,type=classjava.lang.Object,lookup=,authenticationType=CONTAINER)}
atorg.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoSuchBeanDefinitionException(DefaultListableBeanFactory.java:1373)
atorg.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1119)
atorg.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1014)
atorg.springframework.context.annotation.CommonAnnotationBeanPostProcessor.autowireResource(CommonAnnotationBeanPostProcessor.java:508)
atorg.springframework.context.annotation.CommonAnnotationBeanPostProcessor.getResource(CommonAnnotationBeanPostProcessor.java:486)
atorg.springframework.context.annotation.CommonAnnotationBeanPostProcessor$ResourceElement.getResourceToInject(CommonAnnotationBeanPostProcessor.java:615)
atorg.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:169)
atorg.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
atorg.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:308)
atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214)
atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543)
atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
atorg.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
atorg.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
atorg.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)
atorg.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:839)
atorg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538)
atorg.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:668)
atorg.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:634)
atorg.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:682)
atorg.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:553)
atorg.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:494)
atorg.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)
atjavax.servlet.GenericServlet.init(GenericServlet.java:160)
atorg.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1280)
atorg.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1193)
atorg.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1088)
atorg.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5176)
atorg.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5460)
atorg.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
atorg.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
atorg.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
atjava.util.concurrent.FutureTask.run(FutureTask.java:262)
atjava.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
atjava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
atjava.lang.Thread.run(Thread.java:745)
六月04,20173:23:05下午org.apache.coyote.AbstractProtocolstart
信息:StartingProtocolHandler["http-bio-8081"]
我也是这个错啊,求解决方法
保证路径正确
<!--配置包扫描器,扫描所有带@Service注解的类-->
<context:component-scanbase-package="com.li..action,com.li..service"></context:component-scan>
类中使用确定使用了 <aclass="referer"target="_blank">@Controller <aclass="referer"target="_blank">@Service等标签, 我也发生了这个错误,因为我把包路径写错了,service单词拼写为serice
org.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname'sqlSessionFactory'definedinfile[D:\workspaces-itcast\template\e3-manager\e3-manager-service\target\classes\spring\applicationContext-dao.xml]:Initializationofbeanfailed;nestedexceptionisjava.lang.reflect.MalformedParameterizedTypeException
这是怎么回事
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。