5 Replies Latest reply on Nov 14, 2007 7:45 AM by Ronald van Kuijk

    org.hibernate.MappingNotFoundException

    Javit Gellaw Newbie

      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