org.springframework.beans.factory.BeanCreationException

Error creating bean with name 'configurables_bpel' defined in ServletContext resource [/WEB-INF/fabric-config-bpel.xml]: Cannot resolve reference to bean 'BPELServiceEngine' while setting bean property 'sourceList' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'BPELServiceEngine' defined in ServletContext resource [/WEB-INF/fabric-config-bpel.xml]: Cannot resolve reference to bean 'XMLDocumentManager' while setting bean property 'documentManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'XMLDocumentManager' defined in ServletContext resource [/WEB-INF/fabric-config-core.xml]: Cannot resolve reference to bean 'documentManagerTarget' while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'documentManagerTarget' defined in ServletContext resource [/WEB-INF/fabric-config-core.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/fabric-config-core.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: While trying to lookup 'jdbc.SOADataSource' didn't find subcontext 'jdbc'. Resolved ''; remaining name 'jdbc/SOADataSource'

Samebug tips4

Spring Security detects beans in the root context. Move the detection of the bean (or declare it explictly) in the root context.

Mixed JpaTransactionManager with JTA transaction type in the beans.xml and persistence.xml

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web480

  • via Unknown by kroberts5683,
  • via GitHub by jinxiyin
    ,
  • Stack trace

    • org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configurables_bpel' defined in ServletContext resource [/WEB-INF/fabric-config-bpel.xml]: Cannot resolve reference to bean 'BPELServiceEngine' while setting bean property 'sourceList' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'BPELServiceEngine' defined in ServletContext resource [/WEB-INF/fabric-config-bpel.xml]: Cannot resolve reference to bean 'XMLDocumentManager' while setting bean property 'documentManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'XMLDocumentManager' defined in ServletContext resource [/WEB-INF/fabric-config-core.xml]: Cannot resolve reference to bean 'documentManagerTarget' while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'documentManagerTarget' defined in ServletContext resource [/WEB-INF/fabric-config-core.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/fabric-config-core.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: While trying to lookup 'jdbc.SOADataSource' didn't find subcontext 'jdbc'. Resolved ''; remaining name 'jdbc/SOADataSource' at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:353) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:153) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1360)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    gandragandra
    Once,
    Unknown UserUnknown User
    2 times, last one
    linxiaolonglinxiaolong
    Once,
    batwalrus76batwalrus76
    Once,
    56 more bugmates