org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'downloadController': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'downloadService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/hibernate-context.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.hibernate.cfg.Configuration.addAnnotatedClass(Ljava/lang/Class;)Lorg/hibernate/cfg/Configuration;

Stack Overflow | javaHelper | 7 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Caused by: java.lang.NoSuchMethodError: org.hibernate.cfg.Configuration.addAnnotatedClass(Ljava/lang/Class;)Lorg/hibernate/cfg/Configuration;

    Stack Overflow | 7 months ago | javaHelper
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'downloadController': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'downloadService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/hibernate-context.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.hibernate.cfg.Configuration.addAnnotatedClass(Ljava/lang/Class;)Lorg/hibernate/cfg/Configuration;
  2. 0

    Error creating bean with name blCheckoutService - Injection of resource dependencies failed

    GitHub | 3 years ago | gowthamgutha
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.mycompany.core.email.service.ConfirmationEmailActivity#ad2816': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'myEmailService' is defined
  3. 0

    Re: James 3 from trunk and Spamassassin plugin.

    james-server-user | 7 years ago | Max Levinson
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [spring-beans.xml]: Invocation of init method failed; nested exception is java.lang.AbstractMethodError: org.springframework.orm.jpa.persistenceunit.SpringPersistenceUnitInfo.getValidationMode()Ljavax/persistence/ValidationMode;
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    표준프레임워크 Q&A 글조회 - Error creating bean with name : eGovFramework Community

    egovframe.kr | 2 years ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ztplDAO': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'sqlMapClient' is defined
  6. 0

    Wrapper的deal with get/set method的Bug

    GitHub | 10 months ago | 491311184
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'customizedPortalController': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'customizedPortalService': FactoryBean threw exception on object creation; nested exception is java.lang.RuntimeException: [source error] getPropertyValue (Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object; in com.alibaba.dubbo.common.bytecode.Wrapper26: inconsistent stack height -1

    5 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 'downloadService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/hibernate-context.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.hibernate.cfg.Configuration.addAnnotatedClass(Ljava/lang/Class;)Lorg/hibernate/cfg/Configuration;

      at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues()
    2. Spring Context
      CommonAnnotationBeanPostProcessor.postProcessPropertyValues
      1. org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:321)[spring-context-4.3.1.RELEASE.jar:4.3.1.RELEASE]
      1 frame
    3. Spring Beans
      AbstractBeanFactory.getBean
      1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214)[spring-beans-4.3.1.RELEASE.jar:4.3.1.RELEASE]
      2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543)[spring-beans-4.3.1.RELEASE.jar:4.3.1.RELEASE]
      3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)[spring-beans-4.3.1.RELEASE.jar:4.3.1.RELEASE]
      4. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)[spring-beans-4.3.1.RELEASE.jar:4.3.1.RELEASE]
      5. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)[spring-beans-4.3.1.RELEASE.jar:4.3.1.RELEASE]
      6. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)[spring-beans-4.3.1.RELEASE.jar:4.3.1.RELEASE]
      7. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)[spring-beans-4.3.1.RELEASE.jar:4.3.1.RELEASE]
      7 frames
    4. Spring Context
      CommonAnnotationBeanPostProcessor$ResourceElement.getResourceToInject
      1. org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.autowireResource(CommonAnnotationBeanPostProcessor.java:522)[spring-context-4.3.1.RELEASE.jar:4.3.1.RELEASE]
      2. org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.getResource(CommonAnnotationBeanPostProcessor.java:496)[spring-context-4.3.1.RELEASE.jar:4.3.1.RELEASE]
      3. org.springframework.context.annotation.CommonAnnotationBeanPostProcessor$ResourceElement.getResourceToInject(CommonAnnotationBeanPostProcessor.java:627)[spring-context-4.3.1.RELEASE.jar:4.3.1.RELEASE]
      3 frames
    5. Spring Beans
      InjectionMetadata.inject
      1. org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:169)[spring-beans-4.3.1.RELEASE.jar:4.3.1.RELEASE]
      2. org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)[spring-beans-4.3.1.RELEASE.jar:4.3.1.RELEASE]
      2 frames
    6. Spring Context
      CommonAnnotationBeanPostProcessor.postProcessPropertyValues
      1. org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:318)[spring-context-4.3.1.RELEASE.jar:4.3.1.RELEASE]
      1 frame
    7. Spring Beans
      DefaultListableBeanFactory.preInstantiateSingletons
      1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214)[spring-beans-4.3.1.RELEASE.jar:4.3.1.RELEASE]
      2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543)[spring-beans-4.3.1.RELEASE.jar:4.3.1.RELEASE]
      3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)[spring-beans-4.3.1.RELEASE.jar:4.3.1.RELEASE]
      4. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)[spring-beans-4.3.1.RELEASE.jar:4.3.1.RELEASE]
      5. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)[spring-beans-4.3.1.RELEASE.jar:4.3.1.RELEASE]
      6. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)[spring-beans-4.3.1.RELEASE.jar:4.3.1.RELEASE]
      7. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)[spring-beans-4.3.1.RELEASE.jar:4.3.1.RELEASE]
      8. org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:775)[spring-beans-4.3.1.RELEASE.jar:4.3.1.RELEASE]
      8 frames
    8. Spring Context
      AbstractApplicationContext.refresh
      1. org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:861)[spring-context-4.3.1.RELEASE.jar:4.3.1.RELEASE]
      2. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:541)[spring-context-4.3.1.RELEASE.jar:4.3.1.RELEASE]
      2 frames
    9. Spring
      ContextLoaderListener.contextInitialized
      1. org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:444)[spring-web-4.3.1.RELEASE.jar:4.3.1.RELEASE]
      2. org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:326)[spring-web-4.3.1.RELEASE.jar:4.3.1.RELEASE]
      3. org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)[spring-web-4.3.1.RELEASE.jar:4.3.1.RELEASE]
      3 frames
    10. Glassfish Core
      ContainerBase$StartChild.call
      1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4842)[catalina.jar:8.0.36]
      2. org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5303)[catalina.jar:8.0.36]
      3. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)[catalina.jar:8.0.36]
      4. org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1407)[catalina.jar:8.0.36]
      5. org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1397)[catalina.jar:8.0.36]
      5 frames
    11. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.run(Unknown Source)[na:1.8.0_45]
      2. java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)[na:1.8.0_45]
      3. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)[na:1.8.0_45]
      4. java.lang.Thread.run(Unknown Source)[na:1.8.0_45]
      4 frames