Announcement Announcement Module
Collapse
No announcement yet.
Cannot register non aspect: org$springframework$beans$factory$aspectj$Annotati onBea Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Cannot register non aspect: org$springframework$beans$factory$aspectj$Annotati onBea

    Anyone have any idea about this:

    Problem with @Configurable
    Using Tomcat 5.5
    Spring 2.0 RC4
    JDK 1.5

    I had @Configurable working but now it is not loading up my web app. I get the error below

    warning register definition failed -- (RuntimeException) Cannot register non aspect: org$springframework$beans$factory$aspectj$Annotati onBeanConfigurerAspect , org.springframework.beans.factory.aspectj.Annotati onBeanConfigurerAspect
    Cannot register non aspect: org$springframework$beans$factory$aspectj$Annotati onBeanConfigurerAspect , org.springframework.beans.factory.aspectj.Annotati onBeanConfigurerAspect
    java.lang.RuntimeException: Cannot register non aspect: org$springframework$beans$factory$aspectj$Annotati onBeanConfigurerAspect , org.springframework.beans.factory.aspectj.Annotati onBeanConfigurerAspect
    at org.aspectj.weaver.bcel.BcelWeaver.addLibraryAspec t(BcelWeaver.java:191)
    at org.aspectj.weaver.loadtime.ClassLoaderWeavingAdap tor.registerAspects(ClassLoaderWeavingAdaptor.java :336)
    at org.aspectj.weaver.loadtime.ClassLoaderWeavingAdap tor.registerDefinitions(ClassLoaderWeavingAdaptor. java:189)
    at org.aspectj.weaver.loadtime.ClassLoaderWeavingAdap tor.initialize(ClassLoaderWeavingAdaptor.java:125)
    at org.aspectj.weaver.loadtime.Aj$ExplicitlyInitializ edClassLoaderWeavingAdaptor.initialize(Aj.java:130 )
    at org.aspectj.weaver.loadtime.Aj$ExplicitlyInitializ edClassLoaderWeavingAdaptor.getWeavingAdaptor(Aj.j ava:135)
    at org.aspectj.weaver.loadtime.Aj$WeaverContainer.get Weaver(Aj.java:101)
    at org.aspectj.weaver.loadtime.Aj.preProcess(Aj.java: 61)
    at org.aspectj.weaver.loadtime.ClassPreProcessorAgent Adapter.transform(ClassPreProcessorAgentAdapter.ja va:55)
    at sun.instrument.TransformerManager.transform(Unknow n Source)
    at sun.instrument.InstrumentationImpl.transform(Unkno wn Source)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknow n Source)
    at org.apache.catalina.loader.WebappClassLoader.findC lassInternal(WebappClassLoader.java:1812)
    at org.apache.catalina.loader.WebappClassLoader.findC lass(WebappClassLoader.java:866)
    at org.apache.catalina.loader.WebappClassLoader.loadC lass(WebappClassLoader.java:1319)
    at org.apache.catalina.loader.WebappClassLoader.loadC lass(WebappClassLoader.java:1198)
    at org.apache.commons.logging.impl.LogFactoryImpl$1.r un(LogFactoryImpl.java:441)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.commons.logging.impl.LogFactoryImpl.loa dClass(LogFactoryImpl.java:435)
    at org.apache.commons.logging.impl.LogFactoryImpl.isL og4JAvailable(LogFactoryImpl.java:505)
    at org.apache.commons.logging.impl.LogFactoryImpl.get LogClassName(LogFactoryImpl.java:327)
    at org.apache.commons.logging.impl.LogFactoryImpl.get LogConstructor(LogFactoryImpl.java:368)
    at org.apache.commons.logging.impl.LogFactoryImpl.new Instance(LogFactoryImpl.java:529)
    at org.apache.commons.logging.impl.LogFactoryImpl.get Instance(LogFactoryImpl.java:235)
    at org.apache.commons.logging.LogFactory.getLog(LogFa ctory.java:370)
    at org.apache.catalina.core.ContainerBase.getLogger(C ontainerBase.java:380)
    at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:4090)
    at org.apache.catalina.core.ContainerBase.addChildInt ernal(ContainerBase.java:759)
    at org.apache.catalina.core.ContainerBase.addChild(Co ntainerBase.java:739)
    at org.apache.catalina.core.StandardHost.addChild(Sta ndardHost.java:524)
    at org.apache.catalina.startup.HostConfig.deployWAR(H ostConfig.java:809)
    at org.apache.catalina.startup.HostConfig.deployWARs( HostConfig.java:698)
    at org.apache.catalina.startup.HostConfig.deployApps( HostConfig.java:472)
    at org.apache.catalina.startup.HostConfig.start(HostC onfig.java:1122)
    at org.apache.catalina.startup.HostConfig.lifecycleEv ent(HostConfig.java:310)
    at org.apache.catalina.util.LifecycleSupport.fireLife cycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1021)
    at org.apache.catalina.core.StandardHost.start(Standa rdHost.java:718)
    at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1013)
    at org.apache.catalina.core.StandardEngine.start(Stan dardEngine.java:442)
    at org.apache.catalina.core.StandardService.start(Sta ndardService.java:450)
    at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:709)
    at org.apache.catalina.startup.Catalina.start(Catalin a.java:551)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:287)
    at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:425)

  • #2
    Add the jar spring-aspects.jar to your classpath and ...enjoy!

    Comment

    Working...
    X