2 Replies Latest reply on Dec 15, 2005 7:19 AM by fabricio.nogueira

    Problem deploying my own Bpel process

    fabricio.nogueira

      Hello all,

      I want to deploy a very simple process in jbpm Bpel. I could configure and test helloworld example. Now, I have a web service (in my localhost using axis) that only receives a string and replies it with a gretting message. I modelled this process using JDeveloper from Oracle due to facility. This process receives the string and call the web service to get the gretting message.

      My bpel process is this:

      <!--
      /////////////////////////////////////////////////////////////////////////////////////////////
      // Oracle JDeveloper BPEL Designer
      //
      // Created: Thu Dec 08 22:17:32 BRST 2005
      // Author: Fabricio
      // Purpose: Synchronous BPEL Process
      /////////////////////////////////////////////////////////////////////////////////////////////
      -->
      <process name="myEcho" targetNamespace="http://xmlns.oracle.com/myEcho" xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20" xmlns:ns1="http://localhost:8081/axis/myEcho.jws" xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap" xmlns:bpelx="http://schemas.oracle.com/bpel/extension" xmlns:client="http://xmlns.oracle.com/myEcho" xmlns:ora="http://schemas.oracle.com/xpath/extension" xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"><!-- ================================================================= --><!-- PARTNERLINKS --><!-- List of services participating in this BPEL process --><!-- ================================================================= -->
      <!--
      The 'client' role represents the requester of this service. It is
      used for callback. The location and correlation information associated
      with the client role are automatically set using WS-Addressing.
      -->


      <!-- ================================================================= --><!-- VARIABLES --><!-- List of messages and XML documents used within this BPEL process --><!-- ================================================================= -->
      <!-- Reference to the message passed as input during initiation -->
      <!--
      Reference to the message that will be returned to the requester
      -->



      <!-- ================================================================= --><!-- ORCHESTRATION LOGIC --><!-- Set of activities coordinating the flow of messages across the --><!-- services integrated within this business process --><!-- ================================================================= -->
      <!-- Receive input from requestor.
      Note: This maps to operation defined in myEcho.wsdl
      -->
      <!-- Generate reply to synchronous request -->





















      And the wsdl for this process is:

      <?xml version="1.0" encoding="UTF-8"?>
      <definitions name="myEcho"
      targetNamespace="http://xmlns.oracle.com/myEcho"
      xmlns="http://schemas.xmlsoap.org/wsdl/"
      xmlns:client="http://xmlns.oracle.com/myEcho"
      xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/">

      <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      TYPE DEFINITION - List of services participating in this BPEL process
      The default output of the BPEL designer uses strings as input and
      output to the BPEL Process. But you can define or import any XML
      Schema type and us them as part of the message types.
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->



















      <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      MESSAGE TYPE DEFINITION - Definition of the message types used as
      part of the port type defintions
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->







      <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      PORT TYPE DEFINITION - A port type groups a set of operations into
      a logical service unit.
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->

      <!-- portType implemented by the myEcho BPEL process -->







      <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      PARTNER LINK TYPE DEFINITION
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
      <plnk:partnerLinkType name="myEcho">
      <plnk:role name="myEchoProvider">
      <plnk:portType name="client:myEcho"/>
      </plnk:role>
      </plnk:partnerLinkType>



      I set build.properties, hibernate.properties and build.xml to keep up with my configuration.After that I could run the command "ant pack-definition" without problems, But when I need to run the next command "ant deploy-definition". I'm getting the following error:

      [deploypar] 20:55:23,798 DEBUG BpelReader : upgraded bpel document: myEcho.bpel
      [deploypar] 20:55:23,808 ERROR ProblemCollector : myEcho.bpel bpel process is invalid.
      [deploypar] org.jbpm.bpel.xml.BpelException: message type ns1:echoRequest not found [/process/variables/variable[3]]
      [deploypar] at org.jbpm.bpel.xml.BpelReader.getMessageTypeInfo(BpelReader.java:620)
      [deploypar] at org.jbpm.bpel.xml.BpelReader.getTypeInfo(BpelReader.java:597)
      [deploypar] at org.jbpm.bpel.xml.BpelReader.readVariable(BpelReader.java:580)
      [deploypar] at org.jbpm.bpel.xml.BpelReader.readVariables(BpelReader.java:561)
      [deploypar] at org.jbpm.bpel.xml.BpelReader.readScope(BpelReader.java:404)
      [deploypar] at org.jbpm.bpel.xml.BpelReader.read(BpelReader.java:206)
      [deploypar] at org.jbpm.bpel.xml.BpelReader.read(BpelReader.java:162)
      [deploypar] at org.jbpm.bpel.par.BpelArchiveParser.readFromArchive(BpelArchiveParser.java:28)
      [deploypar] at org.jbpm.jpdl.par.ProcessArchive.parseProcessDefinition(ProcessArchive.java:46)
      [deploypar] at org.jbpm.graph.def.ProcessDefinition.parseParZipInputStream(ProcessDefinition.java:154)
      [deploypar] at org.jbpm.jpdl.par.ProcessArchiveDeployer.deployZipInputStream(ProcessArchiveDeployer.java:46)
      [deploypar] at org.jbpm.ant.DeployParTask.deploy(DeployParTask.java:69)
      [deploypar] at org.jbpm.ant.DeployParTask.execute(DeployParTask.java:57)
      [deploypar] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
      [deploypar] at org.apache.tools.ant.Task.perform(Task.java:364)
      [deploypar] at org.apache.tools.ant.Target.execute(Target.java:341)
      [deploypar] at org.apache.tools.ant.Target.performTasks(Target.java:369)
      [deploypar] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
      [deploypar] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
      [deploypar] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
      [deploypar] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
      [deploypar] at org.apache.tools.ant.Main.runBuild(Main.java:668)
      [deploypar] at org.apache.tools.ant.Main.startAnt(Main.java:187)
      [deploypar] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
      [deploypar] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
      [deploypar] 20:55:23,933 DEBUG ProcessArchiveDeployer : starting transaction to deploy process BpelDefinition(myEcho)
      [deploypar] 20:55:24,840 DEBUG ProcessArchiveDeployer : flushing...
      [deploypar] 20:55:25,265 DEBUG ProcessArchiveDeployer : committing transaction to deploy process BpelDefinition(myEcho)

      I can't understand why that message " message type ns1:echoRequest not found [/process/variables/variable[3]]" is being showed.

      Could you help me to understand it please?