java.lang.NoClassDefFoundError: org/aspectj/lang/reflect/AjTypeSystem

Spring JIRA | Oleksandr Alesinskyy | 1 decade ago
  1. 0

    Exception below is raised but not logged under following conditions: - context contain aop-related tags (e.g. <aop:aspectj-autoproxy/> or <aop:spring-configured/>) - JVM option -javaagent:aspectjweaver.jar is ommited Exception in thread "main" java.lang.NoClassDefFoundError: org/aspectj/lang/reflect/AjTypeSystem at org.springframework.aop.aspectj.annotation.AbstractAspectJAdvisorFactory.isAspect(AbstractAspectJAdvisorFactory.java:113) at org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator.isInfrastructureClass(AnnotationAwareAspectJAutoProxyCreator.java:91) at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.isInfrastructureClass(AbstractAutoProxyCreator.java:263) at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessBeforeInstantiation(AbstractAutoProxyCreator.java:206) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:516) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:351) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:155) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:641) at de.ntec.feasibility.configurable.Main.main(Main.java:11)

    Spring JIRA | 1 decade ago | Oleksandr Alesinskyy
    java.lang.NoClassDefFoundError: org/aspectj/lang/reflect/AjTypeSystem
  2. 0

    Exception below is raised but not logged under following conditions: - context contain aop-related tags (e.g. <aop:aspectj-autoproxy/> or <aop:spring-configured/>) - JVM option -javaagent:aspectjweaver.jar is ommited Exception in thread "main" java.lang.NoClassDefFoundError: org/aspectj/lang/reflect/AjTypeSystem at org.springframework.aop.aspectj.annotation.AbstractAspectJAdvisorFactory.isAspect(AbstractAspectJAdvisorFactory.java:113) at org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator.isInfrastructureClass(AnnotationAwareAspectJAutoProxyCreator.java:91) at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.isInfrastructureClass(AbstractAutoProxyCreator.java:263) at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessBeforeInstantiation(AbstractAutoProxyCreator.java:206) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:516) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:351) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:155) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:641) at de.ntec.feasibility.configurable.Main.main(Main.java:11)

    Spring JIRA | 1 decade ago | Oleksandr Alesinskyy
    java.lang.NoClassDefFoundError: org/aspectj/lang/reflect/AjTypeSystem
  3. 0

    java.lang.NoClassDefFoundError: org/aspectj/lang/reflect/AjTypeSystem

    Oracle Community | 3 years ago | user12679330
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'plsAspect' defined in ServletContext resource [/WEB-INF/aspect-config.xml]: BeanPostProcessor before instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/aspectj/lang/reflect/AjTypeSystem
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Exception java.lang.NoClassDefFoundError: org/aspectj/lang/annotation/Aspect

    Stack Overflow | 10 months ago | Atul
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'calNamingBean' defined in ServletContext resource [/WEB-INF/helixservicebeans.xml]: BeanPostProcessor before instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/aspectj/lang/annotation/Aspect
  6. 0

    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'triangle' defined in class path resource

    Stack Overflow | 2 years ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'triangle' defined in class path resource [spring.xml]: BeanPostProcessor before instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/aspectj/weaver/reflect/ReflectionWorld$ReflectionWorldException

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NoClassDefFoundError

      org/aspectj/lang/reflect/AjTypeSystem

      at org.springframework.aop.aspectj.annotation.AbstractAspectJAdvisorFactory.isAspect()
    2. Spring AOP
      AbstractAutoProxyCreator.postProcessBeforeInstantiation
      1. org.springframework.aop.aspectj.annotation.AbstractAspectJAdvisorFactory.isAspect(AbstractAspectJAdvisorFactory.java:113)
      2. org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator.isInfrastructureClass(AnnotationAwareAspectJAutoProxyCreator.java:91)
      3. org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.isInfrastructureClass(AbstractAutoProxyCreator.java:263)
      4. org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessBeforeInstantiation(AbstractAutoProxyCreator.java:206)
      4 frames
    3. Spring Beans
      AbstractBeanFactory.getBean
      1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:516)
      2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:351)
      3. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:261)
      4. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:155)
      4 frames
    4. Spring Context
      AbstractApplicationContext.getBean
      1. org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:641)
      1 frame
    5. de.ntec.feasibility
      Main.main
      1. de.ntec.feasibility.configurable.Main.main(Main.java:11)
      1 frame