ode-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From patrosk <sunita_pa...@rediffmail.com>
Subject Re: problem in delpoying BPEL service unit on ODE-JBI, servicemix
Date Mon, 17 Mar 2008 09:16:11 GMT

i took the wsdl as it is, that i got once it deployed on ODE WAR. Only i
changed the <soap:address location="http://localhost:8080/BpelServiceSOAP"/>
from <soap:address
location="http://localhost:8080/ode/processes/BpelServiceSOAP"/> to
<soap:address location="http://localhost:8080/BpelServiceSOAP"/>.

here is my BpelService.wsdl,
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions name="BpelService"
targetNamespace="http://www.example.org/BpelService/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://www.example.org/BpelService/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <wsdl:types>
    <xsd:schema targetNamespace="http://www.example.org/BpelService/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">

      
      <xsd:element name="outputResponse" type="xsd:string" /> 
      <xsd:element name="inputRequest" type="tns:AssignTask"/>
      <xsd:complexType name="AssignTask">
      	<xsd:sequence>
      		<xsd:element name="s1" type="xsd:string"></xsd:element>
      		<xsd:element name="s2" type="xsd:string"></xsd:element>
      	</xsd:sequence>
      </xsd:complexType>
      
    </xsd:schema>
  </wsdl:types>
  <wsdl:message name="outputResponse">
    <wsdl:part element="tns:outputResponse" name="outputResponse" />
  </wsdl:message>
  <wsdl:message name="inputRequest">
    <wsdl:part element="tns:inputRequest" name="inputRequest"/>
  </wsdl:message>
  <wsdl:portType name="BpelService">
    <wsdl:operation name="submitjob">
      <wsdl:input message="tns:inputRequest"/>
      <wsdl:output message="tns:outputResponse"/>
    </wsdl:operation>
  </wsdl:portType>
 <wsdl:binding name="BpelServiceSOAP" type="tns:BpelService">
    <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="submitjob">
      <soap:operation
soapAction="http://www.example.org/BpelService/submitjob"/>
      <wsdl:input>
        <soap:body use="literal" parts="inputRequest "/>
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" parts="outputResponse "/>
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="BpelService">
    <wsdl:port binding="tns:BpelServiceSOAP" name="BpelServiceSOAP">
      <soap:address location="http://localhost:8080/BpelServiceSOAP"/>
    </wsdl:port>
  </wsdl:service>
  <plnk:partnerLinkType name="ConsumerBpelService">
     <plnk:role name="ConsumerBpelService" portType="tns:BpelService"/>
  </plnk:partnerLinkType>
</wsdl:definitions>

and here is my BpelService.bpel,

<?xml version="1.0" encoding="UTF-8"?>
<!--
BPEL Process Definition
Edited using ActiveBPEL(tm) Designer Version 4.0.0
(http://www.active-endpoints.com)
-->
<bpel:process
xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
xmlns:ext="http://www.activebpel.org/2006/09/bpel/extension/query_handling"
xmlns:ns1="http://www.example.org/BpelService/"
xmlns:ns2="http://www.example.org/SimpleService/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"
ext:createTargetXPath="yes" name="BpelService" suppressJoinFailure="yes"
targetNamespace="http://BpelService">
   <bpel:extensions>
      <bpel:extension mustUnderstand="yes"
namespace="http://www.activebpel.org/2006/09/bpel/extension/query_handling"/>
   </bpel:extensions>
   <bpel:import importType="http://schemas.xmlsoap.org/wsdl/"
location="BpelService.wsdl"
namespace="http://www.example.org/BpelService/"/>
   <bpel:import importType="http://schemas.xmlsoap.org/wsdl/"
location="SimpleService.wsdl"
namespace="http://www.example.org/SimpleService/"/>
   <bpel:partnerLinks>
      <bpel:partnerLink myRole="ConsumerBpelService"
name="ConsumerBpelService" partnerLinkType="ns1:ConsumerBpelService"/>
      <bpel:partnerLink name="ProviderSimpleService"
partnerLinkType="ns2:ProviderSimpleService"
partnerRole="ProviderSimpleService"/>
   </bpel:partnerLinks>
   <bpel:variables>
      <bpel:variable messageType="ns1:inputRequest" name="inputRequest"/>
      <bpel:variable messageType="ns1:outputResponse"
name="outputResponse"/>
      <bpel:variable messageType="ns2:concatRequest" name="concatRequest"/>
      <bpel:variable messageType="ns2:concatResponse"
name="concatResponse"/>
      <bpel:variable name="V1" type="ns1:AssignTask"/>
   </bpel:variables>
   <bpel:flow>
      <bpel:links>
         <bpel:link name="L5"/>
         <bpel:link name="L4"/>
         <bpel:link name="L2"/>
         <bpel:link name="L1"/>
         <bpel:link name="L3"/>
      </bpel:links>
      <bpel:assign>
         <bpel:targets>
            <bpel:target linkName="L1"/>
         </bpel:targets>
         <bpel:sources>
            <bpel:source linkName="L5"/>
         </bpel:sources>
         <bpel:copy>
            <bpel:from part="inputRequest" variable="inputRequest"/>
            <bpel:to variable="V1"/>
         </bpel:copy>
      </bpel:assign>
      <bpel:assign>
         <bpel:targets>
            <bpel:target linkName="L3"/>
         </bpel:targets>
         <bpel:sources>
            <bpel:source linkName="L4"/>
         </bpel:sources>
         <bpel:copy>
            <bpel:from part="concatResponse" variable="concatResponse">
               <bpel:query>s3</bpel:query>
            </bpel:from>
            <bpel:to part="outputResponse" variable="outputResponse">
               <bpel:query>.</bpel:query>
            </bpel:to>
         </bpel:copy>
      </bpel:assign>
      <bpel:assign>
         <bpel:targets>
            <bpel:target linkName="L5"/>
         </bpel:targets>
         <bpel:sources>
            <bpel:source linkName="L2"/>
         </bpel:sources>
         <bpel:copy>
            <bpel:from variable="V1"/>
            <bpel:to part="concatRequest" variable="concatRequest"/>
         </bpel:copy>
      </bpel:assign>
      <bpel:receive createInstance="yes" operation="submitjob"
partnerLink="ConsumerBpelService" portType="ns1:BpelService"
variable="inputRequest">
         <bpel:sources>
            <bpel:source linkName="L1"/>
         </bpel:sources>
      </bpel:receive>
      <bpel:reply operation="submitjob" partnerLink="ConsumerBpelService"
portType="ns1:BpelService" variable="outputResponse">
         <bpel:targets>
            <bpel:target linkName="L4"/>
         </bpel:targets>
      </bpel:reply>
      <bpel:invoke inputVariable="concatRequest" operation="concat"
outputVariable="concatResponse" partnerLink="ProviderSimpleService"
portType="ns2:SimpleService">
         <bpel:targets>
            <bpel:target linkName="L2"/>
         </bpel:targets>
         <bpel:sources>
            <bpel:source linkName="L3"/>
         </bpel:sources>
      </bpel:invoke>
   </bpel:flow>
</bpel:process>
Please do let me know, what extra information is needed to figure out.

Thank you..


patrosk wrote:
> 
> Hi, 
> 
> I have a bpel process running, in ODE WAR, hosted on tomcat. 
> I want to deploy the same process, on ODE -JBI on servicemix3.1.1. 
> 
> I have created 2 service units, 1 service unit contains, the .bpel,
> .wsdl's, deploy.xml, i want to deploy the bpel process as http endpoint.
> so i have one more http service unit, which contains only the wsdl, that
> describes the bpel service. 
> 
> package structure, 
> 1. BpelService-process-su.zip(BpelService.wsdl, SimpleService.wsdl,
> BpelService.bpel, deploy.xml) 
> 2.BpelService-http-su.zip(BpelService.wsdl (added smix endpoint here)) 
> 3.meta-inf/jbi.xml 
> So zipped together, the bpel service unit, http service unit and the
> meta-inf/jbi.xml as BpelService-sa.zip and copied to deploy folder of
> servicemix. 
> But i am facing the following deployment issue, 
> 
> INFO  - AutoDeploymentService          - Directory: deploy: Archive
> changed: processing BpelService- 
> sa.zip ... 
> ERROR - OdeServiceUnit                 - Error deploying process described
> by deployment descriptor 
> "E:\servicemix\apache-servicemix-3.1.1-incubating\data\smx\service-assemblies\BpelService-SA\version

> _7\sus\OdeBpelEngine\BpelService-process" for service unit
> "BpelService-process". 
> java.lang.IllegalArgumentException: Directory
> E:\servicemix\apache-servicemix-3.1.1-incubating\data\ 
> smx\service-assemblies\BpelService-SA\version_7\sus\OdeBpelEngine\BpelService-process
> does not conta 
> in a deploy.xml file! 
>         at
> org.apache.ode.store.DeploymentUnitDir.<init>(DeploymentUnitDir.java:103) 
>         at
> org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:163) 
>         at
> org.apache.ode.jbi.OdeServiceUnit.deploy(OdeServiceUnit.java:62) 
>         at org.apache.ode.jbi.OdeSUManager.deploy(OdeSUManager.java:60) 
>         at
> org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentSer

> vice.java:527) 
>         at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentSer

> vice.java:335) 
>         at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeployment

> Service.java:646) 
>         at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.access$200(AutoDeploymentServic

> e.java:62) 
>         at
> org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.jav

> a:609) 
>         at java.util.TimerThread.mainLoop(Timer.java:512) 
>         at java.util.TimerThread.run(Timer.java:462) 
> ERROR - OdeSUManager                   - Error deploying service unit
> "BpelService-process". 
> INFO  - DeploymentService              - UnDeployed ServiceUnit
> BpelService-process from Component: 
> OdeBpelEngine 
> ERROR - AutoDeploymentService          - Failed to update Service
> Assembly: BpelService-SA 
> java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?> 
> <jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message"
> version="1.0"> 
> <jbi-task-result> 
> <frmwk-task-result> 
> <frmwk-task-result-details> 
> <task-result-details> 
> <task-id>deploy</task-id> 
> <task-result>FAILED</task-result> 
> <message-type>ERROR</message-type> 
> </task-result-details> 
> </frmwk-task-result-details> 
> </frmwk-task-result> 
> <component-task-result
> xmlns="http://java.sun.com/xml/ns/jbi/management-message"> 
>         <component-name>servicemix-http</component-name> 
>         <component-task-result-details> 
>                 <task-result-details> 
>                         <task-id>deploy</task-id> 
>                         <task-result>FAILED</task-result> 
>                         <message-type>ERROR</message-type> 
>                         <task-status-msg> 
> <msg-loc-info> 
> <loc-token/> 
> <loc-message>Unable to find suitable deployer for Service Unit
> 'BpelService-HTTP'</loc-message> 
> </msg-loc-info> 
> </task-status-msg> 
>                 </task-result-details> 
>         </component-task-result-details> 
> </component-task-result> 
> <component-task-result> 
> <component-name>OdeBpelEngine</component-name> 
> <component-task-result-details> 
> <task-result-details> 
> <task-id>deploy</task-id> 
> <task-result>SUCCESS</task-result> 
> <message-type>WARNING</message-type> 
> <task-status-msg> 
> <msg-loc-info> 
> <loc-token/> 
> <loc-message>Unable to parse result string</loc-message> 
> </msg-loc-info> 
> </task-status-msg> 
> <exception-info> 
> <nesting-level>1</nesting-level> 
> <loc-token/> 
> <loc-message/> 
> <stack-trace><![CDATA[java.lang.NullPointerException 
>         at
> org.apache.servicemix.jbi.framework.DeploymentService.getChildElement(DeploymentService.j

> ava:648) 
>         at
> org.apache.servicemix.jbi.framework.DeploymentService.getComponentTaskResult(DeploymentSe

> rvice.java:600) 
>         at
> org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentSer

> vice.java:528) 
>         at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentSer

> vice.java:335) 
>         at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeployment

> Service.java:646) 
>         at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.access$200(AutoDeploymentServic

> e.java:62) 
>         at
> org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.jav

> a:609) 
>         at java.util.TimerThread.mainLoop(Timer.java:512) 
>         at java.util.TimerThread.run(Timer.java:462) 
> ]]></stack-trace> 
> </exception-info> 
> </task-result-details> 
> </component-task-result-details> 
> </component-task-result> 
> </jbi-task-result> 
> </jbi-task> 
> 
> 
> the deploy.xml of Bpel process looks like this, 
> <deploy xmlns="http://www.apache.org/ode/schemas/dd/2007/03" 
>         xmlns:pns="http://BpelService" 
>         xmlns:bs="http://www.example.org/BpelService/" 
>         xmlns:ss="http://www.example.org/SimpleService/"> 
> 
>         <process name="pns:BpelService"> 
>                 <active>true</active> 
>                 <provide partnerLink="ConsumerBpelService"> 
>                         <service name="bs:BpelService"
> port="BpelServiceSOAP"/> 
>                 </provide> 
>                 <invoke partnerLink="ProviderSimpleService"> 
>                         <service name="ss:SimpleService"
> port="SimpleServiceSOAP"/> 
>                 </invoke> 
>         </process> 
>     
> </deploy> 
> Can anyone help me out in figuring out the issue. 
> 
> Thank you. 
> 
> 

-- 
View this message in context: http://www.nabble.com/problem-in-delpoying-BPEL-service-unit-on-ODE-JBI%2C-servicemix-tp16088774p16090878.html
Sent from the Apache Ode User mailing list archive at Nabble.com.


Mime
View raw message