Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,

    You are not deploying the oracle driver with the application. Place the driver jars in a shared or library extension folder of your application server. (You should go with option one or two though

  2. ,
    Expert tip

    The server rejects all jars that already belong to the server runtime (such as tomcat-**.jar, servlet**.jar). Consider substituting the CORS filter you're using for this one: https://goo.gl/ctQ7Fs

Solutions on the web

via openxava by cholou
, 1 year ago
\[PersistenceUnit: junit\] Unable to build EntityManagerFactory
via openxava by dark_rev_82
, 1 year ago
\[PersistenceUnit: default\] Unable to build EntityManagerFactory
via openxava by nishiboy
, 2 years ago
\[PersistenceUnit: default\] Unable to build EntityManagerFactory
via openxava by henryedsl
, 1 year ago
\[PersistenceUnit: default\] Unable to build EntityManagerFactory
via sourceforge.net by Unknown author, 2 years ago
javax.persistence.PersistenceException: \[PersistenceUnit: junit\] Unable to build EntityManagerFactory at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:677) at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:126) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:51) at org.openxava.jpa.XPersistence.getEntityManagerFactory(XPersistence.java:180) at org.openxava.jpa.XPersistence.createManager(XPersistence.java:108) at org.openxava.annotations.parse.AnnotatedClassParser.obtainManagedClassNamesUsingHibernate(AnnotatedClassParser.java:2170) at org.openxava.annotations.parse.AnnotatedClassParser.getManagedClassNames(AnnotatedClassParser.java:2086) at org.openxava.annotations.parse.AnnotatedClassParser.getClassNameFor(AnnotatedClassParser.java:2048) at org.openxava.annotations.parse.AnnotatedClassParser.parse(AnnotatedClassParser.java:53) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.openxava.util.Objects.execute(Objects.java:193) at org.openxava.util.Objects.execute(Objects.java:112) at org.openxava.component.ComponentParser.parseAnnotatedClass(ComponentParser.java:54) at org.openxava.component.ComponentParser.parse(ComponentParser.java:34) at org.openxava.component.MetaComponent.get(MetaComponent.java:60) at org.openxava.component.MetaComponent.exists(MetaComponent.java:75) at org.openxava.application.meta.MetaApplication.existsModel(MetaApplication.java:161) at org.openxava.application.meta.MetaApplication.getMetaModule(MetaApplication.java:149) at org.openxava.tests.ModuleTestBase.getMetaModule(ModuleTestBase.java:1382) at org.openxava.tests.ModuleTestBase.resetModule(ModuleTestBase.java:409) at org.openxava.tests.ModuleTestBase.setUp(ModuleTestBase.java:111) at junit.framework.TestCase.runBare(TestCase.java:128) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:120) at junit.framework.TestSuite.runTest(TestSuite.java:230) at junit.framework.TestSuite.run(TestSuite.java:225) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)Caused by: org.hibernate.HibernateException: JDBC Driver class not found: com.mysql.jdbc.Driver at org.hibernate.connection.DriverManagerConnectionProvider.configure(DriverManagerConnectionProvider.java:89) at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:137) at org.hibernate.ejb.InjectionSettingsFactory.createConnectionProvider(InjectionSettingsFactory.java:29) at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:89) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2101) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1325) at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867) at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669) ... 36 moreCaused by: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:123) at org.hibernate.connection.DriverManagerConnectionProvider.configure(DriverManagerConnectionProvider.java:84) ... 43 more