欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

S2S4H4项目Tomcat启动报错:Error creating bean with name

程序员文章站 2022-03-28 10:29:29
...

 启动SSH项目时,tomcat报错:

异常如下:

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 'org.springframework.context.event.internalEventListenerProcessor': BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0': Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/aspectj/weaver/tools/PointcutDesignatorHandler

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:478)

...(省略)

at java.lang.Thread.run(Thread.java:744)

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0': Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/aspectj/weaver/tools/PointcutDesignatorHandler

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)

... 19 more

Caused by: java.lang.NoClassDefFoundError: org/aspectj/weaver/tools/PointcutDesignatorHandler

at java.lang.Class.getDeclaredMethods0(Native Method)

... 31 more

Caused by: java.lang.ClassNotFoundException: org.aspectj.weaver.tools.PointcutDesignatorHandler

at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)

at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)

... 49 more

 

我的项目是基于maven的,aop包确实导入了:


S2S4H4项目Tomcat启动报错:Error creating bean with name
            
    
    博客分类: ssh2异常 异常aop 
 
S2S4H4项目Tomcat启动报错:Error creating bean with name
            
    
    博客分类: ssh2异常 异常aop 
 所以,求解S2S4H4项目Tomcat启动报错:Error creating bean with name
            
    
    博客分类: ssh2异常 异常aop 

  • S2S4H4项目Tomcat启动报错:Error creating bean with name
            
    
    博客分类: ssh2异常 异常aop 
  • 大小: 26.1 KB
  • S2S4H4项目Tomcat启动报错:Error creating bean with name
            
    
    博客分类: ssh2异常 异常aop 
  • 大小: 14.5 KB
相关标签: 异常 aop