I have a problem when I try to deploy my process "processdefinition.xml"
when I execute this code
public static void main(String[] args){
jbpmConfiguration = JbpmConfiguration.parseResource("jbpm.cfg.xml");
ProcessDefinition P =
ProcessDefinition.parseXmlResource("simple/processdefinition.xml");
JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
try {
jbpmContext.deployProcessDefinition(P);
} finally {
jbpmContext.close();
}
I have this error message
15:42:05,060 [main] DEBUG JbpmConfiguration : creating jbpm configuration from resource
'jbpm.cfg.xml'
15:42:05,075 [main] DEBUG JbpmConfiguration : loading defaults in jbpm configuration
15:42:05,341 [main] DEBUG ObjectFactoryImpl : adding object info
'default.jbpm.context'
15:42:05,341 [main] DEBUG ObjectFactoryImpl : adding object info
'resource.hibernate.cfg.xml'
15:42:05,341 [main] DEBUG ObjectFactoryImpl : adding object info
'resource.business.calendar'
15:42:05,341 [main] DEBUG ObjectFactoryImpl : adding object info
'resource.default.modules'
15:42:05,341 [main] DEBUG ObjectFactoryImpl : adding object info
'resource.converter'
15:42:05,341 [main] DEBUG ObjectFactoryImpl : adding object info
'resource.action.types'
15:42:05,341 [main] DEBUG ObjectFactoryImpl : adding object info
'resource.node.types'
15:42:05,341 [main] DEBUG ObjectFactoryImpl : adding object info
'resource.parsers'
15:42:05,341 [main] DEBUG ObjectFactoryImpl : adding object info
'resource.varmapping'
15:42:05,341 [main] DEBUG ObjectFactoryImpl : adding object info
'jbpm.msg.wait.timout'
15:42:05,341 [main] DEBUG ObjectFactoryImpl : adding object info
'jbpm.byte.block.size'
15:42:05,341 [main] DEBUG ObjectFactoryImpl : adding object info 'mail.smtp.host'
15:42:05,341 [main] DEBUG ObjectFactoryImpl : adding object info
'jbpm.task.instance.factory'
15:42:05,341 [main] DEBUG ObjectFactoryImpl : adding object info
'jbpm.variable.resolver'
15:42:05,341 [main] DEBUG ObjectFactoryImpl : adding object info
'jbpm.mail.address.resolver'
15:42:05,341 [main] DEBUG JbpmConfiguration : loading specific configuration...
15:42:05,403 [main] INFO JbpmConfiguration : using jbpm configuration resource
'jbpm.cfg.xml'
15:42:05,403 [main] DEBUG JbpmConfiguration : loading defaults in jbpm configuration
15:42:05,419 [main] DEBUG ObjectFactoryImpl : adding object info
'default.jbpm.context'
15:42:05,419 [main] DEBUG ObjectFactoryImpl : adding object info
'resource.hibernate.cfg.xml'
15:42:05,419 [main] DEBUG ObjectFactoryImpl : adding object info
'resource.business.calendar'
15:42:05,419 [main] DEBUG ObjectFactoryImpl : adding object info
'resource.default.modules'
15:42:05,419 [main] DEBUG ObjectFactoryImpl : adding object info
'resource.converter'
15:42:05,419 [main] DEBUG ObjectFactoryImpl : adding object info
'resource.action.types'
15:42:05,419 [main] DEBUG ObjectFactoryImpl : adding object info
'resource.node.types'
15:42:05,419 [main] DEBUG ObjectFactoryImpl : adding object info
'resource.parsers'
15:42:05,419 [main] DEBUG ObjectFactoryImpl : adding object info
'resource.varmapping'
15:42:05,419 [main] DEBUG ObjectFactoryImpl : adding object info
'jbpm.msg.wait.timout'
15:42:05,419 [main] DEBUG ObjectFactoryImpl : adding object info
'jbpm.byte.block.size'
15:42:05,419 [main] DEBUG ObjectFactoryImpl : adding object info 'mail.smtp.host'
15:42:05,419 [main] DEBUG ObjectFactoryImpl : adding object info
'jbpm.task.instance.factory'
15:42:05,419 [main] DEBUG ObjectFactoryImpl : adding object info
'jbpm.variable.resolver'
15:42:05,419 [main] DEBUG ObjectFactoryImpl : adding object info
'jbpm.mail.address.resolver'
15:42:05,435 [main] DEBUG JbpmConfiguration : loading specific configuration...
Exception in thread "main" 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.action.Dep.main(Dep.java:39)
15:42:05,482 [main] ERROR JpdlXmlReader : couldn't parse process definition
org.dom4j.DocumentException: null Nested exception: null
at org.dom4j.io.SAXReader.read(SAXReader.java:484)
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 com.sample.action.Dep.main(Dep.java:39)
Nested exception:
java.net.MalformedURLException
at java.net.URL.(URL.java:601)
at java.net.URL.(URL.java:464)
at java.net.URL.(URL.java:413)
at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.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 com.sample.action.Dep.main(Dep.java:39)
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024288#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...