qq_16590545
qq_16590545
采纳率81.3%
2017-02-28 01:29 阅读 1.9k
已采纳

tomcat 启动报错,请高手告诉我一下这是什么问题啊?

50

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.handler.MappedInterceptor#1': Cannot create inner bean 'com.order.back.provider.filter.SystemInterceptor#0' of type [com.order.back.provider.filter.SystemInterceptor] while setting constructor argument; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.order.back.provider.filter.SystemInterceptor] for bean with name 'com.order.back.provider.filter.SystemInterceptor#0' defined in URL [file:/D:/apache-tomcat-7.0.68%20-%20order/webapps/order-back-provider/WEB-INF/classes/spring/spring-mvc.xml]; nested exception is java.lang.ClassNotFoundException: com.order.back.provider.filter.SystemInterceptor
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:287)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122)
at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:637)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:145)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1075)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:979)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:487)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:441)
at org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:1188)
at org.springframework.beans.factory.BeanFactoryUtils.beansOfTypeIncludingAncestors(BeanFactoryUtils.java:277)
at org.springframework.web.servlet.handler.AbstractHandlerMapping.detectMappedInterceptors(AbstractHandlerMapping.java:219)
at org.springframework.web.servlet.handler.AbstractHandlerMapping.initApplicationContext(AbstractHandlerMapping.java:195)
at org.springframework.web.servlet.handler.SimpleUrlHandlerMapping.initApplicationContext(SimpleUrlHandlerMapping.java:103)
at org.springframework.context.support.ApplicationObjectSupport.initApplicationContext(ApplicationObjectSupport.java:119)
at org.springframework.web.context.support.WebApplicationObjectSupport.initApplicationContext(WebApplicationObjectSupport.java:72)
at org.springframework.context.support.ApplicationObjectSupport.setApplicationContext(ApplicationObjectSupport.java:73)
at org.springframework.context.support.ApplicationContextAwareProcessor.invokeAwareInterfaces(ApplicationContextAwareProcessor.java:117)
at org.springframework.context.support.ApplicationContextAwareProcessor.postProcessBeforeInitialization(ApplicationContextAwareProcessor.java:92)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:396)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1505)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)
... 27 more
Caused by: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.order.back.provider.filter.SystemInterceptor] for bean with name 'com.order.back.provider.filter.SystemInterceptor#0' defined in URL [file:/D:/apache-tomcat-7.0.68%20-%20order/webapps/order-back-provider/WEB-INF/classes/spring/spring-mvc.xml]; nested exception is java.lang.ClassNotFoundException: com.order.back.provider.filter.SystemInterceptor
at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1281)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:435)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:276)
... 52 more
Caused by: java.lang.ClassNotFoundException: com.order.back.provider.filter.SystemInterceptor
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1858)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1701)
at org.springframework.util.ClassUtils.forName(ClassUtils.java:266)
at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:419)
at org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1302)
at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1273)
... 54 more

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

7条回答 默认 最新

  • 已采纳
    D578332749 imdongrui 2017-02-28 01:41

    javabean没有初始化成功,你的spring配置得有问题吧,好好检查下,提示说spring在初始化org.springframework.web.servlet.handler.MappedInterceptor的时候不能初始化[com.order.back.provider.filter.SystemInterceptor],不能初始化的原因是找不到这个类,你还是仔细检查下你的spring的配置吧。

    点赞 1 评论 复制链接分享
  • zhangpan_soft zhangpan_soft 2017-02-28 05:52

    图片说明

    点赞 2 评论 复制链接分享
  • lylfqwer lylfqwer 2017-02-28 01:36
  • itkool ChiG 2017-02-28 01:53

    我之前也出现过spring配置文件中一些拦截器或者监听器的类找不到,而且并不是没有就是无法加载,我当初解决的办法就是把tomcat删除重新引入到eclipse中
    然后在将项目重新添加到tomcat中进行重新编译,后来就好了你也可以试一试。

    点赞 评论 复制链接分享
  • u013451048 U+2647 2017-02-28 02:21

    http://blog.csdn.net/u013451048/article/details/52971906
    这是我写的一个 Spring+SpringMVC+mybatis的例子

    点赞 评论 复制链接分享
  • llksias 扛着棺材跳舞 2017-02-28 03:10

    ested exception is java.lang.ClassNotFoundException: com.order.back.provider.filter.SystemInterceptor
    找不到类 com.order.back.provider.filter.SystemInterceptor
    检查一下路径对不对

    点赞 评论 复制链接分享
  • u010177188 yinxin163 2017-02-28 05:22

    1.配置文件没配置对
    2.配置文件的位置与web.xml中加载的位置不一致
    3.对应加包未引用到

    点赞 评论 复制链接分享

相关推荐