1. Error description
2015-09-20 23:02:58 [main] WARN Org.springframework.context.support.genericapplicationcontext-exception encountered During context initialization-cancelling Refresh Attemptorg.springframework.beans.factory.BeanCreationException: Error creating Bean with Name ' Processengine ' defined in class path resource [Applicationcontext.xml]: instantiation of being An failed; Nested exception is Org.springframework.beans.factory.BeanDefinitionStoreException:Factory method [public Org.jbpm.api.ProcessEngine Org.jbpm.pvm.internal.processengine.SpringHelper.createProcessEngine ()] threw exception Nested exception is Java.lang.noclassdeffounderror:org/hibernate/impl/sessionimplat Org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod ( constructorresolver.java:601) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod ( abstractautowirecapablebeanfactory.java:1113) at Org.springframework.beans.factory.support.AbstRactautowirecapablebeanfactory.createbeaninstance (abstractautowirecapablebeanfactory.java:1008) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean ( abstractautowirecapablebeanfactory.java:505) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean ( abstractautowirecapablebeanfactory.java:476) at org.springframework.beans.factory.support.abstractbeanfactory$1. GetObject (abstractbeanfactory.java:302) at Org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton ( defaultsingletonbeanregistry.java:229) at Org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (abstractbeanfactory.java:298) at Org.springframework.beans.factory.support.AbstractBeanFactory.getBean (abstractbeanfactory.java:193) at Org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons ( defaultlistablebeanfactory.java:725) at Org.springframework.context.support.AbstractApplicationConteXt.finishbeanfactoryinitialization (abstractapplicationcontext.java:757) at Org.springframework.context.support.AbstractApplicationContext.refresh (abstractapplicationcontext.java:480) at Org.springframework.test.context.support.AbstractGenericContextLoader.loadContext ( abstractgenericcontextloader.java:125) at Org.springframework.test.context.support.AbstractGenericContextLoader.loadContext ( ABSTRACTGENERICCONTEXTLOADER.JAVA:60) at Org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.delegateLoading ( abstractdelegatingsmartcontextloader.java:108) at Org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.loadContext ( abstractdelegatingsmartcontextloader.java:260) at Org.springframework.test.context.DefaultCacheAwareContextLoaderDelegate.loadContextInternal ( DEFAULTCACHEAWARECONTEXTLOADERDELEGATE.JAVA:63) at Org.springframework.test.context.DefaultCacheAwareContextLoaderDelegate.loadContext ( defaultcacheawarecontextloaderdelegate.java:83) at Org.springfraMework.test.context.DefaultTestContext.getApplicationContext (defaulttestcontext.java:74) at Org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies ( dependencyinjectiontestexecutionlistener.java:116) at Org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance ( dependencyinjectiontestexecutionlistener.java:82) at Org.springframework.test.context.TestContextManager.prepareTestInstance (testcontextmanager.java:212) at Org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest (springjunit4classrunner.java:199) at Org.springframework.test.context.junit4.springjunit4classrunner$1.runreflectivecall ( springjunit4classrunner.java:251) at Org.junit.internal.runners.model.ReflectiveCallable.run ( REFLECTIVECALLABLE.JAVA:12) at Org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock ( springjunit4classrunner.java:253) at Org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChILD (springjunit4classrunner.java:216) at Org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild (springjunit4classrunner.java:82) at Org.junit.runners.parentrunner$3.run (parentrunner.java:290) at Org.junit.runners.parentrunner$1.schedule ( parentrunner.java:71) at Org.junit.runners.ParentRunner.runChildren (parentrunner.java:288) at org.junit.runners.parentrunner.access$000 (parentrunner.java:58) at Org.junit.runners.parentrunner$2.evaluate ( parentrunner.java:268) at Org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate ( RUNBEFORETESTCLASSCALLBACKS.JAVA:60) at Org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate ( runaftertestclasscallbacks.java:67) at Org.junit.runners.ParentRunner.run (parentrunner.java:363) at Org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run (springjunit4classrunner.java:162) at Org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run (junit4testreference.java:50) at ORG.ECLIPSE.JDt.internal.junit.runner.TestExecution.run (testexecution.java:38) at Org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests (remotetestrunner.java:467) at Org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests (remotetestrunner.java:683) at Org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run (remotetestrunner.java:390) at Org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main (remotetestrunner.java:197) caused by: Org.springframework.beans.factory.BeanDefinitionStoreException:Factory method [Public Org.jbpm.api.ProcessEngine Org.jbpm.pvm.internal.processengine.SpringHelper.createProcessEngine ()] threw exception; Nested exception is Java.lang.noclassdeffounderror:org/hibernate/impl/sessionimplat Org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate ( simpleinstantiationstrategy.java:188) at Org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod ( constructorresolver.java:590) ... Morecaused By:java.lanG.noclassdeffounderror:org/hibernate/impl/sessionimplat Org.jbpm.pvm.internal.wire.descriptor.HibernateSessionDescriptor.getType (hibernatesessiondescriptor.java:95) at Org.jbpm.pvm.internal.wire.WireDefinition.addDescriptor (wiredefinition.java:88) at Org.jbpm.pvm.internal.wire.xml.WireParser.parseDocumentElement (wireparser.java:208) at Org.jbpm.pvm.internal.cfg.ConfigurationParser.parseDocument (configurationparser.java:112) at Org.jbpm.pvm.internal.xml.Parser.execute (parser.java:432) at Org.jbpm.pvm.internal.xml.Parse.execute (Parse.java : 158) at Org.jbpm.pvm.internal.cfg.ConfigurationParser.parseDocument (configurationparser.java:86) at Org.jbpm.pvm.internal.xml.Parser.execute (parser.java:432) at Org.jbpm.pvm.internal.xml.Parse.execute (Parse.java : 158) at Org.jbpm.pvm.internal.cfg.ConfigurationImpl.parse (configurationimpl.java:137) at Org.jbpm.pvm.internal.cfg.ConfigurationImpl.setResource (configurationimpl.java:116) at Org.jbpm.pvm.internal.processengine.SpringHelper.createProcessEngine (springhelpER.JAVA:50) at Sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at Sun.reflect.NativeMethodAccessorImpl.invoke (nativemethodaccessorimpl.java:57) at Sun.reflect.DelegatingMethodAccessorImpl.invoke (delegatingmethodaccessorimpl.java:43) at Java.lang.reflect.Method.invoke (method.java:606) at Org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate ( simpleinstantiationstrategy.java:166) ... morecaused By:java.lang.ClassNotFoundException:org.hibernate.impl.SessionImplat Java.net.urlclassloader$1.run ( urlclassloader.java:366) at Java.net.urlclassloader$1.run (urlclassloader.java:355) at Java.security.AccessController.doPrivileged (Native Method) at Java.net.URLClassLoader.findClass ( urlclassloader.java:354) at Java.lang.ClassLoader.loadClass (classloader.java:425) at sun.misc.launcher$ Appclassloader.loadclass (launcher.java:308) at Java.lang.ClassLoader.loadClass (classloader.java:358) ... More2015-09-20 23:02:58 [main] ERROR Org.springframework.test.context.TestContextManager-caught exception while allowing Testexecutionlistener [org.springframewor[email protected]38beb946] to Prepare test instance [[email protected]]java.lang.illegalstateexception:failed to load Applicationcontextat Org.springframework.test.context.DefaultCacheAwareContextLoaderDelegate.loadContext ( defaultcacheawarecontextloaderdelegate.java:91) at Org.springframework.test.context.DefaultTestContext.getApplicationContext (defaulttestcontext.java:74) at Org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies ( dependencyinjectiontestexecutionlistener.java:116) at Org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance ( dependencyinjectiontestexecutionlistener.java:82) at Org.springframework.test.context.TestContextManager.prepareTestInstance (testcontextmanager.java:212) at Org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest (springjunit4classrunner.java:199) at Org.sprIngframework.test.context.junit4.springjunit4classrunner$1.runreflectivecall (SpringJUnit4ClassRunner.java:251) At Org.junit.internal.runners.model.ReflectiveCallable.run (Reflectivecallable.java:12) at Org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock (springjunit4classrunner.java:253) At Org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild (springjunit4classrunner.java:216) at Org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild (springjunit4classrunner.java:82) at Org.junit.runners.parentrunner$3.run (parentrunner.java:290) at Org.junit.runners.parentrunner$1.schedule ( parentrunner.java:71) at Org.junit.runners.ParentRunner.runChildren (parentrunner.java:288) at org.junit.runners.parentrunner.access$000 (parentrunner.java:58) at Org.junit.runners.parentrunner$2.evaluate ( parentrunner.java:268) at Org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate ( RUNBEFORETESTCLASSCALLBACKS.JAVA:60) at Org.springframewOrk.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate (runaftertestclasscallbacks.java:67) at Org.junit.runners.ParentRunner.run (parentrunner.java:363) at Org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run (springjunit4classrunner.java:162) at Org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run (JUNIT4TESTREFERENCE.JAVA:50) at Org.eclipse.jdt.internal.junit.runner.TestExecution.run (testexecution.java:38) at Org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests (remotetestrunner.java:467) at Org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests (remotetestrunner.java:683) at Org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run (remotetestrunner.java:390) at Org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main (remotetestrunner.java:197) caused by: Org.springframework.beans.factory.BeanCreationException:Error creating Bean with Name ' Processengine ' defined in class Path resource [Applicationcontext.xml]: Instantiation of beans Failed Nested exception is Org.springframework.beans.factory.BeanDefinitionStoreException:Factory method [public Org.jbpm.api.ProcessEngine Org.jbpm.pvm.internal.processengine.SpringHelper.createProcessEngine ()] threw exception Nested exception is Java.lang.noclassdeffounderror:org/hibernate/impl/sessionimplat Org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod ( constructorresolver.java:601) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod ( abstractautowirecapablebeanfactory.java:1113) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance ( abstractautowirecapablebeanfactory.java:1008) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean ( abstractautowirecapablebeanfactory.java:505) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean ( Abstractautowirecapablebeanfactory.java:476) at Org.springframework.beans.factory.support.abstractbeanfactory$1.getobject (AbstractBeanFactory.java : 302) at Org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton ( defaultsingletonbeanregistry.java:229) at Org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (abstractbeanfactory.java:298) at Org.springframework.beans.factory.support.AbstractBeanFactory.getBean (abstractbeanfactory.java:193) at Org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons ( defaultlistablebeanfactory.java:725) at Org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization ( abstractapplicationcontext.java:757) at Org.springframework.context.support.AbstractApplicationContext.refresh ( abstractapplicationcontext.java:480) at Org.springframework.test.context.support.AbstractGenericContextLoader.loadContext ( abstractgenericcontextloader.java:125) at Org.springframework.test.context.support.AbstractGeNericcontextloader.loadcontext (abstractgenericcontextloader.java:60) at Org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.delegateLoading ( abstractdelegatingsmartcontextloader.java:108) at Org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.loadContext ( abstractdelegatingsmartcontextloader.java:260) at Org.springframework.test.context.DefaultCacheAwareContextLoaderDelegate.loadContextInternal ( DEFAULTCACHEAWARECONTEXTLOADERDELEGATE.JAVA:63) at Org.springframework.test.context.DefaultCacheAwareContextLoaderDelegate.loadContext ( defaultcacheawarecontextloaderdelegate.java:83) ... Morecaused By:org.springframework.beans.factory.BeanDefinitionStoreException:Factory method [public Org.jbpm.api.ProcessEngine Org.jbpm.pvm.internal.processengine.SpringHelper.createProcessEngine ()] threw exception Nested exception is Java.lang.noclassdeffounderror:org/hibernate/impl/sessionimplat Org.springframework.beans.factory.support.SimpleInstantiationStrAtegy.instantiate (simpleinstantiationstrategy.java:188) at Org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod ( constructorresolver.java:590) ... Morecaused By:java.lang.noclassdeffounderror:org/hibernate/impl/sessionimplat Org.jbpm.pvm.internal.wire.descriptor.HibernateSessionDescriptor.getType (hibernatesessiondescriptor.java:95) at Org.jbpm.pvm.internal.wire.WireDefinition.addDescriptor (wiredefinition.java:88) at Org.jbpm.pvm.internal.wire.xml.WireParser.parseDocumentElement (wireparser.java:208) at Org.jbpm.pvm.internal.cfg.ConfigurationParser.parseDocument (configurationparser.java:112) at Org.jbpm.pvm.internal.xml.Parser.execute (parser.java:432) at Org.jbpm.pvm.internal.xml.Parse.execute (Parse.java : 158) at Org.jbpm.pvm.internal.cfg.ConfigurationParser.parseDocument (configurationparser.java:86) at Org.jbpm.pvm.internal.xml.Parser.execute (parser.java:432) at Org.jbpm.pvm.internal.xml.Parse.execute (Parse.java : 158) at Org.jbpm.pvm.internal.cfg.ConfiguratIonimpl.parse (configurationimpl.java:137) at Org.jbpm.pvm.internal.cfg.ConfigurationImpl.setResource ( configurationimpl.java:116) at Org.jbpm.pvm.internal.processengine.SpringHelper.createProcessEngine ( SPRINGHELPER.JAVA:50) at Sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at Sun.reflect.NativeMethodAccessorImpl.invoke (nativemethodaccessorimpl.java:57) at Sun.reflect.DelegatingMethodAccessorImpl.invoke (delegatingmethodaccessorimpl.java:43) at Java.lang.reflect.Method.invoke (method.java:606) at Org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate ( simpleinstantiationstrategy.java:166) ... morecaused By:java.lang.ClassNotFoundException:org.hibernate.impl.SessionImplat Java.net.urlclassloader$1.run ( urlclassloader.java:366) at Java.net.urlclassloader$1.run (urlclassloader.java:355) at Java.security.AccessController.doPrivileged (Native Method) at Java.net.URLClassLoader.findClass ( urlclassloader.java:354) at Java.lang.ClassLoader.loadClass (classloader.java:425) at Sun.misc.launcher$appclassloader.loadclass (launcher.java:308) at Java.lang.ClassLoader.loadClass ( classloader.java:358) ... More
2. Cause of error
3. Solutions
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
caused By:java.lang.ClassNotFoundException:org.hibernate.impl.SessionImpl