org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cxf' defined in class path resource [META-INF/cxf/cxf.xml]: Initialization of bean failed; nested exception is java.lang.ClassCastException: com.sun.proxy.$Proxy34 cannot be cast to org.springframework.context.support.AbstractApplicationContext

tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Spring application context is converted to proxy after custom property injection

    Stack Overflow | 7 months ago | Amila Banuka Amarasinghe
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cxf' defined in class path resource [META-INF/cxf/cxf.xml]: Initialization of bean failed; nested exception is java.lang.ClassCastException: com.sun.proxy.$Proxy34 cannot be cast to org.springframework.context.support.AbstractApplicationContext
  2. 0

    SpringBoot: How to stop all JPA auto-load

    Stack Overflow | 2 years ago | Jason
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'openEntityManagerInViewInterceptor' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/JpaBaseConfiguration$JpaWebConfiguration.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [javax.persistence.EntityManagerFactory] is defined
  3. 0

    Can I use a Spring step-scoped factory for a prototype bean?

    Stack Overflow | 2 years ago | JoshC13
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'foo' defined in class path resource [myBeanDefinition.xml]: No matching factory method found: factory bean 'fooFactory'; factory method 'getFoo()'. Check that a method with the specified name exists and that it is non-static.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    NullPointerException in init method of EntityManagerFactory

    Stack Overflow | 2 years ago | OanaC
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in file [D:\dev\workspace\StringJPA_2\src\main\resources\applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NullPointerException
  6. 0

    Re: [jetty-users] Can't configure JNDI global datasource with jetty mave

    eclipse.org | 2 years ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException; remaining name 'jdbc/my-db'

  1. Andreas Häber 1 times, last 2 months ago
  2. treefolk 1 times, last 4 months ago
  3. kjhdofjosvs 3 times, last 5 months ago
  4. Tahir 6 times, last 7 months ago
  5. asdasd 4 times, last 7 months ago
14 more registered users
81 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.springframework.beans.factory.BeanCreationException

    Error creating bean with name 'cxf' defined in class path resource [META-INF/cxf/cxf.xml]: Initialization of bean failed; nested exception is java.lang.ClassCastException: com.sun.proxy.$Proxy34 cannot be cast to org.springframework.context.support.AbstractApplicationContext

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean()
  2. Spring Beans
    AbstractBeanFactory.getBean
    1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:547)[spring-beans-4.1.3.RELEASE.jar:4.1.3.RELEASE]
    2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)[spring-beans-4.1.3.RELEASE.jar:4.1.3.RELEASE]
    3. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)[spring-beans-4.1.3.RELEASE.jar:4.1.3.RELEASE]
    4. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)[spring-beans-4.1.3.RELEASE.jar:4.1.3.RELEASE]
    5. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)[spring-beans-4.1.3.RELEASE.jar:4.1.3.RELEASE]
    6. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)[spring-beans-4.1.3.RELEASE.jar:4.1.3.RELEASE]
    6 frames