首页 > 代码库 > jbpm开发指南例子中helloworld的helloWorld.xml抛错问题(连个例子都跑不起
jbpm开发指南例子中helloworld的helloWorld.xml抛错问题(连个例子都跑不起
jbpm开发指南例子中helloworld的helloWorld.xml抛错问题(连个例子都跑不起
我按照JBPM开发指南上的例子把
// ProcessDefinition processDefinition = ProcessDefinition.parseXmlString(
// "<process-definition>" +
// " <start-state>" +
// " <transition to=‘s‘ />" +
// " </start-state>" +
// " <state name=‘s‘>" +
// " <transition to=‘end‘ />" +
// " </state>" +
// " <end-state name=‘end‘ />" +
// "</process-definition>"
// );
变成
ProcessDefinition processDefinition = ProcessDefinition.parseXmlResource("helloWorld.xml");
然后用ultraedit造了一个helloWorld.xml文件,内容如下
<?xml version="1.0" encoding="UTF-8"?>
<process-definition xmlns="urn:jbpm.org:jpdl-3.1" name="HelloWorld">
<start-state>
<transition to=‘s‘/>
</start-state>
<state name=‘s‘>
<transition to=‘end‘/>
</state>
<end-state name=‘end‘/>
</process-definition>
可是运行时抛:
Nested exception:
java.net.MalformedURLException
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at org.dom4j.io.SAXReader.read(SAXReader.java:465)
at org.jbpm.jpdl.xml.JpdlParser.parse(JpdlParser.java:57)
at org.jbpm.jpdl.xml.JpdlXmlReader.readProcessDefinition(JpdlXmlReader.java:138)
at org.jbpm.graph.def.ProcessDefinition.parseXmlInputStream(ProcessDefinition.java:172)
at org.jbpm.graph.def.ProcessDefinition.parseXmlResource(ProcessDefinition.java:153)
at org.jbpm.tutorial.helloworld.HelloWorldTest.testHelloWorldProcess(HelloWorldTest.java:51)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
- 别用UltraEdit,直接用Eclipse创建一个helloWorld.xml应该就可以了
- -
- 用juit 来做测试就行了
- 老兄,我搭建的JBPM3.2.2總提示Login failed. Invalid user name or password. 它根本沒有訪問數據庫(SQL Server),這就是配置有問題,具體要什么配置?配置哪些文件(最好傳一份給我wwzh81@21cn.com)謝謝
jbpm开发指南例子中helloworld的helloWorld.xml抛错问题(连个例子都跑不起