Hi,
I'm running Ode into Service Mix, but I'm not able to make the helloworld2
sample working;
When the Ode service Unit is deploying, i obtain this error :
/**************** Stack trace ***********************/
ERROR - BpelC - error: [Bpel11RequiresWsdl] A WSDL
document must be specified for a BPEL4WS 1.1 process.
ERROR - ProcessStoreImpl - Deploy failed; BPEL compilation
errors.
org.apache.ode.bpel.compiler.api.CompilationException: error:
[Bpel11RequiresWsdl] A WSDL document must be specified for a BPEL4WS 1.1
process.
at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:232)
at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:325)
at
org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:125)
at
org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:95)
at
org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:143)
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(DeploymentService.java:527)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:334)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:645)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.access$200(AutoDeploymentService.java:62)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:605)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
ERROR - OdeServiceUnit - Error deploying process described
by deployment descriptor
"C:\apache-servicemix-3.1-incubating\apache-servicemix-3.1-incubating\data\smx\service-assemblies\simpleProcess-sa\version_1\sus\OdeBpelEngine\simpleProcess-bpel-su"
for service unit "simpleProcess-bpel-su".
org.apache.ode.bpel.iapi.ContextException: Deploy failed; BPEL compilation
errors.
at
org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:147)
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(DeploymentService.java:527)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:334)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:645)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.access$200(AutoDeploymentService.java:62)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:605)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Caused by: org.apache.ode.bpel.compiler.api.CompilationException: error:
[Bpel11RequiresWsdl] A WSDL document must be specified for a BPEL4WS 1.1
process.
at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:232)
at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:325)
at
org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:125)
at
org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:95)
at
org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:143)
... 9 more
/**************** End stack trace ***********************/
I simply put the HelloWorld2.wsdl, HelloWorld2.bpel and the deploy.xml in
the same directory,
and told maven to build the service unit.
/****************** Deploy.xml *************************/
<deploy xmlns="http://ode.fivesight.com/schemas/2006/06/27/dd"
xmlns:pns="urn:/HelloWorld2.bpel"
xmlns:sns="urn:/HelloWorld2.wsdl" >
<process name="pns:HelloWorld2">
<active>true</active>
<provide partnerLink="helloPartnerLink">
<service name="sns:HelloService" port="HelloPort"/>
</provide>
</process>
</deploy>
/***************** HelloWorld2.bpel **********************/
<process name="HelloWorld2"
targetNamespace="http://ode/bpel/unit-test"
xmlns:bpws="http://schemas.xmlsoap.org/ws/2004/03/business-process/"
xmlns="http://schemas.xmlsoap.org/ws/2004/03/business-process/"
xmlns:tns="http://ode/bpel/unit-test"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:test="http://ode/bpel/unit-test.wsdl"
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
<import location="HelloWorld2.wsdl"
namespace="http://ode/bpel/unit-test.wsdl"
importType="http://schemas.xmlsoap.org/wsdl/" />
<partnerLinks>
<partnerLink name="helloPartnerLink"
partnerLinkType="test:HelloPartnerLinkType"
myRole="me" />
</partnerLinks>
<variables>
<variable name="myVar" messageType="test:HelloMessage"/>
<variable name="tmpVar" type="xsd:string"/>
</variables>
<sequence>
<receive
name="start"
partnerLink="helloPartnerLink"
portType="test:HelloPortType"
operation="hello"
variable="myVar"
createInstance="yes"/>
<assign name="assign1">
<copy>
<from variable="myVar" part="TestPart"/>
<to variable="tmpVar"/>
</copy>
<copy>
<from>concat($tmpVar,' World')</from>
<to variable="myVar" part="TestPart"/>
</copy>
</assign>
<reply name="end"
partnerLink="helloPartnerLink"
portType="test:HelloPortType"
operation="hello"
variable="myVar"/>
</sequence>
</process>
/******************** HelloWorld2.wsdl **********************/
<?xml version="1.0" encoding="utf-8" ?>
<wsdl:definitions
targetNamespace="http://ode/bpel/unit-test.wsdl"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="http://ode/bpel/unit-test.wsdl"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:bpws="http://schemas.xmlsoap.org/ws/2004/03/business-process/"
xmlns:plnk="http://schemas.xmlsoap.org/ws/2004/03/partner-link/">
<wsdl:message name="HelloMessage">
<wsdl:part name="TestPart" type="xsd:string"/>
</wsdl:message>
<wsdl:portType name="HelloPortType">
<wsdl:operation name="hello">
<wsdl:input message="tns:HelloMessage" name="TestIn"/>
<wsdl:output message="tns:HelloMessage" name="TestOut"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="HelloSoapBinding" type="tns:HelloPortType">
<soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="hello">
<soap:operation soapAction="" style="rpc"/>
<wsdl:input>
<soap:body
namespace="http://ode/bpel/unit-test.wsdl"
use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body
namespace="http://ode/bpel/unit-test.wsdl"
use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="HelloService">
<wsdl:port name="HelloPort" binding="tns:HelloSoapBinding">
<soap:address
location="http://localhost:8080/ode/processes/helloWorld"/>
</wsdl:port>
</wsdl:service>
<plnk:partnerLinkType name="HelloPartnerLinkType">
<plnk:role name="me" portType="tns:HelloPortType"/>
<plnk:role name="you" portType="tns:HelloPortType"/>
</plnk:partnerLinkType>
</wsdl:definitions>
--
View this message in context:
http://www.nabble.com/Ode-ServiceMix---Compile-Error-%3A-Bpel11RequiresWsdl-tf3356644.html#a9335668
Sent from the Apache Ode User mailing list archive at Nabble.com.