This content has been marked as final.
Show 3 replies
-
1. Re: Help with Bpel error -
aguizar Sep 30, 2007 8:57 PM (in response to depstei2)"activity not found" means no activity element was found as a child of the element in square brackets, in this case process. Can you please post your BPEL document to examine it and try to help you a bit more?
-
2. Re: Help with Bpel error -
depstei2 Oct 1, 2007 10:27 AM (in response to depstei2)<?xml version="1.0" encoding="UTF-8"?> <process name="newProcess" targetNamespace="http://enterprise.netbeans.org/bpel/ScratchBpelModule1/newProcess" xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://enterprise.netbeans.org/bpel/ScratchBpelModule1/newProcess" xmlns:ns1="http://j2ee.netbeans.org/wsdl/newWSDL"> <import namespace="http://j2ee.netbeans.org/wsdl/newWSDL" location="newWSDL.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> <partnerLinks> <partnerLink name="PartnerLink1" partnerLinkType="ns1:newWSDL1" myRole="newWSDLPortTypeRole"/> </partnerLinks> <variables> <variable name="NewWSDLOperationOut" messageType="ns1:newWSDLOperationReply"/> <variable name="NewWSDLOperationIn" messageType="ns1:newWSDLOperationRequest"/> </variables> <sequence> <receive name="Receive1" createInstance="yes" partnerLink="PartnerLink1" operation="newWSDLOperation" portType="ns1:newWSDLPortType" variable="NewWSDLOperationIn"/> <assign name="Assign1"> <copy> <from variable="NewWSDLOperationIn" part="part1"/> <to variable="NewWSDLOperationOut" part="part1"/> </copy> </assign> <reply name="Reply1" partnerLink="PartnerLink1" operation="newWSDLOperation" portType="ns1:newWSDLPortType" variable="NewWSDLOperationOut"/> </sequence> </process>
Here' s my wsdl:<?xml version="1.0" encoding="UTF-8"?> <definitions name="newWSDL" targetNamespace="http://j2ee.netbeans.org/wsdl/newWSDL" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://j2ee.netbeans.org/wsdl/newWSDL" xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"> <types> <xsd:schema targetNamespace="http://j2ee.netbeans.org/wsdl/newWSDL"> <xsd:complexType name="Shape"> <xsd:sequence> <xsd:element name="size" type="xsd:int"></xsd:element> </xsd:sequence> </xsd:complexType> <xsd:element name="square" type="tns:Shape"></xsd:element> </xsd:schema> </types> <message name="newWSDLOperationRequest"> <part name="part1" element="tns:square"/> </message> <message name="newWSDLOperationReply"> <part name="part1" element="tns:square"/> </message> <portType name="newWSDLPortType"> <operation name="newWSDLOperation"> <input name="input1" message="tns:newWSDLOperationRequest"/> <output name="output1" message="tns:newWSDLOperationReply"/> </operation> </portType> <plnk:partnerLinkType name="newWSDL1"> <plnk:role name="newWSDLPortTypeRole" portType="tns:newWSDLPortType"/> </plnk:partnerLinkType> </definitions>
-
3. Re: Help with Bpel error -
aguizar Oct 10, 2007 7:57 PM (in response to depstei2)For compatibility with the Eclipse BPEL designer, jBPM BPEL supports an early draft of the WS-BPEL 2.0 specification instead of the approved standard. The schema accepted by the product can be found in jbpm-bpel.jar. Look for resource org/jbpm/bpel/xml/util/bpel_2_0.xsd.
The documents you provided mostly adhere to the above schema, except for the bpel and plnk namespaces. In the BPEL document, replace:xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
withxmlns="http://schemas.xmlsoap.org/ws/2004/03/business-process/"
In the WSDL document, replace:xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
withxmlns:plnk="http://schemas.xmlsoap.org/ws/2004/03/partner-link/"
This should fix the problem.