[jboss-user] [JBoss jBPM] - deployment problem

abdenourh do-not-reply at jboss.com
Tue Feb 20 10:17:56 EST 2007


If some one can help me, I have a problem when I try to deploy my process using this code

 public static void main(String[] args){
		
		jbpmConfiguration = JbpmConfiguration.parseResource("hibernate.cfg");  
		ProcessDefinition P = ProcessDefinition.parseXmlResource("simple/processdefinition.xml");
		JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
	    try { 
	      jbpmContext.deployProcessDefinition(P);

	        } finally {
	      jbpmContext.close();
	                  }



I have this error 



xception 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 deploypackage.deploy.main(deploy.java:38)
15:39:50,171 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.msg.wait.timout'
15:39:50,171 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.byte.block.size'
15:39:50,171 [main] DEBUG ObjectFactoryImpl : adding object info 'mail.smtp.host'
15:39:50,171 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.task.instance.factory'
15:39:50,171 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.variable.resolver'
15:39:50,171 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.mail.address.resolver'
15:39:50,171 [main] DEBUG JbpmConfiguration : loading specific configuration...
15:39:50,249 [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 deploypackage.deploy.main(deploy.java:38)
Nested exception: 


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

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



More information about the jboss-user mailing list