Announcement Announcement Module
Collapse
No announcement yet.
@Configured Now broken Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • @Configured Now broken

    Hi

    I have been in between working on a new version of a software system that now uses the very powerful @Configurable annotation. I have had this working for weeks now and have a reasonable amount of command pattern classes that now rely on it. However some how i have messup my configuration and i am getting the following error:

    My setup is:

    Spring2.0 rc4
    JDK5
    I have an aop.xml
    i LTW pointing the javaagent to the aspectweaver that comes with Spring2.0rc4


    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)
    Last edited by pdelahun; Sep 22nd, 2006, 04:24 AM. Reason: put @Configured instead of @Configurable

  • #2
    Should be @Configurable not working

    Sorry the was sleepy when i wrote this. Should be @Configurable not @Configured

    Comment

    Working...
    X