2 u013142343 u013142343 于 2013.12.13 17:20 提问

JBPM4发布流程定义时遇到问题

最近在根据family168的视频在自学JBPM4,可是在进行流程定义发布测试时遇到以下问题:
16:37:25,829 FIN | [TransactionBinding] use default user-transaction: [UserTransaction]
16:37:25,830 FIN | [TransactionBinding] get transaction-manager from hibernate configuration: [null]
16:37:25,830 FIN | [TransactionBinding] use default transaction-manager: [java:/TransactionManager]
16:37:25,865 FIN | [ConfigurationImpl] jndi name java:/ProcessEngine is not bound
16:37:25,869 FIN | [WireContext] eagerly initializing org.jbpm.pvm.internal.id.DatabaseIdComposer
16:37:25,871 FIN | [WireContext] eagerly initializing org.jbpm.pvm.internal.jobexecutor.JobExecutor
16:37:25,896 FIN | [ProcessEngineImpl] publishing jBPM ProcessEngine in jndi at java:/ProcessEngine
16:37:25,896 INF | [DispatcherThread] starting DispatcherThread

EXCEPTION

16:37:25,897 SEV | [DispatcherThread] exception in job executor thread. waiting 5000 milliseconds
org.jbpm.api.JbpmException: couldn't lookup 'UserTransaction' from jndi: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
at org.jbpm.pvm.internal.tx.JtaTransaction.lookupFromJndi(JtaTransaction.java:138)
at org.jbpm.pvm.internal.tx.JtaTransaction.lookupJeeUserTransaction(JtaTransaction.java:117)
at org.jbpm.pvm.internal.tx.JtaRetryInterceptor.execute(JtaRetryInterceptor.java:42)
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.SkipInterceptor.execute(SkipInterceptor.java:43)
at org.jbpm.pvm.internal.jobexecutor.DispatcherThread.acquireJobs(DispatcherThread.java:126)
at org.jbpm.pvm.internal.jobexecutor.DispatcherThread.run(DispatcherThread.java:67)
Caused by: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.getURLOrDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.lookup(Unknown Source)
at org.jbpm.pvm.internal.tx.JtaTransaction.lookupFromJndi(JtaTransaction.java:136)
... 7 more

EXCEPTION

我用的是oracle数据库,测试程序如下:
public class TestJbpm extends TestCase {
ProcessEngine processEngine;

public void test() {
    //processEngine = Configuration.getProcessEngine();
     processEngine = new Configuration().buildProcessEngine();  
}

}
使用junit测试的,因为我是新手,所以这个问题我不知道该怎么下手,请了解这方面的高手指教一下。

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!