[jboss-user] [JBoss jBPM] - Compliation Error in parsing process definition xml from jav

ssidhanta do-not-reply at jboss.com
Thu Jul 17 02:30:14 EDT 2008


Hi, 

I am stuck with this problem for quite sometime.
I am calling a JBPM process from a java class using the following code: 

JbpmConfiguration jbpmConfiguration = JbpmConfiguration.parseResource("jbpm.cfg.xml");  
	//ProcessDefinition processDefinition=ProcessDefinition.parseXmlResource("simple.par/processdefinition.xml");
    ProcessDefinition processDefinition=ProcessDefinition.parseXmlResource("D:/jbpm-starters-kit-3.1.2/jbpm/src/process.examples/26thJuneProject/processes/simple/processdefinition.xml");

I am getting this compilation error:

org.jbpm.jpdl.JpdlException: [[ERROR] couldn't parse process definition]
	at org.jbpm.jpdl.xml.JpdlXmlReader.readProcessDefinition(JpdlXmlReader.java:163)
	at org.jbpm.graph.def.ProcessDefinition.parseXmlInputStream(ProcessDefinition.java:172)
	at org.jbpm.graph.def.ProcessDefinition.parseXmlResource(ProcessDefinition.java:153)
	at com.sample.CallProcess.testCallProcess(CallProcess.java:16)
	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:585)
	at junit.framework.TestCase.runTest(TestCase.java:154)
	at junit.framework.TestCase.runBare(TestCase.java:127)
	at junit.framework.TestResult$1.protect(TestResult.java:106)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.framework.TestResult.run(TestResult.java:109)
	at junit.framework.TestCase.run(TestCase.java:118)
	at junit.framework.TestSuite.runTest(TestSuite.java:208)
	at junit.framework.TestSuite.run(TestSuite.java:203)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

Please help me solve this problem? 
thanks in anticipation.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4164923#4164923

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4164923



More information about the jboss-user mailing list