jbpm4.4 得不到流程引擎 求解啊 大牛们
zx6863669
2013-11-18
得到Configuration.getProcessEngine()时候就报错,
org.jbpm.api.JbpmException: couldn't instantiate hibernate configuration class org.hibernate.cfg.Configuration at org.jbpm.pvm.internal.wire.descriptor.HibernateConfigurationDescriptor.construct(HibernateConfigurationDescriptor.java:63) at org.jbpm.pvm.internal.wire.WireContext.construct(WireContext.java:487) at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:466) at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:455) at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:429) at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:339) at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:704) at org.jbpm.pvm.internal.wire.descriptor.HibernateSessionFactoryDescriptor.construct(HibernateSessionFactoryDescriptor.java:55) at org.jbpm.pvm.internal.wire.WireContext.construct(WireContext.java:487) at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:466) at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:455) at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:429) at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:339) at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:704) at org.jbpm.pvm.internal.env.BasicEnvironment.get(BasicEnvironment.java:154) at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:711) at org.jbpm.pvm.internal.env.BasicEnvironment.get(BasicEnvironment.java:132) at org.jbpm.pvm.internal.env.BasicEnvironment.get(BasicEnvironment.java:123) at org.jbpm.pvm.internal.wire.descriptor.HibernateSessionDescriptor.construct(HibernateSessionDescriptor.java:63) at org.jbpm.pvm.internal.wire.WireContext.construct(WireContext.java:487) at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:466) at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:455) at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:429) at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:339) at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:704) at org.jbpm.pvm.internal.env.BasicEnvironment.get(BasicEnvironment.java:132) at org.jbpm.pvm.internal.env.BasicEnvironment.get(BasicEnvironment.java:123) at org.jbpm.pvm.internal.env.EnvironmentImpl.getFromCurrent(EnvironmentImpl.java:207) at org.jbpm.pvm.internal.env.EnvironmentImpl.getFromCurrent(EnvironmentImpl.java:196) at org.jbpm.pvm.internal.cmd.CheckDbCmd.execute(CheckDbCmd.java:44) at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42) at org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(StandardTransactionInterceptor.java:50) at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.executeInNewEnvironment(EnvironmentInterceptor.java:53) at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:40) at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:56) at org.jbpm.pvm.internal.svc.SkipInterceptor.execute(SkipInterceptor.java:43) at org.jbpm.pvm.internal.processengine.ProcessEngineImpl.checkDb(ProcessEngineImpl.java:152) at org.jbpm.pvm.internal.processengine.ProcessEngineImpl.<init>(ProcessEngineImpl.java:105) at org.jbpm.pvm.internal.cfg.ConfigurationImpl.instantiateProcessEngine(ConfigurationImpl.java:100) at org.jbpm.pvm.internal.cfg.ConfigurationImpl.buildProcessEngine(ConfigurationImpl.java:92) at org.jbpm.api.Configuration.getProcessEngine(Configuration.java:126) at demo.testJunit.testCreateSchema(testJunit.java:14) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) at org.junit.runners.ParentRunner.run(ParentRunner.java:236) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49) 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.jbpm.api.JbpmException: public org.hibernate.cfg.Configuration() threw exception at org.jbpm.pvm.internal.util.ReflectUtil.newInstance(ReflectUtil.java:141) at org.jbpm.pvm.internal.util.ReflectUtil.newInstance(ReflectUtil.java:113) at org.jbpm.pvm.internal.wire.descriptor.HibernateConfigurationDescriptor.construct(HibernateConfigurationDescriptor.java:61) ... 63 more Caused by: java.lang.ExceptionInInitializerError at org.hibernate.cfg.Configuration.reset(Configuration.java:201) at org.hibernate.cfg.Configuration.<init>(Configuration.java:220) at org.hibernate.cfg.Configuration.<init>(Configuration.java:224) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.jbpm.pvm.internal.util.ReflectUtil.newInstance(ReflectUtil.java:132) ... 65 more Caused by: java.lang.NullPointerException at org.hibernate.util.ConfigHelper.getResourceAsStream(ConfigHelper.java:167) at org.hibernate.cfg.Environment.<clinit>(Environment.java:558) ... 73 more 这是什么原因啊 求解释 |
|
bigsurge
2014-01-03
couldn't instantiate hibernate configuration class org.hibernate.cfg.Configuration
错误很明显啊,没有jbpm.hibernate.cfg.xml文件 |