Announcement Announcement Module
Collapse
No announcement yet.
Weird class loader problem... Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Weird class loader problem...

    I am using NetBeans 6.5, Tomcat 6.0.16. I put spring-tomcat-weaver.jar into $CATALINA_HOME/lib, and I tried to follow the docs as well as possible in order to achieve load time weaving. However, I get a bunch of exceptions.

    I am using Spring 2.5.2. The project setup was done automatically, using NetBeans.

    Do the following exceptions give you an idea on how I should proceed or do you need more info?

    Cheers,
    Wolfgang

    The exception will be in a reply to this post, as the system thinks the exception contains a URL and does not let me add that as a first post.

  • #2
    The exception

    [...]
    22:28:40,187 DEBUG DefaultListableBeanFactory:530 - Eagerly caching bean 'loadTimeWeaver' to allow for resolving potential circular references
    22:28:40,189 INFO DefaultContextLoadTimeWeaver:77 - Using a reflective load-time weaver for class loader: org.springframework.instrument.classloading.tomcat .TomcatInstrumentableClassLoader
    WebappClassLoader
    delegate: false
    repositories:
    /WEB-INF/classes/
    ----------> Parent Classloader:
    org.apache.catalina.loader.StandardClassLoader AT c53dce

    22:28:40,211 DEBUG XmlWebApplicationContext:636 - Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMess ageSource@1a012ff]
    22:28:40,212 DEBUG XmlWebApplicationContext:660 - Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicatio nEventMulticaster@3f4f44]
    22:28:40,227 DEBUG UiApplicationContextUtils:85 - Unable to locate ThemeSource with name 'themeSource': using default [org.springframework.ui.context.support.DelegatingT hemeSource@c7345c]
    22:28:40,237 INFO DefaultListableBeanFactory:398 - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultL istableBeanFactory@2c3fbb: defining beans [org.springframework.context.weaving.AspectJWeaving Enabler#0,org.springframework.context.config.inter nalBeanConfigurerAspect,loadTimeWeaver,org.springf ramework.web.servlet.mvc.support.ControllerClassNa meHandlerMapping#0,urlMapping,viewResolver,indexCo ntroller,oracleQuery,oracleReaderSource,sqlMapClie nt,smbSelectionsupport,reactionCache,kineticLawOrc l,searchCineticData]; parent: org.springframework.beans.factory.support.DefaultL istableBeanFactory@8f83a9
    22:28:40,237 DEBUG DefaultListableBeanFactory:203 - Returning cached instance of singleton bean 'org.springframework.context.weaving.AspectJWeavin gEnabler#0'
    22:28:40,238 DEBUG DefaultListableBeanFactory:161 - Creating shared instance of singleton bean 'org.springframework.context.config.internalBeanCo nfigurerAspect'
    22:28:40,238 DEBUG DefaultListableBeanFactory:458 - Creating instance of bean 'org.springframework.context.config.internalBeanCo nfigurerAspect' with merged definition [Root bean: class [org.springframework.beans.factory.aspectj.Annotati onBeanConfigurerAspect]; scope=singleton; abstract=false; lazyInit=false; autowireCandidate=true; autowireMode=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=aspectOf; initMethodName=null; destroyMethodName=null]
    22:28:41,076 INFO DefaultListableBeanFactory:340 - Destroying singletons in org.springframework.beans.factory.support.DefaultL istableBeanFactory@2c3fbb: defining beans [org.springframework.context.weaving.AspectJWeaving Enabler#0,org.springframework.context.config.inter nalBeanConfigurerAspect,loadTimeWeaver,org.springf ramework.web.servlet.mvc.support.ControllerClassNa meHandlerMapping#0,urlMapping,viewResolver,indexCo ntroller,oracleQuery,oracleReaderSource,sqlMapClie nt,smbSelectionsupport,reactionCache,kineticLawOrc l,searchCineticData]; parent: org.springframework.beans.factory.support.DefaultL istableBeanFactory@8f83a9
    22:28:41,093 ERROR DispatcherServlet:244 - Context initialization failed
    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'org.springframework.context.config.internalBeanCo nfigurerAspect': Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionSt oreException: Factory method [public static org.springframework.beans.factory.aspectj.Annotati onBeanConfigurerAspect org.springframework.beans.factory.aspectj.Annotati onBeanConfigurerAspect.aspectOf()] threw exception; nested exception is org.aspectj.lang.NoAspectBoundException: Exception while initializing org_springframework_beans_factory_aspectj_Annotati onBeanConfigurerAspect: java.lang.InstantiationError: org.springframework.beans.factory.wiring.BeanConfi gurerSupport
    at org.springframework.beans.factory.support.Construc torResolver.instantiateUsingFactoryMethod(Construc torResolver.java:396)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.instantiateUsingFactory Method(AbstractAutowireCapableBeanFactory.java:936 )
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBeanInstance(Abst ractAutowireCapableBeanFactory.java:851)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.java:514)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory$1.run(AbstractAutowireC apableBeanFactory.java:485)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:455)
    at org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 51)
    at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegistry.java:169)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:248)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:170)
    at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:413)
    at org.springframework.context.support.AbstractApplic ationContext.finishBeanFactoryInitialization(Abstr actApplicationContext.java:735)
    at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:369)
    at org.springframework.web.servlet.FrameworkServlet.c reateWebApplicationContext(FrameworkServlet.java:3 32)
    at org.springframework.web.servlet.FrameworkServlet.i nitWebApplicationContext(FrameworkServlet.java:266 )
    at org.springframework.web.servlet.FrameworkServlet.i nitServletBean(FrameworkServlet.java:236)
    at org.springframework.web.servlet.HttpServletBean.in it(HttpServletBean.java:126)
    at javax.servlet.GenericServlet.init(GenericServlet.j ava:212)
    at org.apache.catalina.core.StandardWrapper.loadServl et(StandardWrapper.java:1161)
    at org.apache.catalina.core.StandardWrapper.load(Stan dardWrapper.java:981)
    at org.apache.catalina.core.StandardContext.loadOnSta rtup(StandardContext.java:4058)
    at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:4364)
    at org.apache.catalina.core.ContainerBase.addChildInt ernal(ContainerBase.java:791)
    at org.apache.catalina.core.ContainerBase.addChild(Co ntainerBase.java:771)
    at org.apache.catalina.core.StandardHost.addChild(Sta ndardHost.java:525)
    at org.apache.catalina.startup.HostConfig.deployDescr iptor(HostConfig.java:626)
    at org.apache.catalina.startup.HostConfig.deployApps( HostConfig.java:511)
    at org.apache.catalina.startup.HostConfig.check(HostC onfig.java:1229)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tomcat.util.modeler.BaseModelMBean.invo ke(BaseModelMBean.java:297)
    at com.sun.jmx.interceptor.DefaultMBeanServerIntercep tor.invoke(DefaultMBeanServerInterceptor.java:836)
    at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxM BeanServer.java:761)
    at org.apache.catalina.manager.ManagerServlet.check(M anagerServlet.java:1465)
    at org.apache.catalina.manager.ManagerServlet.deploy( ManagerServlet.java:821)
    at org.apache.catalina.manager.ManagerServlet.doGet(M anagerServlet.java:349)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:690)
    at [...]
    Caused by: org.springframework.beans.factory.BeanDefinitionSt oreException: Factory method [public static org.springframework.beans.factory.aspectj.Annotati onBeanConfigurerAspect org.springframework.beans.factory.aspectj.Annotati onBeanConfigurerAspect.aspectOf()] threw exception; nested exception is org.aspectj.lang.NoAspectBoundException: Exception while initializing
    [...]

    Comment

    Working...
    X