3 Replies Latest reply on Oct 25, 2007 4:10 AM by Aldo Lezza

    Error generate-service

    Aldo Lezza Newbie

      Hi,
      I successfully ran the task ant deploy-definition on my project but when I ran ant generate-service I obtain

      [servicegen] - read wsdl definitions: testa.wsdl
      [servicegen] - testa.bpel partner link not found [/process/ns6:sequence/ns7:receive]
      [servicegen] - testa.bpel partner link not found [/process/ns6:sequence/ns8:reply]
      [servicegen] - read bpel process: testa.bpel

      BUILD FAILED
      /home/zazzaz/Tesi_Workflow/jbpm-bpel-1.1.Beta3/examples/common/bpel-build.xml:74: org.jbpm.jpdl.JpdlException: [[ERROR] testa.bpel partner link not found [/process/ns6:sequence/ns7:receive], [ERROR] testa.bpel partner link not found [/process/ns6:sequence/ns8:reply]]

      Is it normal a situation like this (deploy-definition ok, generate-service error)?


        • 1. Re: Error generate-service
          Aldo Lezza Newbie

          Hi,
          I got the same error on another project.
          I found that namespace
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://schemas.xmlsoap.org/ws/2003/03/business-process/
          http://schemas.xmlsoap.org/ws/2003/03/business-process/"
          is vital and moreover that namespace alias with numbers are NOT allowed.

          E.g.
          NO xmlns:ns1="http://j2ee.netbeans.org/wsdl/ControlloAccesso"

          YES xmlns:coac="http://j2ee.netbeans.org/wsdl/ControlloAccesso"

          I hope this helps someone. Bye

          • 2. Re: Error generate-service
            Agustín Gañan Newbie

            Please, post the code or a fragment

            Agus

            • 3. Re: Error generate-service
              Aldo Lezza Newbie

              A correct (I mean with respect with jbpm-bpel implementation) bpel is

              
              <?xml version="1.0" encoding="UTF-8"?>
              <process name="Login" targetNamespace="http://j2ee.netbeans.org/wsdl/Login"
               xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
               xmlns:bpel="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
               xmlns:tns="http://j2ee.netbeans.org/wsdl/Login"
               xmlns:coac="http://j2ee.netbeans.org/wsdl/ControlloAccesso" xmlns:sch="http://xml.netbeans.org/schema/LoginTypes"
               xmlns:xsd="http://www.w3.org/2001/XMLSchema"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xsi:schemaLocation="http://schemas.xmlsoap.org/ws/2003/03/business-process/
               http://schemas.xmlsoap.org/ws/2003/03/business-process/">
              
               <partnerLinks>
              
               <!-- relationship with the ticket issuer -->
               <partnerLink name="rec" partnerLinkType="tns:loginPLT"
               myRole="loginRole" />
              
               <!-- relationship with the ATM -->
               <partnerLink name="ca" partnerLinkType="tns:CAPLT" partnerRole="ProcessRole" />
              
               </partnerLinks>
              
               <variables>
               <!-- ATM connection request -->
               <variable name="lor" messageType="tns:loginoprep" />
               <!-- ticket creation request -->
               <variable name="cao" messageType="coac:ControlloAccessoOperationReply" />
               <!-- ticket number wrapper -->
               <variable name="cai" messageType="coac:ControlloAccessoOperationRequest" />
               <!-- ATM connection flag -->
               <variable name="cr" messageType="tns:loginopreq" />
              
               <variable name="temp" type="sch:Identificato" />
              
               </variables>
              
              
               <sequence>
              
               <!-- receive a connection request -->
               <receive operation="loginop" partnerLink="rec"
               portType="tns:loginPT" variable="cr" createInstance="yes" />
              
               <assign>
              
               <copy>
               <from expression="bpel:getVariableData('cr', 'inRequest')"/>
               <to variable="lor" part="outResponse" query="/outResponse/sch:Esito" />
               </copy>
              
               </assign>
              
               <!-- send the ticket number back to the ATM -->
               <reply operation="loginop" partnerLink="rec"
               portType="tns:loginPT" variable="lor"/>
              
               </sequence>
              
              </process>
              
              


              while this one is not accepted by service generator

              
              <?xml version="1.0" encoding="UTF-8"?>
              <process name="Login" targetNamespace="http://j2ee.netbeans.org/wsdl/Login"
               xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
               xmlns:bpel="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
               xmlns:ns1="http://j2ee.netbeans.org/wsdl/Login"
               xmlns:ns2="http://j2ee.netbeans.org/wsdl/ControlloAccesso" xmlns:ns3="http://xml.netbeans.org/schema/LoginTypes"
               xmlns:xsd="http://www.w3.org/2001/XMLSchema"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xsi:schemaLocation="http://schemas.xmlsoap.org/ws/2003/03/business-process/
               http://schemas.xmlsoap.org/ws/2003/03/business-process/">
              
               <partnerLinks>
              
               <!-- relationship with the ticket issuer -->
               <partnerLink name="rec" partnerLinkType="ns1:loginPLT"
               myRole="loginRole" />
              
               <!-- relationship with the ATM -->
               <partnerLink name="ca" partnerLinkType="ns1:CAPLT" partnerRole="ProcessRole" />
              
               </partnerLinks>
              
               <variables>
               <!-- ATM connection request -->
               <variable name="lor" messageType="ns1:loginoprep" />
               <!-- ticket creation request -->
               <variable name="cao" messageType="ns2:ControlloAccessoOperationReply" />
               <!-- ticket number wrapper -->
               <variable name="cai" messageType="ns2:ControlloAccessoOperationRequest" />
               <!-- ATM connection flag -->
               <variable name="cr" messageType="ns1:loginopreq" />
              
               <variable name="temp" type="ns3:Identificato" />
              
               </variables>
              
              
               <sequence>
              
               <!-- receive a connection request -->
               <receive operation="loginop" partnerLink="rec"
               portType="ns1:loginPT" variable="cr" createInstance="yes" />
              
               <assign>
              
               <copy>
               <from expression="bpel:getVariableData('cr', 'inRequest')"/>
               <to variable="lor" part="outResponse" query="/outResponse/ns3:Esito" />
               </copy>
              
               </assign>
              
               <!-- send the ticket number back to the ATM -->
               <reply operation="loginop" partnerLink="rec"
               portType="ns1:loginPT" variable="lor"/>
              
               </sequence>
              
              </process>
              
              


              ZazzaZ