[jboss-dev-forums] [Design of JBoss jBPM] - org.hibernate.MappingNotFoundException
javi0704
do-not-reply at jboss.com
Wed Jun 20 08:46:16 EDT 2007
Hi anyone,
i am trying to deploy a simple processDefinition by programmatically. But i got a problem.
My processDefinition looks like this.
<?xml version="1.0" encoding="UTF-8"?><process-definition xmlns="urn:jbpm.org:jpdl-3.1" name="DecisionProcess">
<start-state name="start">
</start-state>
<task-node name="Request">
</task-node>
<task-node name="Checking">
</task-node>
<end-state name="End"/>
</process-definition>
And hier is my Java Code.package com.test;
import org.jbpm.JbpmConfiguration;
import org.jbpm.JbpmContext;
import org.jbpm.graph.def.ProcessDefinition;
public class DeployingTest {
public static void main(String[] args) {
JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance();
ProcessDefinition prd = ProcessDefinition.parseXmlResource("DecisionProcess/processdefinition.xml");
JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
try{
if(jbpmConfiguration!=null){
jbpmContext.deployProcessDefinition(prd);
System.out.println("!!!=== Not Null");
}else{
System.out.println("!!!=== Null");
}
}catch (Exception e) {
// TODO: handle exception
System.err.println("Which error?: " +e);
}finally{
jbpmContext.close();
}
}
}
When i try this i got this Exceptions:
org.hibernate.MappingNotFoundException: resource: org/jbpm/msg/Message.hbm.xml not found
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055997#4055997
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055997
More information about the jboss-dev-forums
mailing list