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. ,
    Expert tip

    This means you're missing a class that Java needs for this program. Check if you're not missing the jsr305-1.3.7.jar from your classpath, it's the jar that contains the class javax.annotation.Nullable.

  2. ,

    If JVM throws ClassNotFoundException the class is not found in classpath. It means that something is not configured correctly. So check the relevant class is in the classpath. If the class is packaged into a jar, the jar should also in the classpath.

Solutions on the web

via openxava by ctorrev
, 1 year ago
[PersistenceUnit: default] Unable to build EntityManagerFactory
via sourceforge.net by Unknown author, 2 years ago
via openxava by glpunzi
, 1 year ago
[PersistenceUnit: junit] Unable to build EntityManagerFactory
via openxava by kstenerud
, 2 years ago
[PersistenceUnit: junit] Unable to build EntityManagerFactory
via openxava by oswall
, 2 years ago
[PersistenceUnit: default] Unable to build EntityManagerFactory
via Stack Overflow by Bjorn Roche
, 2 years ago
[PersistenceUnit: persistenceUnit] Unable to build EntityManagerFactory
java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)	at java.lang.Class.forName0(Native Method)	at java.lang.Class.forName(Unknown Source)	at com.sun.naming.internal.VersionHelper12.loadClass(Unknown Source)	at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)	at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)	at javax.naming.InitialContext.init(Unknown Source)	at javax.naming.InitialContext.(Unknown Source)	at org.hibernate.util.NamingHelper.getInitialContext(NamingHelper.java:51)	at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:75)	at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:143)	at org.hibernate.ejb.InjectionSettingsFactory.createConnectionProvider(InjectionSettingsFactory.java:51)	at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:90)	at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2863)	at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2859)	at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1870)	at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:906)	at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:57)	at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63)	at org.openxava.jpa.XPersistence.getEntityManagerFactory(XPersistence.java:182)	at org.openxava.jpa.XPersistence.createManager(XPersistence.java:108)	at org.openxava.annotations.parse.AnnotatedClassParser.obtainManagedClassNamesUsingJPA(AnnotatedClassParser.java:2605)	at org.openxava.annotations.parse.AnnotatedClassParser.getManagedClassNames(AnnotatedClassParser.java:2520)	at com.openxava.naviox.impl.Initializer.init(Initializer.java:18)	at com.openxava.naviox.web.NaviOXFilter.doFilter(NaviOXFilter.java:32)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314)	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)	at java.lang.Thread.run(Unknown Source)