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

    If JVM throws ClassNotFoundException the class is not found in classpath. Seems you are missing hibernate dependency in your project set up. Try downloading hibernate-core.jar and add to your project classpath.

Solutions on the web

via roseindia.net by Unknown author, 2 years ago
Error creating bean with name 'entityManagerFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/hibernate/cache/TimestampsRegion
via roseindia.net by Unknown author, 1 year ago
Error creating bean with name 'entityManagerFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/hibernate/cache/TimestampsRegion
via Stack Overflow by Euson
, 1 year ago
Error creating bean with name 'entityManagerFactory' defined in ar.edu.itba.paw.config.WebConfig: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory
via Stack Overflow by user2475117
, 2 years ago
Error creating bean with name 'myEmf' defined in class path resource [WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.boot.registry.classloading.spi.ClassLoadingException: Unable to load class [my_package.Message]
via GitHub by enmaku
, 2 years ago
Error creating bean with name 'entityManagerFactory' defined in resource loaded from byte array: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: blPU] Unable to build EntityManagerFactory
java.lang.ClassNotFoundException: org.hibernate.cache.TimestampsRegion	at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230)	at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:375)	at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:337)	at java.lang.Class.forName0(Native Method)	at java.lang.Class.forName(Class.java:340)	at org.hibernate.service.classloading.internal.ClassLoaderServiceImpl.classForName(ClassLoaderServiceImpl.java:149)	at org.hibernate.cfg.SettingsFactory.createRegionFactory(SettingsFactory.java:487)	at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:289)	at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2360)	at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2356)	at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1792)	at org.hibernate.ejb.EntityManagerFactoryImpl.(EntityManagerFactoryImpl.java:96)	at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:914)	at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:899)	at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:76)	at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:336)	at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:318)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1612)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1549)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304)	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300)	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195)	at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:973)	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:750)	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)	at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:403)	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)	at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:540)	at org.mortbay.jetty.servlet.Context.startContext(Context.java:135)	at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1220)	at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:510)	at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)	at org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:110)	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)	at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)	at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)	at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)	at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)	at org.mortbay.jetty.Server.doStart(Server.java:222)	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)	at org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132)	at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:371)	at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:307)	at org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:203)	at org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184)	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)	at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:318)	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:153)	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)	at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:483)	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:414)	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:357)