Hello Alejandro and Jbpm users,

I think I don't know how to deploy this bpel process. I'll try to explain how 
JDeveloper Bpel designer created the files. When I modelled my bpel process I 
noticed that a wsdl file for the web service that I'm calling was generated and 
I didn't put it in my previous bpel-definition.xml file. Now I have my myEcho 
folders structured as:

  | myEcho
  |        hibernate.properties
  |        jndi.properties
  |        log4j.properties
  |        build.properties
  |        build.xml
  |        [definition]
  |                   bpel-definition.xml
  |                   myEcho.bpel
  |                   myEcho.wsdl
  |                   myEcho1.wsdl
  | 

And the files are:

bpel-definition.xml

  | <!-- specifies the location of the process definition -->
  | <bpelDefinition location="myEcho.bpel" xmlns="http://jbpm.org/bpel";
  |   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  |   xsi:schemaLocation="http://jbpm.org/bpel
  |                       http://jbpm.org/bpel/bpel_definition_1_0.xsd";>
  |   
  |   <!-- makes WSDL interface elements available to the process -->
  |   <imports>
  |     <wsdl namespace="http://xmlns.oracle.com/myEcho"; 
location="myEcho.wsdl"/>
  |     <wsdl namespace="http://localhost:8081/axis/myEcho.jws"; 
location="myEcho1.wsdl"/>
  |   </imports>
  |   
  | </bpelDefinition>
  | 

myEcho.bpel file is:


  | <!--
  |   
/////////////////////////////////////////////////////////////////////////////////////////////
 
  |   // 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 -->
  | <!-- List of services participating in this BPEL process -->
  | <!-- ================================================================= -->
  | 
  |   <partnerLinks>
  |     <partnerLink name="client" partnerLinkType="client:myEcho" 
myRole="myEchoProvider"/>
  |     <partnerLink myRole="myEcho_Role" name="myEcho" 
partnerRole="myEcho_Role" partnerLinkType="ns1:myEcho_PL"/>
  |   </partnerLinks>
  | 
  | <!-- ================================================================= -->
  | <!-- VARIABLES -->
  | <!-- List of messages and XML documents used within this BPEL process  -->
  | <!-- ================================================================= -->
  | 
  |   <variables><!-- Reference to the message passed as input during 
initiation -->
  |     <variable name="inputVariable" 
messageType="client:myEchoRequestMessage"/>
  | 
  | <!-- Reference to the message that will be returned to the requester -->
  | 
  |     <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>
  | 
  | <!-- ================================================================= -->
  | <!-- ORCHESTRATION LOGIC -->
  | <!-- Set of activities coordinating the flow of messages across the -->
  | <!-- services integrated within this business process -->
  | <!-- ================================================================= -->
  | 
  |   <sequence name="main">
  | <!-- 
  |      Receive input from requestor. 
  |      Note: This maps to operation defined in myEcho.wsdl
  | -->
  |     <receive name="receiveInput" partnerLink="client" 
portType="client:myEcho" operation="process" variable="inputVariable" 
createInstance="yes"/>
  | 
  |     <!-- Generate reply to synchronous request -->
  | 
  |     <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>
  | 

myEcho.wsdl 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.
  |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
-->   
  |     <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 TYPE DEFINITION - Definition of the message types used as 
  |     part of the port type defintions
  |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
-->      
  |     <message name="myEchoRequestMessage">
  |             <part name="payload" element="client:myEchoProcessRequest"/>
  |     </message>
  |     <message name="myEchoResponseMessage">
  |             <part name="payload" element="client:myEchoProcessResponse"/>
  |     </message>
  | 
  |     <!-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  |     PORT TYPE DEFINITION - A port type groups a set of operations into
  |     a logical service unit.
  |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
-->
  | 
  |     <!-- portType implemented by the myEcho BPEL process -->
  |     <portType name="myEcho">
  |             <operation name="process">
  |                     <input  message="client:myEchoRequestMessage" />
  |                     <output message="client:myEchoResponseMessage"/>
  |             </operation>
  |     </portType>
  | 
  |     <!-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  |     PARTNER LINK TYPE DEFINITION
  |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
--> 
  |     <plnk:partnerLinkType name="myEcho">
  |             <plnk:role name="myEchoProvider">
  |                     <plnk:portType name="client:myEcho"/>
  |             </plnk:role>
  |     </plnk:partnerLinkType>
  | </definitions>
  | 

And now I have this file about the web service wsdl:


  | <definitions
  |     
  |      targetNamespace="http://localhost:8081/axis/myEcho.jws";
  |      xmlns="http://schemas.xmlsoap.org/wsdl/";
  |      xmlns:impl="http://localhost:8081/axis/myEcho.jws";
  |      xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/";
  |      xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/";
  |      xmlns:xsd="http://www.w3.org/2001/XMLSchema";
  |     >
  |     <import namespace="http://localhost:8081/axis/myEcho.jws"; 
location="http://localhost:8081/axis/myEcho.jws?wsdl"/>
  |     <plnk:partnerLinkType name="myEcho_PL">
  |         <plnk:role name="myEcho_Role">
  |             <plnk:portType name="impl:myEcho"/>
  |         </plnk:role>
  |     </plnk:partnerLinkType>
  | </definitions>
  | 

Now, with this new configurarion I run ant pack-definition and the 
myEcho-definition.par is generated ok. And I'm getting a diferent error running 
ant deploy-definition.


  | [deploypar] 23:08:59,152 DEBUG ImportWsdlLocator : upgraded wsdl document: 
myEcho.wsdl
  | [deploypar] 23:08:59,179 INFO  BpelReader : read wsdl definitions: 
myEcho.wsdl
  | [deploypar] 23:08:59,189 DEBUG ImportWsdlLocator : upgraded wsdl document: 
myEcho1.wsdl
  | [deploypar] 23:08:59,263 INFO  BpelReader : read wsdl definitions: 
myEcho1.wsdl
  | [deploypar] 23:08:59,374 DEBUG BpelReader : upgraded bpel document: 
myEcho.bpel
  | [deploypar] 23:08:59,390 ERROR ProblemCollector :  myEcho.bpel bpel process 
is invalid.
  | [deploypar] org.jbpm.bpel.xml.BpelException: both myRole and partnerRole 
are specified, but there is only one role [/process/partnerLinks/partnerLink[2]]
  | [deploypar]     at 
org.jbpm.bpel.xml.BpelReader.readPartnerLink(BpelReader.java:754)
  | [deploypar]     at 
org.jbpm.bpel.xml.BpelReader.readPartnerLinks(BpelReader.java:686)
  | [deploypar]     at 
org.jbpm.bpel.xml.BpelReader.readScope(BpelReader.java:408)
  | [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] 23:08:59,492 DEBUG ProcessArchiveDeployer : starting 
transaction to deploy process BpelDefinition(myEcho)
  | [deploypar] 23:09:00,041 DEBUG ProcessArchiveDeployer : flushing...
  | [deploypar] 23:09:00,172 DEBUG ProcessArchiveDeployer : committing 
transaction to deploy process BpelDefinition(myEcho)
  | 

Maybe I don't know how to make my bpel-definition.xml file. Is it necessary to 
have the myEcho1.wsdl inside it? I really don't know how to deploy this 
process; :-(

Thanks in advance.

Fabrício

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

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


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to