cannot find class [xxx] for bean with name

cannot find class [xxx] for bean with name

标签: cannot find classfor bean with nameMavenJavaweb
  7905人阅读  评论(2)  收藏  举报
  分类:
 
产生此错误的原因是缺少项目或Jar的引用;
解决办法:找到类对应的项目或是Jar包引用到项目中就可以了。

详细错误信息如下:

[plain]  view plain  copy
  在CODE上查看代码片 派生到我的代码片
  1. 严重: Exception sending context initialized event to listener instance of class com.auth.spring.listener.SpringLoaderListener  
  2. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageSource' defined in file [F:\Workspaces20141106\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\xinghe-manager-web\WEB-INF\classes\spring\applicationContext-resource.xml]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authorizationAttributeSourceAdvisor': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.auth.aop.interceptor.AnnotationsMethodInterceptor com.auth.aop.interceptor.AuthorizationAttributeSourceAdvisor.annotationsMethodInterceptor; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [xxx] for bean with name 'xxx#0' defined in file [F:\Workspaces20141106\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\xinghe-manager-web\WEB-INF\classes\spring\applicationContext-service.xml]; nested exception is java.lang.ClassNotFoundException: xxx  
  3. Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [xxx] for bean with name 'xxx#0' defined in file [F:\Workspaces20141106\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\xinghe-manager-web\WEB-INF\classes\spring\applicationContext-service.xml]; nested exception is java.lang.ClassNotFoundException: xxx  
  4. Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [xxx] for bean with name 'xxx#0' defined in file [F:\Workspaces20141106\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\xinghe-manager-web\WEB-INF\classes\spring\applicationContext-service.xml]; nested exception is java.lang.ClassNotFoundException: xxx  
  5. Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [xxx] for bean with name 'xxx#0' defined in file [F:\Workspaces20141106\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\xinghe-manager-web\WEB-INF\classes\spring\applicationContext-service.xml]; nested exception is java.lang.ClassNotFoundException: xxx  
  6.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:454)  
  7.     at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)  
  8.     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)  
  9.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)  
  10.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198)  
  11.     at org.springframework.context.support.AbstractApplicationContext.initMessageSource(AbstractApplicationContext.java:786)  
  12.     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:467)  
  13.     at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:410)  
  14.     at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)  
  15.     at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)  
  16.     at com.auth.spring.listener.SpringLoaderListener.contextInitialized(SpringLoaderListener.java:24)  
  17.     at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4973)  
  18.     at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467)  
  19.     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)  
  20.     at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)  
  21.     at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)  
  22.     at java.util.concurrent.FutureTask.run(Unknown Source)  
  23.     at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)  
  24.     at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)  
  25.     at java.lang.Thread.run(Unknown Source)  
  26. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authorizationAttributeSourceAdvisor': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.auth.aop.interceptor.AnnotationsMethodInterceptor com.auth.aop.interceptor.AuthorizationAttributeSourceAdvisor.annotationsMethodInterceptor; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [xxx] for bean with name 'xxx#0' defined in file [F:\Workspaces20141106\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\xinghe-manager-web\WEB-INF\classes\spring\applicationContext-service.xml]; nested exception is java.lang.ClassNotFoundException: xxx  
  27.     at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:289)  
  28.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1146)  
  29.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)  
  30.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)  
  31.     at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)  
  32.     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)  
  33.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)  
  34.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198)  
  35.     at org.springframework.aop.framework.autoproxy.BeanFactoryAdvisorRetrievalHelper.findAdvisorBeans(BeanFactoryAdvisorRetrievalHelper.java:92)  
  36.     at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findCandidateAdvisors(AbstractAdvisorAutoProxyCreator.java:101)  
  37.     at org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator.findCandidateAdvisors(AnnotationAwareAspectJAutoProxyCreator.java:85)  
  38.     at org.springframework.aop.aspectj.autoproxy.AspectJAwareAdvisorAutoProxyCreator.shouldSkip(AspectJAwareAdvisorAutoProxyCreator.java:103)  
  39.     at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessBeforeInstantiation(AbstractAutoProxyCreator.java:276)  
  40.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:920)  
  41.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:892)  
  42.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:448)  
  43.     ... 19 more  
  44. Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.auth.aop.interceptor.AnnotationsMethodInterceptor com.auth.aop.interceptor.AuthorizationAttributeSourceAdvisor.annotationsMethodInterceptor; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [xxx] for bean with name 'xxx#0' defined in file [F:\Workspaces20141106\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\xinghe-manager-web\WEB-INF\classes\spring\applicationContext-service.xml]; nested exception is java.lang.ClassNotFoundException: xxx  
  45.     at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:517)  
  46.     at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)  
  47.     at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:286)  
  48.     ... 34 more  
  49. Caused by: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [xxx] for bean with name 'xxx#0' defined in file [F:\Workspaces20141106\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\xinghe-manager-web\WEB-INF\classes\spring\applicationContext-service.xml]; nested exception is java.lang.ClassNotFoundException: xxx  
  50.     at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1281)  
  51.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:575)  
  52.     at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1350)  
  53.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:358)  
  54.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:327)  
  55.     at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:187)  
  56.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:902)  
  57.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:860)  
  58.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:775)  
  59.     at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:489)  
  60.     ... 36 more  
  61. Caused by: java.lang.ClassNotFoundException: xxx  
  62.     at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)  
  63.     at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)  
  64.     at org.springframework.util.ClassUtils.forName(ClassUtils.java:266)  
  65.     at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:419)  
  66.     at org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1302)  
  67.     at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1273)  
  68.     ... 45 more  
  69. Related cause:  
  70. org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [xxx] for bean with name 'xxx#0' defined in file [F:\Workspaces20141106\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\xinghe-manager-web\WEB-INF\classes\spring\applicationContext-service.xml]; nested exception is java.lang.ClassNotFoundException: xxx  
  71.     at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1281)  
  72.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:575)  
  73.     at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1350)  
  74.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:358)  
  75.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:327)  
  76.     at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:187)  
  77.     at org.springframework.aop.framework.autoproxy.BeanFactoryAdvisorRetrievalHelper.findAdvisorBeans(BeanFactoryAdvisorRetrievalHelper.java:73)  
  78.     at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findCandidateAdvisors(AbstractAdvisorAutoProxyCreator.java:101)  
  79.     at org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator.findCandidateAdvisors(AnnotationAwareAspectJAutoProxyCreator.java:85)  
  80.     at org.springframework.aop.aspectj.autoproxy.AspectJAwareAdvisorAutoProxyCreator.shouldSkip(AspectJAwareAdvisorAutoProxyCreator.java:103)  
  81.     at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessBeforeInstantiation(AbstractAutoProxyCreator.java:276)  
  82.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:920)  
  83.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:892)  
  84.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:448)  
  85.     at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)  
  86.     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)  
  87.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)  
  88.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198)  
  89.     at org.springframework.context.support.AbstractApplicationContext.initMessageSource(AbstractApplicationContext.java:786)  
  90.     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:467)  
  91.     at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:410)  
  92.     at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)  
  93.     at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)  
  94.     at com.auth.spring.listener.SpringLoaderListener.contextInitialized(SpringLoaderListener.java:24)  
  95.     at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4973)  
  96.     at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467)  
  97.     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)  
  98.     at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)  
  99.     at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)  
  100.     at java.util.concurrent.FutureTask.run(Unknown Source)  
  101.     at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)  
  102.     at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)  
  103.     at java.lang.Thread.run(Unknown Source)  
  104. Caused by: java.lang.ClassNotFoundException: xxx  
  105.     at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)  
  106.     at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)  
  107.     at org.springframework.util.ClassUtils.forName(ClassUtils.java:266)  
  108.     at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:419)  
  109.     at org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1302)  
  110.     at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1273)  
  111.     ... 32 more  
  112. Related cause:  
  113. org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [xxx] for bean with name 'xxx#0' defined in file [F:\Workspaces20141106\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\xinghe-manager-web\WEB-INF\classes\spring\applicationContext-service.xml]; nested exception is java.lang.ClassNotFoundException: xxx  
  114.     at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1281)  
  115.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:575)  
  116.     at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1350)  
  117.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:358)  
  118.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:327)  
  119.     at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:187)  
  120.     at org.springframework.aop.aspectj.annotation.BeanFactoryAspectJAdvisorsBuilder.buildAspectJAdvisors(BeanFactoryAspectJAdvisorsBuilder.java:90)  
  121.     at org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator.findCandidateAdvisors(AnnotationAwareAspectJAutoProxyCreator.java:87)  
  122.     at org.springframework.aop.aspectj.autoproxy.AspectJAwareAdvisorAutoProxyCreator.shouldSkip(AspectJAwareAdvisorAutoProxyCreator.java:103)  
  123.     at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessBeforeInstantiation(AbstractAutoProxyCreator.java:276)  
  124.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:920)  
  125.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:892)  
  126.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:448)  
  127.     at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)  
  128.     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)  
  129.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)  
  130.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)  
  131.     at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)  
  132.     at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)  
  133.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1417)  
  134.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1158)  
  135.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)  
  136.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)  
  137.     at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)  
  138.     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)  
  139.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)  
  140.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198)  
  141.     at org.springframework.aop.framework.autoproxy.BeanFactoryAdvisorRetrievalHelper.findAdvisorBeans(BeanFactoryAdvisorRetrievalHelper.java:92)  
  142.     at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findCandidateAdvisors(AbstractAdvisorAutoProxyCreator.java:101)  
  143.     at org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator.findCandidateAdvisors(AnnotationAwareAspectJAutoProxyCreator.java:85)  
  144.     at org.springframework.aop.aspectj.autoproxy.AspectJAwareAdvisorAutoProxyCreator.shouldSkip(AspectJAwareAdvisorAutoProxyCreator.java:103)  
  145.     at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessBeforeInstantiation(AbstractAutoProxyCreator.java:276)  
  146.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:920)  
  147.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:892)  
  148.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getSingletonFactoryBeanForTypeCheck(AbstractAutowireCapableBeanFactory.java:805)  
  149.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:737)  
  150.     at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:529)  
  151.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:359)  
  152.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:327)  
  153.     at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:187)  
  154.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:902)  
  155.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:860)  
  156.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:775)  
  157.     at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:489)  
  158.     at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)  
  159.     at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:286)  
  160.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1146)  
  161.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)  
  162.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)  
  163.     at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)  
  164.     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)  
  165.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)  
  166.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198)  
  167.     at org.springframework.aop.framework.autoproxy.BeanFactoryAdvisorRetrievalHelper.findAdvisorBeans(BeanFactoryAdvisorRetrievalHelper.java:92)  
  168.     at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findCandidateAdvisors(AbstractAdvisorAutoProxyCreator.java:101)  
  169.     at org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator.findCandidateAdvisors(AnnotationAwareAspectJAutoProxyCreator.java:85)  
  170.     at org.springframework.aop.aspectj.autoproxy.AspectJAwareAdvisorAutoProxyCreator.shouldSkip(AspectJAwareAdvisorAutoProxyCreator.java:103)  
  171.     at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessBeforeInstantiation(AbstractAutoProxyCreator.java:276)  
  172.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:920)  
  173.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:892)  
  174.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:448)  
  175.     at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)  
  176.     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)  
  177.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)  
  178.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198)  
  179.     at org.springframework.context.support.AbstractApplicationContext.initMessageSource(AbstractApplicationContext.java:786)  
  180.     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:467)  
  181.     at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:410)  
  182.     at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)  
  183.     at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)  
  184.     at com.auth.spring.listener.SpringLoaderListener.contextInitialized(SpringLoaderListener.java:24)  
  185.     at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4973)  
  186.     at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467)  
  187.     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)  
  188.     at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)  
  189.     at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)  
  190.     at java.util.concurrent.FutureTask.run(Unknown Source)  
  191.     at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)  
  192.     at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)  
  193.     at java.lang.Thread.run(Unknown Source)  
  194. Caused by: java.lang.ClassNotFoundException: xxx  
  195.     at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)  
  196.     at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)  
  197.     at org.springframework.util.ClassUtils.forName(ClassUtils.java:266)  
  198.     at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:419)  
  199.     at org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1302)  
  200.     at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1273)  
  201.     ... 79 more  
  202. Related cause:  
  203. org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [xxx] for bean with name 'xxx#0' defined in file [F:\Workspaces20141106\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\xinghe-manager-web\WEB-INF\classes\spring\applicationContext-service.xml]; nested exception is java.lang.ClassNotFoundException: xxx  
  204.     at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1281)  
  205.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:575)  
  206.     at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1350)  
  207.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:358)  
  208.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:327)  
  209.     at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:187)  
  210.     at org.springframework.aop.framework.autoproxy.BeanFactoryAdvisorRetrievalHelper.findAdvisorBeans(BeanFactoryAdvisorRetrievalHelper.java:73)  
  211.     at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findCandidateAdvisors(AbstractAdvisorAutoProxyCreator.java:101)  
  212.     at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findEligibleAdvisors(AbstractAdvisorAutoProxyCreator.java:87)  
  213.     at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.getAdvicesAndAdvisorsForBean(AbstractAdvisorAutoProxyCreator.java:69)  
  214.     at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.wrapIfNecessary(AbstractAutoProxyCreator.java:359)  
  215.     at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyCreator.java:322)  
  216.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:409)  
  217.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1518)  
  218.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)  
  219.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)  
  220.     at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)  
  221.     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)  
  222.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)  
  223.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)  
  224.     at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)  
  225.     at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)  
  226.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1417)  
  227.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1158)  
  228.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)  
  229.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)  
  230.     at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)  
  231.     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)  
  232.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)  
  233.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198)  
  234.     at org.springframework.aop.framework.autoproxy.BeanFactoryAdvisorRetrievalHelper.findAdvisorBeans(BeanFactoryAdvisorRetrievalHelper.java:92)  
  235.     at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findCandidateAdvisors(AbstractAdvisorAutoProxyCreator.java:101)  
  236.     at org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator.findCandidateAdvisors(AnnotationAwareAspectJAutoProxyCreator.java:85)  
  237.     at org.springframework.aop.aspectj.autoproxy.AspectJAwareAdvisorAutoProxyCreator.shouldSkip(AspectJAwareAdvisorAutoProxyCreator.java:103)  
  238.     at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessBeforeInstantiation(AbstractAutoProxyCreator.java:276)  
  239.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:920)  
  240.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:892)  
  241.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getSingletonFactoryBeanForTypeCheck(AbstractAutowireCapableBeanFactory.java:805)  
  242.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:737)  
  243.     at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:529)  
  244.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:359)  
  245.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:327)  
  246.     at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:187)  
  247.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:902)  
  248.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:860)  
  249.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:775)  
  250.     at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:489)  
  251.     at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)  
  252.     at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:286)  
  253.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1146)  
  254.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)  
  255.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)  
  256.     at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)  
  257.     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)  
  258.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)  
  259.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198)  
  260.     at org.springframework.aop.framework.autoproxy.BeanFactoryAdvisorRetrievalHelper.findAdvisorBeans(BeanFactoryAdvisorRetrievalHelper.java:92)  
  261.     at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findCandidateAdvisors(AbstractAdvisorAutoProxyCreator.java:101)  
  262.     at org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator.findCandidateAdvisors(AnnotationAwareAspectJAutoProxyCreator.java:85)  
  263.     at org.springframework.aop.aspectj.autoproxy.AspectJAwareAdvisorAutoProxyCreator.shouldSkip(AspectJAwareAdvisorAutoProxyCreator.java:103)  
  264.     at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessBeforeInstantiation(AbstractAutoProxyCreator.java:276)  
  265.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:920)  
  266.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:892)  
  267.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:448)  
  268.     at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)  
  269.     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)  
  270.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)  
  271.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198)  
  272.     at org.springframework.context.support.AbstractApplicationContext.initMessageSource(AbstractApplicationContext.java:786)  
  273.     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:467)  
  274.     at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:410)  
  275.     at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)  
  276.     at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)  
  277.     at com.auth.spring.listener.SpringLoaderListener.contextInitialized(SpringLoaderListener.java:24)  
  278.     at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4973)  
  279.     at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467)  
  280.     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)  
  281.     at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)  
  282.     at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)  
  283.     at java.util.concurrent.FutureTask.run(Unknown Source)  
  284.     at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)  
  285.     at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)  
  286.     at java.lang.Thread.run(Unknown Source)  
  287. Caused by: java.lang.ClassNotFoundException: xxx  
  288.     at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)  
  289.     at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)  
  290.     at org.springframework.util.ClassUtils.forName(ClassUtils.java:266)  
  291.     at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:419)  
  292.     at org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1302)  
  293.     at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1273)  
  294.     ... 82 more  
  295.   
  296. 十二月 03, 2014 3:30:33 下午 org.apache.catalina.core.StandardContext startInternal  
  297. 严重: Error listenerStart  
  298. 十二月 03, 2014 3:30:33 下午 org.apache.catalina.core.StandardContext startInternal  
  299. 严重: Context [/xinghe-manager-web] startup failed due to previous errors  
  300. 十二月 03, 2014 3:30:33 下午 org.apache.coyote.AbstractProtocol start  
  301. 信息: Starting ProtocolHandler ["http-bio-8081"]  
  302. 十二月 03, 2014 3:30:33 下午 org.apache.coyote.AbstractProtocol start  
  303. 信息: Starting ProtocolHandler ["ajp-bio-8010"]  
  304. 十二月 03, 2014 3:30:33 下午 org.apache.catalina.startup.Catalina start  
  305. 信息: Server startup in 10604 ms  
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值