Problem during deploying my own bpel process in jbpm bpel (B
fabricio.nogueira Dec 14, 2005 9:03 PMHello 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: Fasilva // 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> <partnerLink name="client" partnerLinkType="client:myEcho" myRole="myEchoProvider"/> <partnerLink myRole="myEcho_Role" name="myEcho" partnerRole="myEcho_Role" partnerLinkType="ns1:myEcho_PL"/> </partnerLinks> <variables> <variable name="inputVariable" messageType="client:myEchoRequestMessage"/> <variable name="outputVariable" messageType="client:myEchoResponseMessage"/> <variable name="Invoke_1_echo_InputVariable" messageType="ns1:echoRequest"/> <variable name="Invoke_1_echo_OutputVariable" messageType="ns1:echoResponse"/> </variables> <sequence name="main"> <receive name="receiveInput" partnerLink="client" portType="client:myEcho" operation="process" variable="inputVariable" createInstance="yes"/> <scope name="Scope_1"> <sequence name="Sequence_1"> <assign name="InEcho"> <copy> <from variable="inputVariable" part="payload" query="/client:myEchoProcessRequest/client:input"/> <to variable="Invoke_1_echo_InputVariable" part="s"/> </copy> </assign> <invoke name="myEcho" partnerLink="myEcho" portType="ns1:myEcho" operation="echo" inputVariable="Invoke_1_echo_InputVariable" outputVariable="Invoke_1_echo_OutputVariable"/> <assign name="EchoOut"> <copy> <from variable="Invoke_1_echo_OutputVariable" part="echoReturn"/> <to variable="outputVariable" part="payload" query="/client:myEchoProcessResponse/client:result"/> </copy> </assign> </sequence> </scope> <reply name="replyOutput" partnerLink="client" portType="client:myEcho" operation="process" variable="outputVariable"/> </sequence> </process>
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/"> <types> <schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://xmlns.oracle.com/myEcho" xmlns="http://www.w3.org/2001/XMLSchema"> <element name="myEchoProcessRequest"> <complexType> <sequence> <element name="input" type="string"/> </sequence> </complexType> </element> <element name="myEchoProcessResponse"> <complexType> <sequence> <element name="result" type="string"/> </sequence> </complexType> </element> </schema> </types> <message name="myEchoRequestMessage"> <part name="payload" element="client:myEchoProcessRequest"/> </message> <message name="myEchoResponseMessage"> <part name="payload" element="client:myEchoProcessResponse"/> </message> <portType name="myEcho"> <operation name="process"> <input message="client:myEchoRequestMessage" /> <output message="client:myEchoResponseMessage"/> </operation> </portType> <plnk:partnerLinkType name="myEcho"> <plnk:role name="myEchoProvider"> <plnk:portType name="client:myEcho"/> </plnk:role> </plnk:partnerLinkType> </definitions>
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?