org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor#0' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.IllegalAccessError: tried to access method org.hibernate.cfg.Mappings.<init>(Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/List;Ljava/util/List;Lorg/hibernate/cfg/NamingStrategy;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/List;Ljava/util/Map;Ljava/util/Map;)V from class org.hibernate.cfg.ExtendedMappings

Coderanch | Arun Giridharan | 6 years ago
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

    org.springframework.beans.factory.BeanCreationException

    Coderanch | 6 years ago | Arun Giridharan
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor#0' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.IllegalAccessError: tried to access method org.hibernate.cfg.Mappings.<init>(Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/List;Ljava/util/List;Lorg/hibernate/cfg/NamingStrategy;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/List;Ljava/util/Map;Ljava/util/Map;)V from class org.hibernate.cfg.ExtendedMappings
  2. 0

    org.springframework.beans.factory.BeanCreationException (Spring forum at Coderanch)

    coderanch.com | 1 week ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor#0' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is : tried to access method org.hibernate.cfg.Mappings.<init>(Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/List;Ljava/util/List;Lorg/hibernate/cfg/NamingStrategy;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/List;Ljava/util/Map;Ljava/util/Map;)V from class org.hibernate.cfg.ExtendedMappings
  3. 0

    Error with Spring 3.0 in deployment. (Spring forum at Coderanch)

    coderanch.com | 11 months ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor#0' defined in ServletContext resource [/WEB-INF/persistenceContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in ServletContext resource [/WEB-INF/persistenceContext.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: No persistence units parsed from {classpath*:META-INF/persistence.xml}
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Error with Spring 3.0 in deployment. (Spring forum at Coderanch)

    coderanch.com | 9 months ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor#0' defined in ServletContext resource [/WEB-INF/persistenceContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in ServletContext resource [/WEB-INF/persistenceContext.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: No persistence units parsed from {classpath*:META-INF/persistence.xml}
  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. tvrmsmith 4 times, last 7 months ago
  2. dafman 2 times, last 7 months ago
  3. Tahir 49 times, last 9 months ago
  4. Malcshour 8 times, last 11 months ago
  5. schoetty 6 times, last 12 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 'org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor#0' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.IllegalAccessError: tried to access method org.hibernate.cfg.Mappings.<init>(Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/List;Ljava/util/List;Lorg/hibernate/cfg/NamingStrategy;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/List;Ljava/util/Map;Ljava/util/Map;)V from class org.hibernate.cfg.ExtendedMappings

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean()
  2. Spring Beans
    AbstractBeanFactory.getBean
    1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)
    2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    3. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
    4. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
    5. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
    6. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
    6 frames
  3. Spring Context
    AbstractApplicationContext.refresh
    1. org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:710)
    2. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:410)
    2 frames
  4. Spring
    ContextLoaderListener.contextInitialized
    1. org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
    2. org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
    3. org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
    3 frames
  5. Glassfish Core
    StandardHost.addChild
    1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3856)
    2. org.apache.catalina.core.StandardContext.start(StandardContext.java:4361)
    3. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790)
    4. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:770)
    5. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
    5 frames
  6. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  7. Embedded GlassFish Web
    BaseModelMBean.invoke
    1. org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
    1 frame
  8. JBoss Application Server J2SE
    MBeanServerImpl.invoke
    1. org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
    2. org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    2 frames
  9. Glassfish Core
    StandardContext.init
    1. org.apache.catalina.core.StandardContext.init(StandardContext.java:5312)
    1 frame
  10. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  11. Embedded GlassFish Web
    BaseModelMBean.invoke
    1. org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
    1 frame
  12. JBoss Application Server J2SE
    MBeanServerImpl.invoke
    1. org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
    2. org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    2 frames
  13. JBoss Application Server Tomcat
    TomcatDeployer.performDeploy
    1. org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
    2. org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
    2 frames
  14. JBoss Application Server Server
    WebModule.startService
    1. org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
    2. org.jboss.web.WebModule.startModule(WebModule.java:83)
    3. org.jboss.web.WebModule.startService(WebModule.java:61)
    3 frames
  15. JBoss Application Server System
    ServiceMBeanSupport.jbossInternalLifecycle
    1. org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
    2. org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
    2 frames
  16. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    3. java.lang.reflect.Method.invoke(Method.java:597)
    3 frames
  17. org.jboss.mx
    ReflectedDispatcher.invoke
    1. org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    1 frame
  18. JBoss Application Server J2SE
    MBeanServerImpl.invoke
    1. org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    2. org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    3. org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    4. org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    4 frames
  19. JBoss Application Server System
    ServiceController$ServiceProxy.invoke
    1. org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
    1 frame
  20. Unknown
    $Proxy0.start
    1. $Proxy0.start(Unknown Source)
    1 frame
  21. JBoss Application Server System
    ServiceController.start
    1. org.jboss.system.ServiceController.start(ServiceController.java:417)
    1 frame
  22. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    3. java.lang.reflect.Method.invoke(Method.java:597)
    3 frames
  23. org.jboss.mx
    ReflectedDispatcher.invoke
    1. org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    1 frame
  24. JBoss Application Server J2SE
    MBeanProxyExt.invoke
    1. org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    2. org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    3. org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    4. org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    5. org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    5 frames
  25. Unknown
    $Proxy44.start
    1. $Proxy44.start(Unknown Source)
    1 frame
  26. JBoss Application Server Server
    AbstractWebContainer.start
    1. org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
    1 frame
  27. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  28. org.jboss.mx
    ReflectedDispatcher.invoke
    1. org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    1 frame
  29. JBoss Application Server J2SE
    Invocation.dispatch
    1. org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    1 frame
  30. org.jboss.mx
    AbstractInterceptor.invoke
    1. org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
    1 frame
  31. JBoss Application Server J2SE
    Invocation.invoke
    1. org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    1 frame
  32. org.jboss.mx
    DynamicInterceptor.invoke
    1. org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
    2. org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
    2 frames
  33. JBoss Application Server System
    InterceptorServiceMBeanSupport.invokeNext
    1. org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
    1 frame
  34. JBoss Web Services - Container JBoss-4.2.3
    DeployerInterceptor.start
    1. org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:87)
    1 frame
  35. JBoss Application Server System JMX
    SubDeployerInterceptor.invoke
    1. org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
    2. org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
    2 frames
  36. JBoss Application Server J2SE
    MBeanProxyExt.invoke
    1. org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    2. org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    3. org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    4. org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    4 frames
  37. Unknown
    $Proxy45.start
    1. $Proxy45.start(Unknown Source)
    1 frame
  38. JBoss Application Server System JMX
    MainDeployer.deploy
    1. org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
    2. org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
    3. org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
    3 frames
  39. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    3. java.lang.reflect.Method.invoke(Method.java:597)
    3 frames
  40. org.jboss.mx
    ReflectedDispatcher.invoke
    1. org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    1 frame
  41. JBoss Application Server J2SE
    Invocation.dispatch
    1. org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    1 frame
  42. org.jboss.mx
    AbstractInterceptor.invoke
    1. org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
    1 frame
  43. JBoss Application Server J2SE
    Invocation.invoke
    1. org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    1 frame
  44. org.jboss.mx
    ModelMBeanOperationInterceptor.invoke
    1. org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
    1 frame
  45. JBoss Application Server J2SE
    MBeanProxyExt.invoke
    1. org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    2. org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    3. org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    4. org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    4 frames
  46. Unknown
    $Proxy9.deploy
    1. $Proxy9.deploy(Unknown Source)
    1 frame
  47. org.jboss.deployment
    AbstractDeploymentScanner$ScannerThread.run
    1. org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
    2. org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
    3. org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
    4. org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
    5. org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
    5 frames