Announcement Announcement Module
Collapse
No announcement yet.
Context initialization failed Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Context initialization failed

    Hi,
    wonder if somebody could give me an advice...
    Have been struggling for weeks with this and the solution is probably simple...

    Have run my application without problems with hibernate2, jdk1.4 and spring1.1.4 and have now upgraded to hibernate3, jdk1.5 and spring 1.2.5.

    I keep getting the Context initialization failed error, full exception shown below...

    I have tryed both ContextLoaderListner and ContextLoaderServlet in the web.xml and my contextConfigLocation looks like this,
    <context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>
    /WEB-INF/buysell-servlet.xml,
    /WEB-INF/buysell-service.xml,
    /WEB-INF/buysell-data.xml
    </param-value>
    </context-param>

    greatful for any tip.....


    ERROR - Context initialization failed
    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean wit
    h name 'homeController' defined in ServletContext resource [/WEB-INF/buysell-ser
    vlet.xml]: Can't resolve reference to bean 'categoryService' while setting prope
    rty 'categoryService'; nested exception is org.springframework.beans.factory.Bea
    nCreationException: Error creating bean with name 'categoryService' defined in S
    ervletContext resource [/WEB-INF/buysell-service.xml]: Can't resolve reference t
    o bean 'categoryServiceTarget' while setting property 'target'; nested exception
    is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean
    with name 'categoryServiceTarget' defined in ServletContext resource [/WEB-INF/
    buysell-service.xml]: Can't resolve reference to bean 'categoryDao' while settin
    g property 'constructor argument'; nested exception is org.springframework.beans
    .factory.BeanCreationException: Error creating bean with name 'categoryDao' defi
    ned in ServletContext resource [/WEB-INF/buysell-data.xml]: Can't resolve refere
    nce to bean 'hibernateTemplate' while setting property 'hibernateTemplate'; nest
    ed exception is org.springframework.beans.factory.BeanCreationExce ption: Error c
    reating bean with name 'hibernateTemplate' defined in ServletContext resource [/
    WEB-INF/buysell-data.xml]: Can't resolve reference to bean 'sessionFactory' whil
    e setting property 'sessionFactory'; nested exception is org.springframework.bea
    ns.factory.BeanCreationException: Error creating bean with name 'sessionFactory'
    defined in ServletContext resource [/WEB-INF/buysell-data.xml]: Initialization
    of bean failed; nested exception is java.lang.NoClassDefFoundError: org/apache/c
    ommons/collections/SequencedHashMap
    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean wit
    h name 'categoryService' defined in ServletContext resource [/WEB-INF/buysell-se
    rvice.xml]: Can't resolve reference to bean 'categoryServiceTarget' while settin
    g property 'target'; nested exception is org.springframework.beans.factory.BeanC
    reationException: Error creating bean with name 'categoryServiceTarget' defined
    in ServletContext resource [/WEB-INF/buysell-service.xml]: Can't resolve referen
    ce to bean 'categoryDao' while setting property 'constructor argument'; nested e
    xception is org.springframework.beans.factory.BeanCreationExce ption: Error creat
    ing bean with name 'categoryDao' defined in ServletContext resource [/WEB-INF/bu
    ysell-data.xml]: Can't resolve reference to bean 'hibernateTemplate' while setti
    ng property 'hibernateTemplate'; nested exception is org.springframework.beans.f
    actory.BeanCreationException: Error creating bean with name 'hibernateTemplate'
    defined in ServletContext resource [/WEB-INF/buysell-data.xml]: Can't resolve re
    ference to bean 'sessionFactory' while setting property 'sessionFactory'; nested
    exception is org.springframework.beans.factory.BeanCreationExce ption: Error cre
    ating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-I
    NF/buysell-data.xml]: Initialization of bean failed; nested exception is java.la
    ng.NoClassDefFoundError: org/apache/commons/collections/SequencedHashMap
    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean wit
    h name 'categoryServiceTarget' defined in ServletContext resource [/WEB-INF/buys
    ell-service.xml]: Can't resolve reference to bean 'categoryDao' while setting pr
    operty 'constructor argument'; nested exception is org.springframework.beans.fac
    tory.BeanCreationException: Error creating bean with name 'categoryDao' defined
    in ServletContext resource [/WEB-INF/buysell-data.xml]: Can't resolve reference
    to bean 'hibernateTemplate' while setting property 'hibernateTemplate'; nested e
    xception is org.springframework.beans.factory.BeanCreationExce ption: Error creat
    ing bean with name 'hibernateTemplate' defined in ServletContext resource [/WEB-
    INF/buysell-data.xml]: Can't resolve reference to bean 'sessionFactory' while se
    tting property 'sessionFactory'; nested exception is org.springframework.beans.f
    actory.BeanCreationException: Error creating bean with name 'sessionFactory' def
    ined in ServletContext resource [/WEB-INF/buysell-data.xml]: Initialization of b
    ean failed; nested exception is java.lang.NoClassDefFoundError: org/apache/commo
    ns/collections/SequencedHashMap
    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean wit
    h name 'categoryDao' defined in ServletContext resource [/WEB-INF/buysell-data.x
    ml]: Can't resolve reference to bean 'hibernateTemplate' while setting property
    'hibernateTemplate'; nested exception is org.springframework.beans.factory.BeanC
    reationException: Error creating bean with name 'hibernateTemplate' defined in S
    ervletContext resource [/WEB-INF/buysell-data.xml]: Can't resolve reference to b
    ean 'sessionFactory' while setting property 'sessionFactory'; nested exception i
    s org.springframework.beans.factory.BeanCreationExce ption: Error creating bean w
    ith name 'sessionFactory' defined in ServletContext resource [/WEB-INF/buysell-d
    ata.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDe
    fFoundError: org/apache/commons/collections/SequencedHashMap
    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean wit
    h name 'hibernateTemplate' defined in ServletContext resource [/WEB-INF/buysell-
    data.xml]: Can't resolve reference to bean 'sessionFactory' while setting proper
    ty 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanC
    reationException: Error creating bean with name 'sessionFactory' defined in Serv
    letContext resource [/WEB-INF/buysell-data.xml]: Initialization of bean failed;
    nested exception is java.lang.NoClassDefFoundError: org/apache/commons/collectio
    ns/SequencedHashMap
    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean wit
    h name 'sessionFactory' defined in ServletContext resource [/WEB-INF/buysell-dat
    a.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefF
    oundError: org/apache/commons/collections/SequencedHashMap
    java.lang.NoClassDefFoundError: org/apache/commons/collections/SequencedHashMap
    at net.sf.hibernate.mapping.PersistentClass.<init>(Pe rsistentClass.java:
    30)
    at net.sf.hibernate.mapping.RootClass.<init>(RootClas s.java:16)
    at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1 255)
    at net.sf.hibernate.cfg.Configuration.add(Configurati on.java:253)
    at net.sf.hibernate.cfg.Configuration.addInputStream( Configuration.java:
    289)
    at org.springframework.orm.hibernate.LocalSessionFact oryBean.afterProper
    tiesSet(LocalSessionFactoryBean.java:446)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBean
    Factory.invokeInitMethods(AbstractAutowireCapableB eanFactory.java:1058)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBean
    Factory.createBean(AbstractAutowireCapableBeanFact ory.java:363)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean
    (AbstractBeanFactory.java:226)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean
    (AbstractBeanFactory.java:147)
    at org.springframework.beans.factory.support.BeanDefi nitionValueResolver
    .resolveReference(BeanDefinitionValueResolver.java :176)
    at org.springframework.beans.factory.support.BeanDefi nitionValueResolver
    .resolveValueIfNecessary(BeanDefinitionValueResolv er.java:105)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBean
    Factory.applyPropertyValues(AbstractAutowireCapabl eBeanFactory.java:1012)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBean
    Factory.populateBean(AbstractAutowireCapableBeanFa ctory.java:823)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBean
    Factory.createBean(AbstractAutowireCapableBeanFact ory.java:345)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean
    (AbstractBeanFactory.java:226)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean
    (AbstractBeanFactory.java:147)
    at org.springframework.beans.factory.support.BeanDefi nitionValueResolver
    .resolveReference(BeanDefinitionValueResolver.java :176)
    at org.springframework.beans.factory.support.BeanDefi nitionValueResolver
    .resolveValueIfNecessary(BeanDefinitionValueResolv er.java:105)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBean
    Factory.applyPropertyValues(AbstractAutowireCapabl eBeanFactory.java:1012)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBean
    Factory.populateBean(AbstractAutowireCapableBeanFa ctory.java:823)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBean
    Factory.createBean(AbstractAutowireCapableBeanFact ory.java:345)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean
    (AbstractBeanFactory.java:226)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean
    (AbstractBeanFactory.java:147)
    at org.springframework.beans.factory.support.BeanDefi nitionValueResolver
    .resolveReference(BeanDefinitionValueResolver.java :176)
    at org.springframework.beans.factory.support.BeanDefi nitionValueResolver
    .resolveValueIfNecessary(BeanDefinitionValueResolv er.java:105)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBean
    Factory.resolveConstructorArguments(AbstractAutowi reCapableBeanFactory.java:713)

    at org.springframework.beans.factory.support.Abstract AutowireCapableBean
    Factory.autowireConstructor(AbstractAutowireCapabl eBeanFactory.java:611)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBean
    Factory.createBean(AbstractAutowireCapableBeanFact ory.java:329)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean
    (AbstractBeanFactory.java:226)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean
    (AbstractBeanFactory.java:147)
    at org.springframework.beans.factory.support.BeanDefi nitionValueResolver
    .resolveReference(BeanDefinitionValueResolver.java :176)
    at org.springframework.beans.factory.support.BeanDefi nitionValueResolver
    .resolveValueIfNecessary(BeanDefinitionValueResolv er.java:105)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBean
    Factory.applyPropertyValues(AbstractAutowireCapabl eBeanFactory.java:1012)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBean
    Factory.populateBean(AbstractAutowireCapableBeanFa ctory.java:823)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBean
    Factory.createBean(AbstractAutowireCapableBeanFact ory.java:345)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean
    (AbstractBeanFactory.java:226)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean
    (AbstractBeanFactory.java:147)
    at org.springframework.beans.factory.support.BeanDefi nitionValueResolver
    .resolveReference(BeanDefinitionValueResolver.java :176)
    at org.springframework.beans.factory.support.BeanDefi nitionValueResolver
    .resolveValueIfNecessary(BeanDefinitionValueResolv er.java:105)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBean
    Factory.applyPropertyValues(AbstractAutowireCapabl eBeanFactory.java:1012)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBean
    Factory.populateBean(AbstractAutowireCapableBeanFa ctory.java:823)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBean
    Factory.createBean(AbstractAutowireCapableBeanFact ory.java:345)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean
    (AbstractBeanFactory.java:226)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean
    (AbstractBeanFactory.java:147)
    at org.springframework.beans.factory.support.DefaultL istableBeanFactory.
    preInstantiateSingletons(DefaultListableBeanFactor y.java:275)
    at org.springframework.context.support.AbstractApplic ationContext.refres
    h(AbstractApplicationContext.java:318)
    at org.springframework.web.context.support.AbstractRe freshableWebApplica
    tionContext.refresh(AbstractRefreshableWebApplicat ionContext.java:134)
    at org.springframework.web.context.ContextLoader.crea teWebApplicationCon
    text(ContextLoader.java:230)
    at org.springframework.web.context.ContextLoader.init WebApplicationConte
    xt(ContextLoader.java:156)
    at org.springframework.web.context.ContextLoaderListe ner.contextInitiali
    zed(ContextLoaderListener.java:48)
    at org.apache.catalina.core.StandardContext.listenerS tart(StandardContex
    t.java:3669)
    at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:4
    104)
    at org.apache.catalina.core.ContainerBase.addChildInt ernal(ContainerBase
    .java:759)
    at org.apache.catalina.core.ContainerBase.addChild(Co ntainerBase.java:73
    9)
    at org.apache.catalina.core.StandardHost.addChild(Sta ndardHost.java:524)

    at org.apache.catalina.startup.HostConfig.deployWAR(H ostConfig.java:788)

    at org.apache.catalina.startup.HostConfig.deployWARs( HostConfig.java:677
    )
    at org.apache.catalina.startup.HostConfig.deployApps( HostConfig.java:473
    )
    at org.apache.catalina.startup.HostConfig.start(HostC onfig.java:1102)
    at org.apache.catalina.startup.HostConfig.lifecycleEv ent(HostConfig.java
    :311)
    at org.apache.catalina.util.LifecycleSupport.fireLife cycleEvent(Lifecycl
    eSupport.java:119)
    at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1020)

    at org.apache.catalina.core.StandardHost.start(Standa rdHost.java:718)
    at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1012)

    at org.apache.catalina.core.StandardEngine.start(Stan dardEngine.java:442
    )
    at org.apache.catalina.core.StandardService.start(Sta ndardService.java:4
    50)
    at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:683
    )
    at org.apache.catalina.startup.Catalina.start(Catalin a.java:537)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:271)
    at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:409)
    ERROR - Exception sending context initialized event to listener instance of clas
    s org.springframework.web.context.ContextLoaderListe ner
    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean wit
    h name 'homeController' defined in ServletContext resource [/WEB-INF/buysell-ser
    vlet.xml]: Can't resolve reference to bean 'categoryService' while setting prope
    rty 'categoryService'; nested exception is org.springframework.beans.factory.Bea
    nCreationException: Error creating bean with name 'categoryService' defined in S
    ervletContext resource [/WEB-INF/buysell-service.xml]: Can't resolve reference t
    o bean 'categoryServiceTarget' while setting property 'target'; nested exception
    is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean
    with name 'categoryServiceTarget' defined in ServletContext resource [/WEB-INF/
    buysell-service.xml]: Can't resolve reference to bean 'categoryDao' while settin
    g property 'constructor argument'; nested exception is org.springframework.beans
    .factory.BeanCreationException: Error creating bean with name 'categoryDao' defi
    ned in ServletContext resource [/WEB-INF/buysell-data.xml]: Can't resolve refere
    nce to bean 'hibernateTemplate' while setting property 'hibernateTemplate'; nest
    ed exception is org.springframework.beans.factory.BeanCreationExce ption: Error c
    reating bean with name 'hibernateTemplate' defined in ServletContext resource [/
    WEB-INF/buysell-data.xml]: Can't resolve reference to bean 'sessionFactory' whil
    e setting property 'sessionFactory'; nested exception is org.springframework.bea
    ns.factory.BeanCreationException: Error creating bean with name 'sessionFactory'
    defined in ServletContext resource [/WEB-INF/buysell-data.xml]: Initialization
    of bean failed; nested exception is java.lang.NoClassDefFoundError: org/apache/c
    ommons/collections/SequencedHashMap
    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean wit
    h name 'categoryService' defined in ServletContext resource [/WEB-INF/buysell-se
    rvice.xml]: Can't resolve reference to bean 'categoryServiceTarget' while settin
    g property 'target'; nested exception is org.springframework.beans.factory.BeanC
    reationException: Error creating bean with name 'categoryServiceTarget' defined
    in ServletContext resource [/WEB-INF/buysell-service.xml]: Can't resolve referen
    ce to bean 'categoryDao' while setting property 'constructor argument'; nested e
    xception is org.springframework.beans.factory.BeanCreationExce ption: Error creat
    ing bean with name 'categoryDao' defined in ServletContext resource [/WEB-INF/bu
    ysell-data.xml]: Can't resolve reference to bean 'hibernateTemplate' while setti
    ng property 'hibernateTemplate'; nested exception is org.springframework.beans.f
    actory.BeanCreationException: Error creating bean with name 'hibernateTemplate'
    defined in ServletContext resource [/WEB-INF/buysell-data.xml]: Can't resolve re
    ference to bean 'sessionFactory' while setting property 'sessionFactory'; nested
    exception is org.springframework.beans.factory.BeanCreationExce ption: Error cre
    ating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-I
    NF/buysell-data.xml]: Initialization of bean failed; nested exception is java.la
    ng.NoClassDefFoundError: org/apache/commons/collections/SequencedHashMap
    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean wit
    h name 'categoryServiceTarget' defined in ServletContext resource [/WEB-INF/buys
    ell-service.xml]: Can't resolve reference to bean 'categoryDao' while setting pr
    operty 'constructor argument'; nested exception is org.springframework.beans.fac
    tory.BeanCreationException: Error creating bean with name 'categoryDao' defined
    in ServletContext resource [/WEB-INF/buysell-data.xml]: Can't resolve reference
    to bean 'hibernateTemplate' while setting property 'hibernateTemplate'; nested e
    xception is org.springframework.beans.factory.BeanCreationExce ption: Error creat
    ing bean with name 'hibernateTemplate' defined in ServletContext resource [/WEB-
    INF/buysell-data.xml]: Can't resolve reference to bean 'sessionFactory' while se
    tting property 'sessionFactory'; nested exception is org.springframework.beans.f
    actory.BeanCreationException: Error creating bean with name 'sessionFactory' def
    ined in ServletContext resource [/WEB-INF/buysell-data.xml]: Initialization of b
    ean failed; nested exception is java.lang.NoClassDefFoundError: org/apache/commo
    ns/collections/SequencedHashMap
    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean wit
    h name 'categoryDao' defined in ServletContext resource [/WEB-INF/buysell-data.x
    ml]: Can't resolve reference to bean 'hibernateTemplate' while setting property
    'hibernateTemplate'; nested exception is org.springframework.beans.factory.BeanC
    reationException: Error creating bean with name 'hibernateTemplate' defined in S
    ervletContext resource [/WEB-INF/buysell-data.xml]: Can't resolve reference to b
    ean 'sessionFactory' while setting property 'sessionFactory'; nested exception i
    s org.springframework.beans.factory.BeanCreationExce ption: Error creating bean w
    ith name 'sessionFactory' defined in ServletContext resource [/WEB-INF/buysell-d
    ata.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDe
    fFoundError: org/apache/commons/collections/SequencedHashMap
    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean wit
    h name 'hibernateTemplate' defined in ServletContext resource [/WEB-INF/buysell-
    data.xml]: Can't resolve reference to bean 'sessionFactory' while setting proper
    ty 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanC
    reationException: Error creating bean with name 'sessionFactory' defined in Serv
    letContext resource [/WEB-INF/buysell-data.xml]: Initialization of bean failed;
    nested exception is java.lang.NoClassDefFoundError: org/apache/commons/collectio
    ns/SequencedHashMap
    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean wit
    h name 'sessionFactory' defined in ServletContext resource [/WEB-INF/buysell-dat
    a.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefF
    oundError: org/apache/commons/collections/SequencedHashMap
    java.lang.NoClassDefFoundError: org/apache/commons/collections/SequencedHashMap
    at net.sf.hibernate.mapping.PersistentClass.<init>(Pe rsistentClass.java:
    30)
    at net.sf.hibernate.mapping.RootClass.<init>(RootClas s.java:16)
    at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1 255)
    at net.sf.hibernate.cfg.Configuration.add(Configurati on.java:253)
    at net.sf.hibernate.cfg.Configuration.addInputStream( Configuration.java:
    289)
    at org.springframework.orm.hibernate.LocalSessionFact oryBean.afterProper
    tiesSet(LocalSessionFactoryBean.java:446)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBean
    Factory.invokeInitMethods(AbstractAutowireCapableB eanFactory.java:1058)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBean
    Factory.createBean(AbstractAutowireCapableBeanFact ory.java:363)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean
    (AbstractBeanFactory.java:226)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean
    (AbstractBeanFactory.java:147)
    at org.springframework.beans.factory.support.BeanDefi nitionValueResolver
    .resolveReference(BeanDefinitionValueResolver.java :176)
    at org.springframework.beans.factory.support.BeanDefi nitionValueResolver
    .resolveValueIfNecessary(BeanDefinitionValueResolv er.java:105)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBean
    Factory.applyPropertyValues(AbstractAutowireCapabl eBeanFactory.java:1012)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBean
    Factory.populateBean(AbstractAutowireCapableBeanFa ctory.java:823)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBean
    Factory.createBean(AbstractAutowireCapableBeanFact ory.java:345)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean
    (AbstractBeanFactory.java:226)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean
    (AbstractBeanFactory.java:147)
    at org.springframework.beans.factory.support.BeanDefi nitionValueResolver
    .resolveReference(BeanDefinitionValueResolver.java :176)
    at org.springframework.beans.factory.support.BeanDefi nitionValueResolver
    .resolveValueIfNecessary(BeanDefinitionValueResolv er.java:105)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBean
    Factory.applyPropertyValues(AbstractAutowireCapabl eBeanFactory.java:1012)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBean
    Factory.populateBean(AbstractAutowireCapableBeanFa ctory.java:823)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBean
    Factory.createBean(AbstractAutowireCapableBeanFact ory.java:345)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean
    (AbstractBeanFactory.java:226)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean
    (AbstractBeanFactory.java:147)
    at org.springframework.beans.factory.support.BeanDefi nitionValueResolver
    .resolveReference(BeanDefinitionValueResolver.java :176)
    at org.springframework.beans.factory.support.BeanDefi nitionValueResolver
    .resolveValueIfNecessary(BeanDefinitionValueResolv er.java:105)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBean
    Factory.resolveConstructorArguments(AbstractAutowi reCapableBeanFactory.java:713)

    at org.springframework.beans.factory.support.Abstract AutowireCapableBean
    Factory.autowireConstructor(AbstractAutowireCapabl eBeanFactory.java:611)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBean
    Factory.createBean(AbstractAutowireCapableBeanFact ory.java:329)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean
    (AbstractBeanFactory.java:226)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean
    (AbstractBeanFactory.java:147)
    at org.springframework.beans.factory.support.BeanDefi nitionValueResolver
    .resolveReference(BeanDefinitionValueResolver.java :176)
    at org.springframework.beans.factory.support.BeanDefi nitionValueResolver
    .resolveValueIfNecessary(BeanDefinitionValueResolv er.java:105)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBean
    Factory.applyPropertyValues(AbstractAutowireCapabl eBeanFactory.java:1012)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBean
    Factory.populateBean(AbstractAutowireCapableBeanFa ctory.java:823)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBean
    Factory.createBean(AbstractAutowireCapableBeanFact ory.java:345)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean
    (AbstractBeanFactory.java:226)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean
    (AbstractBeanFactory.java:147)
    at org.springframework.beans.factory.support.BeanDefi nitionValueResolver
    .resolveReference(BeanDefinitionValueResolver.java :176)
    at org.springframework.beans.factory.support.BeanDefi nitionValueResolver
    .resolveValueIfNecessary(BeanDefinitionValueResolv er.java:105)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBean
    Factory.applyPropertyValues(AbstractAutowireCapabl eBeanFactory.java:1012)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBean
    Factory.populateBean(AbstractAutowireCapableBeanFa ctory.java:823)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBean
    Factory.createBean(AbstractAutowireCapableBeanFact ory.java:345)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean
    (AbstractBeanFactory.java:226)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean
    (AbstractBeanFactory.java:147)
    at org.springframework.beans.factory.support.DefaultL istableBeanFactory.
    preInstantiateSingletons(DefaultListableBeanFactor y.java:275)
    at org.springframework.context.support.AbstractApplic ationContext.refres
    h(AbstractApplicationContext.java:318)
    at org.springframework.web.context.support.AbstractRe freshableWebApplica
    tionContext.refresh(AbstractRefreshableWebApplicat ionContext.java:134)
    at org.springframework.web.context.ContextLoader.crea teWebApplicationCon
    text(ContextLoader.java:230)
    at org.springframework.web.context.ContextLoader.init WebApplicationConte
    xt(ContextLoader.java:156)
    at org.springframework.web.context.ContextLoaderListe ner.contextInitiali
    zed(ContextLoaderListener.java:48)
    at org.apache.catalina.core.StandardContext.listenerS tart(StandardContex
    t.java:3669)
    at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:4
    104)
    at org.apache.catalina.core.ContainerBase.addChildInt ernal(ContainerBase
    .java:759)
    at org.apache.catalina.core.ContainerBase.addChild(Co ntainerBase.java:73
    9)
    at org.apache.catalina.core.StandardHost.addChild(Sta ndardHost.java:524)

    at org.apache.catalina.startup.HostConfig.deployWAR(H ostConfig.java:788)

    at org.apache.catalina.startup.HostConfig.deployWARs( HostConfig.java:677
    )
    at org.apache.catalina.startup.HostConfig.deployApps( HostConfig.java:473
    )
    at org.apache.catalina.startup.HostConfig.start(HostC onfig.java:1102)
    at org.apache.catalina.startup.HostConfig.lifecycleEv ent(HostConfig.java
    :311)
    at org.apache.catalina.util.LifecycleSupport.fireLife cycleEvent(Lifecycl
    eSupport.java:119)
    at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1020)

    at org.apache.catalina.core.StandardHost.start(Standa rdHost.java:718)
    at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1012)

    at org.apache.catalina.core.StandardEngine.start(Stan dardEngine.java:442
    )
    at org.apache.catalina.core.StandardService.start(Sta ndardService.java:4
    50)
    at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:683
    )
    at org.apache.catalina.startup.Catalina.start(Catalin a.java:537)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:271)
    at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:409)

  • #2
    It looks like you are missing a:
    org/apache/c
    ommons/collections/SequencedHashMap

    So.. do you have commons-collection.jar on your classpath? (in your WEB-INF directory).

    And this message can be quite painfull to read. Maybe Spring should create a better readable error message with chained bean errors.

    Comment


    • #3
      yes I have the commons-collection.jar in my WEB-INF and can locate it in my .war file that I deploy on tomcat5.5.9.

      Comment


      • #4
        Can you find SequencedHashMap in that jar? Maybe you have an old jar.

        Comment


        • #5
          Hi,

          My commons-collections.jar that is in my .war file is from the spring1.2.5 distribution. The .jar file have the date 2004-06-23 and holds SequencedHashMap.class in package org\apache\commons\collections.

          Comment


          • #6
            make sure that the reference of bean using "bean" and not "local".

            Comment


            • #7
              Hi,
              I can't really figure out what you mean by
              reference of bean using "bean" and not "local".
              ?

              I would think all my beans are referenced correctly in my xml files since everything was running ok in tomcat5.0, jdk1.4, hibernate2 and spring 1.1.4.

              Comment


              • #8
                Do you change the container?
                try to change the .jar file with another.
                make sure that there is ont the same .jar file in the tomcat's common/lib.

                Comment

                Working...
                X