failedorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in ServletContext resource [/WEB-INF/root-context.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: error trying to scan <jar-file>: file:/home/user/devel/app/.config/

Hibernate JIRA | Oleksandr Gavenko | 12 months ago
  1. 0

    During development I use Tomcat 8 deploy descriptor: {{ <Context docBase="/home/user/devel/app/src/main/webapp" reloadable="true"> <Resources> <!-- To override application.properties, logback.xml, etc. --> <PreResources className="org.apache.catalina.webresources.DirResourceSet" base="/home/user/devel/app/.config" internalPath="/" webAppMount="/WEB-INF/classes" /> <!-- To load compiled classes. --> <PostResources className="org.apache.catalina.webresources.DirResourceSet" base="/home/user/devel/app/target/classes" webAppMount="/WEB-INF/classes" /> <!-- To load *.jar. --> <PostResources className="org.apache.catalina.webresources.DirResourceSet" base="/home/user/devel/app/target/app-1.1-SNAPSHOT/WEB-INF/lib" webAppMount="/WEB-INF/lib" /> </Resources> </Context> }} I extend classpath in order to load development version of config/auth files. Tomcat detect changes in specified paths and try to reload context. Tomcat 8 checks for changes of class/web.xml files. Sometimes changes triggered by NetBeans IDE. Sometimes I do "{{mvn package}}". My editor (Emacs) create temporary file which name look like: .{{#liquibase.properties}} After file saving this file disappear. For some strange reason {{org.hibernate.ejb.Ejb3Configuration.scanForClasses}} call {{org.hibernate.ejb.packaging.ExplodedJarVisitor.getClassNamesInTree}} for each individual file in classpath: {{ private void getClassNamesInTree(File jarFile, String header) throws IOException { File[] files = jarFile.listFiles(); header = header == null ? "" : header + "/"; for ( File localFile : files ) { if ( !localFile.isDirectory() ) { String entryName = localFile.getName(); addElement( header + entryName, new BufferedInputStream( new FileInputStream( localFile ) ), new BufferedInputStream( new FileInputStream( localFile ) ) ); } else { getClassNamesInTree( localFile, header + localFile.getName() ); } } } }} Because editor remove unnecessary temp file, Hibernate fail with following stacktrace: {{ 2015-12-20 00:01:20,569 ERROR org.springframework.web.context.ContextLoader Caller+0 at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:319) => Context initialization failedorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in ServletContext resource [/WEB-INF/root-context.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: error trying to scan <jar-file>: file:/home/user/devel/app/.config/ at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1482) ~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521) ~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458) ~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295) ~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223) ~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292) ~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) ~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1117) ~[spring-context-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:922) ~[spring-context-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479) ~[spring-context-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389) ~[spring-web-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294) ~[spring-web-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112) [spring-web-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4738) [tomcat8-catalina-8.0.28.jar:8.0.28] at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5181) [tomcat8-catalina-8.0.28.jar:8.0.28] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [tomcat8-catalina-8.0.28.jar:8.0.28] at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3755) [tomcat8-catalina-8.0.28.jar:8.0.28] at org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:292) [tomcat8-catalina-8.0.28.jar:8.0.28] at org.apache.catalina.core.StandardContext.backgroundProcess(StandardContext.java:5542) [tomcat8-catalina-8.0.28.jar:8.0.28] at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1377) [tomcat8-catalina-8.0.28.jar:8.0.28] at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1381) [tomcat8-catalina-8.0.28.jar:8.0.28] at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1381) [tomcat8-catalina-8.0.28.jar:8.0.28] at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1349) [tomcat8-catalina-8.0.28.jar:8.0.28] at java.lang.Thread.run(Thread.java:745) [na:1.7.0_91] Caused by: java.lang.RuntimeException: error trying to scan <jar-file>: file:/home/user/devel/app/.config/ at org.hibernate.ejb.Ejb3Configuration.scanForClasses(Ejb3Configuration.java:864) ~[hibernate-entitymanager-4.2.2.Final.jar:4.2.2.Final] at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:606) ~[hibernate-entitymanager-4.2.2.Final.jar:4.2.2.Final] at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:75) ~[hibernate-entitymanager-4.2.2.Final.jar:4.2.2.Final] at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:288) ~[spring-orm-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:310) ~[spring-orm-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1541) ~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1479) ~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE] ... 23 common frames omitted Caused by: java.lang.RuntimeException: Error while reading file:/home/user/devel/app/.config/ at org.hibernate.ejb.packaging.NativeScanner.getFilesInJar(NativeScanner.java:195) ~[hibernate-entitymanager-4.2.2.Final.jar:4.2.2.Final] at org.hibernate.ejb.Ejb3Configuration.addScannedEntries(Ejb3Configuration.java:506) ~[hibernate-entitymanager-4.2.2.Final.jar:4.2.2.Final] at org.hibernate.ejb.Ejb3Configuration.scanForClasses(Ejb3Configuration.java:861) ~[hibernate-entitymanager-4.2.2.Final.jar:4.2.2.Final] ... 29 common frames omitted Caused by: java.io.FileNotFoundException: /home/user/devel/app/.config/.#liquibase.properties (No such file or directory) at java.io.FileInputStream.open(Native Method) ~[na:1.7.0_91] at java.io.FileInputStream.<init>(FileInputStream.java:146) ~[na:1.7.0_91] at org.hibernate.ejb.packaging.ExplodedJarVisitor.getClassNamesInTree(ExplodedJarVisitor.java:126) ~[hibernate-entitymanager-4.2.2.Final.jar:4.2.2.Final] at org.hibernate.ejb.packaging.ExplodedJarVisitor.doProcessElements(ExplodedJarVisitor.java:92) ~[hibernate-entitymanager-4.2.2.Final.jar:4.2.2.Final] at org.hibernate.ejb.packaging.AbstractJarVisitor.getMatchingEntries(AbstractJarVisitor.java:149) ~[hibernate-entitymanager-4.2.2.Final.jar:4.2.2.Final] at org.hibernate.ejb.packaging.NativeScanner.getFilesInJar(NativeScanner.java:192) ~[hibernate-entitymanager-4.2.2.Final.jar:4.2.2.Final] ... 31 common frames omitted }} I think that Hibernate do wrong in: {{new BufferedInputStream( new FileInputStream( localFile ) )}} on files that are not .class or .jar This lead to application crashes during development. Also it is obviously have performance impact - Hibernate just open all files in classpath during initialization!!

    Hibernate JIRA | 12 months ago | Oleksandr Gavenko
    failedorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in ServletContext resource [/WEB-INF/root-context.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: error trying to scan <jar-file>: file:/home/user/devel/app/.config/
  2. 0

    During development I use Tomcat 8 deploy descriptor: {{ <Context docBase="/home/user/devel/app/src/main/webapp" reloadable="true"> <Resources> <!-- To override application.properties, logback.xml, etc. --> <PreResources className="org.apache.catalina.webresources.DirResourceSet" base="/home/user/devel/app/.config" internalPath="/" webAppMount="/WEB-INF/classes" /> <!-- To load compiled classes. --> <PostResources className="org.apache.catalina.webresources.DirResourceSet" base="/home/user/devel/app/target/classes" webAppMount="/WEB-INF/classes" /> <!-- To load *.jar. --> <PostResources className="org.apache.catalina.webresources.DirResourceSet" base="/home/user/devel/app/target/app-1.1-SNAPSHOT/WEB-INF/lib" webAppMount="/WEB-INF/lib" /> </Resources> </Context> }} I extend classpath in order to load development version of config/auth files. Tomcat detect changes in specified paths and try to reload context. Tomcat 8 checks for changes of class/web.xml files. Sometimes changes triggered by NetBeans IDE. Sometimes I do "{{mvn package}}". My editor (Emacs) create temporary file which name look like: .{{#liquibase.properties}} After file saving this file disappear. For some strange reason {{org.hibernate.ejb.Ejb3Configuration.scanForClasses}} call {{org.hibernate.ejb.packaging.ExplodedJarVisitor.getClassNamesInTree}} for each individual file in classpath: {{ private void getClassNamesInTree(File jarFile, String header) throws IOException { File[] files = jarFile.listFiles(); header = header == null ? "" : header + "/"; for ( File localFile : files ) { if ( !localFile.isDirectory() ) { String entryName = localFile.getName(); addElement( header + entryName, new BufferedInputStream( new FileInputStream( localFile ) ), new BufferedInputStream( new FileInputStream( localFile ) ) ); } else { getClassNamesInTree( localFile, header + localFile.getName() ); } } } }} Because editor remove unnecessary temp file, Hibernate fail with following stacktrace: {{ 2015-12-20 00:01:20,569 ERROR org.springframework.web.context.ContextLoader Caller+0 at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:319) => Context initialization failedorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in ServletContext resource [/WEB-INF/root-context.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: error trying to scan <jar-file>: file:/home/user/devel/app/.config/ at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1482) ~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521) ~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458) ~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295) ~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223) ~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292) ~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) ~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1117) ~[spring-context-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:922) ~[spring-context-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479) ~[spring-context-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389) ~[spring-web-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294) ~[spring-web-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112) [spring-web-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4738) [tomcat8-catalina-8.0.28.jar:8.0.28] at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5181) [tomcat8-catalina-8.0.28.jar:8.0.28] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [tomcat8-catalina-8.0.28.jar:8.0.28] at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3755) [tomcat8-catalina-8.0.28.jar:8.0.28] at org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:292) [tomcat8-catalina-8.0.28.jar:8.0.28] at org.apache.catalina.core.StandardContext.backgroundProcess(StandardContext.java:5542) [tomcat8-catalina-8.0.28.jar:8.0.28] at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1377) [tomcat8-catalina-8.0.28.jar:8.0.28] at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1381) [tomcat8-catalina-8.0.28.jar:8.0.28] at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1381) [tomcat8-catalina-8.0.28.jar:8.0.28] at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1349) [tomcat8-catalina-8.0.28.jar:8.0.28] at java.lang.Thread.run(Thread.java:745) [na:1.7.0_91] Caused by: java.lang.RuntimeException: error trying to scan <jar-file>: file:/home/user/devel/app/.config/ at org.hibernate.ejb.Ejb3Configuration.scanForClasses(Ejb3Configuration.java:864) ~[hibernate-entitymanager-4.2.2.Final.jar:4.2.2.Final] at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:606) ~[hibernate-entitymanager-4.2.2.Final.jar:4.2.2.Final] at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:75) ~[hibernate-entitymanager-4.2.2.Final.jar:4.2.2.Final] at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:288) ~[spring-orm-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:310) ~[spring-orm-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1541) ~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1479) ~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE] ... 23 common frames omitted Caused by: java.lang.RuntimeException: Error while reading file:/home/user/devel/app/.config/ at org.hibernate.ejb.packaging.NativeScanner.getFilesInJar(NativeScanner.java:195) ~[hibernate-entitymanager-4.2.2.Final.jar:4.2.2.Final] at org.hibernate.ejb.Ejb3Configuration.addScannedEntries(Ejb3Configuration.java:506) ~[hibernate-entitymanager-4.2.2.Final.jar:4.2.2.Final] at org.hibernate.ejb.Ejb3Configuration.scanForClasses(Ejb3Configuration.java:861) ~[hibernate-entitymanager-4.2.2.Final.jar:4.2.2.Final] ... 29 common frames omitted Caused by: java.io.FileNotFoundException: /home/user/devel/app/.config/.#liquibase.properties (No such file or directory) at java.io.FileInputStream.open(Native Method) ~[na:1.7.0_91] at java.io.FileInputStream.<init>(FileInputStream.java:146) ~[na:1.7.0_91] at org.hibernate.ejb.packaging.ExplodedJarVisitor.getClassNamesInTree(ExplodedJarVisitor.java:126) ~[hibernate-entitymanager-4.2.2.Final.jar:4.2.2.Final] at org.hibernate.ejb.packaging.ExplodedJarVisitor.doProcessElements(ExplodedJarVisitor.java:92) ~[hibernate-entitymanager-4.2.2.Final.jar:4.2.2.Final] at org.hibernate.ejb.packaging.AbstractJarVisitor.getMatchingEntries(AbstractJarVisitor.java:149) ~[hibernate-entitymanager-4.2.2.Final.jar:4.2.2.Final] at org.hibernate.ejb.packaging.NativeScanner.getFilesInJar(NativeScanner.java:192) ~[hibernate-entitymanager-4.2.2.Final.jar:4.2.2.Final] ... 31 common frames omitted }} I think that Hibernate do wrong in: {{new BufferedInputStream( new FileInputStream( localFile ) )}} on files that are not .class or .jar This lead to application crashes during development. Also it is obviously have performance impact - Hibernate just open all files in classpath during initialization!!

    Hibernate JIRA | 12 months ago | Oleksandr Gavenko
    failedorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in ServletContext resource [/WEB-INF/root-context.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: error trying to scan <jar-file>: file:/home/user/devel/app/.config/
  3. 0

    Related Image Field does not work if the asset has an uppercase file extension

    GitHub | 2 years ago | wezell
    java.io.FileNotFoundException: /data/master-2.5/tomcat/webapps/../../dotCMS/assets/6/5/6509472e-310a-4f91-bc75-26a989b666d7/fileAsset/showtime-penny-deadful.png (No such file or directory)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [0.13.7] FileNotFoundException: /Users/foo/.m2/settings.xml (No such file or directory)

    GitHub | 2 years ago | eed3si9n
    java.io.FileNotFoundException: /Users/foo/.m2/settings.xml (No such file or directory)
  6. 0

    Missing properties.xml in ErrorLogs results in exception and loss of logging

    GitHub | 2 years ago | simonvanderveldt
    java.lang.RuntimeException: java.io.FileNotFoundException: .\FitNesseRoot\ErrorLogs\FrontPage\x\y\properties.xml (The system cannot find the file specified)

  1. r1chjames 1 times, last 3 days ago
  2. richard77 1 times, last 1 week ago
  3. gehel 2 times, last 2 weeks ago
  4. Kialandei 100 times, last 2 weeks ago
  5. Reich 1 times, last 2 weeks ago
45 more registered users
50 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.io.FileNotFoundException

    /home/user/devel/app/.config/.#liquibase.properties (No such file or directory)

    at java.io.FileInputStream.open()
  2. Java RT
    FileInputStream.<init>
    1. java.io.FileInputStream.open(Native Method)[na:1.7.0_91]
    2. java.io.FileInputStream.<init>(FileInputStream.java:146)[na:1.7.0_91]
    2 frames
  3. Hibernate EJB
    HibernatePersistence.createContainerEntityManagerFactory
    1. org.hibernate.ejb.packaging.ExplodedJarVisitor.getClassNamesInTree(ExplodedJarVisitor.java:126)[hibernate-entitymanager-4.2.2.Final.jar:4.2.2.Final]
    2. org.hibernate.ejb.packaging.ExplodedJarVisitor.doProcessElements(ExplodedJarVisitor.java:92)[hibernate-entitymanager-4.2.2.Final.jar:4.2.2.Final]
    3. org.hibernate.ejb.packaging.AbstractJarVisitor.getMatchingEntries(AbstractJarVisitor.java:149)[hibernate-entitymanager-4.2.2.Final.jar:4.2.2.Final]
    4. org.hibernate.ejb.packaging.NativeScanner.getFilesInJar(NativeScanner.java:192)[hibernate-entitymanager-4.2.2.Final.jar:4.2.2.Final]
    5. org.hibernate.ejb.Ejb3Configuration.addScannedEntries(Ejb3Configuration.java:506)[hibernate-entitymanager-4.2.2.Final.jar:4.2.2.Final]
    6. org.hibernate.ejb.Ejb3Configuration.scanForClasses(Ejb3Configuration.java:861)[hibernate-entitymanager-4.2.2.Final.jar:4.2.2.Final]
    7. org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:606)[hibernate-entitymanager-4.2.2.Final.jar:4.2.2.Final]
    8. org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:75)[hibernate-entitymanager-4.2.2.Final.jar:4.2.2.Final]
    8 frames
  4. Spring ORM
    AbstractEntityManagerFactoryBean.afterPropertiesSet
    1. org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:288)[spring-orm-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    2. org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:310)[spring-orm-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    2 frames
  5. Spring Beans
    AbstractBeanFactory.getBean
    1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1541)[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1479)[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    5. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    6. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    7. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    8. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    8 frames
  6. Spring Context
    AbstractApplicationContext.refresh
    1. org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1117)[spring-context-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    2. org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:922)[spring-context-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    3. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)[spring-context-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    3 frames
  7. Spring
    ContextLoaderListener.contextInitialized
    1. org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)[spring-web-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    2. org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)[spring-web-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    3. org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)[spring-web-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    3 frames
  8. Glassfish Core
    ContainerBase$ContainerBackgroundProcessor.run
    1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4738)[tomcat8-catalina-8.0.28.jar:8.0.28]
    2. org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5181)[tomcat8-catalina-8.0.28.jar:8.0.28]
    3. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)[tomcat8-catalina-8.0.28.jar:8.0.28]
    4. org.apache.catalina.core.StandardContext.reload(StandardContext.java:3755)[tomcat8-catalina-8.0.28.jar:8.0.28]
    5. org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:292)[tomcat8-catalina-8.0.28.jar:8.0.28]
    6. org.apache.catalina.core.StandardContext.backgroundProcess(StandardContext.java:5542)[tomcat8-catalina-8.0.28.jar:8.0.28]
    7. org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1377)[tomcat8-catalina-8.0.28.jar:8.0.28]
    8. org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1381)[tomcat8-catalina-8.0.28.jar:8.0.28]
    9. org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1381)[tomcat8-catalina-8.0.28.jar:8.0.28]
    10. org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1349)[tomcat8-catalina-8.0.28.jar:8.0.28]
    10 frames
  9. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)[na:1.7.0_91]
    1 frame