org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'exceptionTranslation' defined in class path resource [br/com/snclavalinmarte/portal/controllers/config/DatabaseSource.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [br/com/snclavalinmarte/portal/controllers/config/DatabaseSource.class]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean br.com.snclavalinmarte.portal.controllers.config.DatabaseSource.entityManagerFactory()] threw exception; nested exception is java.lang.NoClassDefFoundError: javax/persistence/spi/PersistenceUnitInfo

com.br | 2 months ago
  1. 0

    Spring sem XML - erro na criação do datasource

    com.br | 1 year ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'exceptionTranslation' defined in class path resource [br/com/snclavalinmarte/portal/controllers/config/DatabaseSource.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [br/com/snclavalinmarte/portal/controllers/config/DatabaseSource.class]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean br.com.snclavalinmarte.portal.controllers.config.DatabaseSource.entityManagerFactory()] threw exception; nested exception is java.lang.NoClassDefFoundError: javax/persistence/spi/PersistenceUnitInfo
  2. 0

    Spring sem XML - erro na criação do datasource - Assuntos Gerais - GUJ

    com.br | 2 months ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'exceptionTranslation' defined in class path resource [br/com/snclavalinmarte/portal/controllers/config/DatabaseSource.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [br/com/snclavalinmarte/portal/controllers/config/DatabaseSource.class]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean br.com.snclavalinmarte.portal.controllers.config.DatabaseSource.entityManagerFactory()] threw exception; nested exception is java.lang.NoClassDefFoundError: javax/persistence/spi/PersistenceUnitInfo
  3. 0

    Flex 4, Spring 3 with Hibernate & MySQl setup + configuration issues

    Stack Overflow | 6 years ago | Chirayu
    org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [org.springframework.flex.core.ExceptionTranslationAdvice] for bean with name 'org.springframework.flex.core.ExceptionTranslationAdvice#0' defined in null: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org/aopalliance/aop/Advice
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Spring MVC and Hibernate - ClassNotFound DispatcherServlet

    Stack Overflow | 5 years ago | Philippxp
    java.lang.NoClassDefFoundError: org/springframework/context/EnvironmentAware
  6. 0

    RESTful webservice deploy in tomcat server error

    Stack Overflow | 4 years ago | Gopal
    java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/RestfulService]]

  1. treefolk 1 times, last 2 weeks ago
  2. Tahir 2 times, last 2 months ago
  3. Piz 2027 times, last 4 months ago
  4. jedcua 1 times, last 4 months ago
  5. esaar 3 times, last 4 months ago
5 more registered users
89 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. java.lang.ClassNotFoundException

    javax.persistence.spi.PersistenceUnitInfo

    at org.apache.catalina.loader.WebappClassLoader.loadClass()
  2. Glassfish Core
    WebappClassLoader.loadClass
    1. org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
    2. org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
    2 frames
  3. Java RT
    SecureClassLoader.defineClass
    1. java.lang.ClassLoader.defineClass1(Native Method)
    2. java.lang.ClassLoader.defineClass(ClassLoader.java:791)
    3. java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    3 frames
  4. Glassfish Core
    WebappClassLoader.loadClass
    1. org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2895)
    2. org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1173)
    3. org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1681)
    4. org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
    4 frames
  5. Java RT
    SecureClassLoader.defineClass
    1. java.lang.ClassLoader.defineClass1(Native Method)
    2. java.lang.ClassLoader.defineClass(ClassLoader.java:791)
    3. java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    3 frames
  6. Glassfish Core
    WebappClassLoader.loadClass
    1. org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2895)
    2. org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1173)
    3. org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1681)
    4. org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
    4 frames
  7. Spring ORM
    LocalContainerEntityManagerFactoryBean.<init>
    1. org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.<init>(LocalContainerEntityManagerFactoryBean.java:88)
    1 frame
  8. br.com.snclavalinmarte
    DatabaseSource$$EnhancerByCGLIB$$f6219dc0$$FastClassByCGLIB$$77c908f1.invoke
    1. br.com.snclavalinmarte.portal.controllers.config.DatabaseSource.entityManagerFactory(DatabaseSource.java:25)
    2. br.com.snclavalinmarte.portal.controllers.config.DatabaseSource$$EnhancerByCGLIB$$f6219dc0.CGLIB$entityManagerFactory$0(<generated>)
    3. br.com.snclavalinmarte.portal.controllers.config.DatabaseSource$$EnhancerByCGLIB$$f6219dc0$$FastClassByCGLIB$$77c908f1.invoke(<generated>)
    3 frames
  9. Spring Core
    MethodProxy.invokeSuper
    1. org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
    1 frame
  10. Spring Context
    ConfigurationClassEnhancer$BeanMethodInterceptor.intercept
    1. org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:286)
    1 frame
  11. br.com.snclavalinmarte
    DatabaseSource$$EnhancerByCGLIB$$f6219dc0.entityManagerFactory
    1. br.com.snclavalinmarte.portal.controllers.config.DatabaseSource$$EnhancerByCGLIB$$f6219dc0.entityManagerFactory(<generated>)
    1 frame
  12. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:601)
    4 frames
  13. Spring Beans
    BeanFactoryUtils.beansOfTypeIncludingAncestors
    1. org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:160)
    2. org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:570)
    3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1031)
    4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:927)
    5. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:490)
    6. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)
    7. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
    8. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
    9. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
    10. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198)
    11. org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:439)
    12. org.springframework.beans.factory.BeanFactoryUtils.beansOfTypeIncludingAncestors(BeanFactoryUtils.java:277)
    12 frames
  14. Spring Tx
    PersistenceExceptionTranslationPostProcessor.setBeanFactory
    1. org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.detectPersistenceExceptionTranslators(PersistenceExceptionTranslationInterceptor.java:139)
    2. org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.<init>(PersistenceExceptionTranslationInterceptor.java:79)
    3. org.springframework.dao.annotation.PersistenceExceptionTranslationAdvisor.<init>(PersistenceExceptionTranslationAdvisor.java:71)
    4. org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor.setBeanFactory(PersistenceExceptionTranslationPostProcessor.java:85)
    4 frames
  15. Spring Beans
    AbstractBeanFactory.getBean
    1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeAwareMethods(AbstractAutowireCapableBeanFactory.java:1508)
    2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1476)
    3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:524)
    4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)
    5. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
    6. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
    7. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
    8. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198)
    8 frames
  16. Spring Context
    AbstractApplicationContext.refresh
    1. org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:741)
    2. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
    2 frames
  17. Spring MVC
    HttpServletBean.init
    1. org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:651)
    2. org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:505)
    3. org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:459)
    4. org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)
    4 frames
  18. JavaServlet
    GenericServlet.init
    1. javax.servlet.GenericServlet.init(GenericServlet.java:160)
    1 frame
  19. Glassfish Core
    ContainerBase$StartChild.call
    1. org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1280)
    2. org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1091)
    3. org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5123)
    4. org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5407)
    5. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    6. org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
    7. org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
    7 frames
  20. Java RT
    Thread.run
    1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    2. java.util.concurrent.FutureTask.run(FutureTask.java:166)
    3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    5. java.lang.Thread.run(Thread.java:722)
    5 frames