[jboss-user] [JBoss jBPM] - Re: A tutorial to deploy a Netbeans created BPEL process und

depstei2 do-not-reply at jboss.com
Tue Sep 25 16:42:10 EDT 2007


I have been trying to deploy a simple service created with the eclipse bpel designer on 4.0.4.GA and jbpm-bpel 1.1.3 beta, but I keep getting this message:

16:27:28,250 INFO  [[/jbpm-bpel]] processDeployServlet: deploying process definition: file=file:/C:/projects/jbpm-bpel-1.1.Beta3/examples/EchoService2/target/EchoService2-process.zip
  | 16:27:28,250 INFO  [BpelReader] read wsdl definitions: EchoService2.wsdl
  | 16:27:28,250 ERROR [ProblemHandler]  EchoService2.bpel activity not found [/bpws:process]
  | 16:27:28,250 INFO  [BpelReader] read bpel process: EchoService2.bpel
  | 16:27:28,250 ERROR [[processDeployServlet]] Servlet.service() for servlet processDeployServlet threw exception
  | org.jbpm.jpdl.JpdlException: [[ERROR] EchoService2.bpel activity not found [/bpws:process]]
  | 	at org.jbpm.jpdl.par.ProcessArchive.parseProcessDefinition(ProcessArchive.java:84)
  | 	at org.jbpm.bpel.web.ProcessDeployServlet.doGet(ProcessDeployServlet.java:50)
  | 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)

The bpel and wsdl work fine in netbeans,
here is the wsdl:
<?xml version="1.0"?>
  | <definitions name="EchoService2"
  |         targetNamespace="http://student.kuali.org/bpel/EchoService2"
  |         xmlns:tns="http://student.kuali.org/bpel/EchoService2"
  |         xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
  |         xmlns="http://schemas.xmlsoap.org/wsdl/"
  |         >  
  |     <types>
  |         <schema attributeFormDefault="unqualified" elementFormDefault="qualified" 
  |                 targetNamespace="http://student.kuali.org/bpel/EchoService2" 
  |                 xmlns="http://www.w3.org/2001/XMLSchema">
  | 
  |             <element name="EchoService2Request">
  |                 <complexType>
  |                     <sequence>
  |                         <element name="request" type="string"/>
  |                     </sequence>
  |                 </complexType>
  |             </element>
  | 
  |             <element name="EchoService2Response">
  |                 <complexType>
  |                     <sequence>
  |                         <element name="response" type="string"/>
  |                     </sequence>
  |                 </complexType>
  |             </element>
  |         </schema>
  |     </types>   
  |     <message name="EchoService2RequestMessage">
  |         <part name="payload" element="tns:EchoService2Request"/>
  |     </message>
  |     <message name="EchoService2ResponseMessage">
  |         <part name="payload" element="tns:EchoService2Response"/>
  |     </message>
  | 
  |     <!-- portType implemented by the EchoService2 BPEL process -->
  |     <portType name="EchoService2">
  |         <operation name="process">
  |             <input  message="tns:EchoService2RequestMessage" />
  |             <output message="tns:EchoService2ResponseMessage"/>
  |         </operation>
  |     </portType>
  |     
  |     <plnk:partnerLinkType name="EchoService2PLT">
  |         <plnk:role name="EchoService2Provider" portType="tns:EchoService2"/>
  |     </plnk:partnerLinkType>
  |     
  | </definitions>
  | 
  | 
and here is the bpel:
<?xml version="1.0" encoding="UTF-8"?>
  | <bpws:process exitOnStandardFault="yes" name="EchoService2"
  |     suppressJoinFailure="yes"
  |     targetNamespace="http://student.kuali.org/bpel/EchoService2"
  |     xmlns:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable" xmlns:tns="http://student.kuali.org/bpel/EchoService2">
  |     <bpws:import importType="http://schemas.xmlsoap.org/wsdl/"
  |         location="EchoService2.wsdl" namespace="http://student.kuali.org/bpel/EchoService2"/>
  |     <bpws:partnerLinks>
  |         <bpws:partnerLink myRole="EchoService2Provider" name="client" partnerLinkType="tns:EchoService2PLT"/>
  |     </bpws:partnerLinks>
  |     <bpws:variables>
  |         <bpws:variable messageType="tns:EchoService2RequestMessage" name="input"/>
  |         <bpws:variable messageType="tns:EchoService2ResponseMessage" name="output"/>
  |     </bpws:variables>
  |     <bpws:sequence name="main">
  |         <bpws:receive createInstance="yes" name="receiveInput"
  |             operation="process" partnerLink="client"
  |             portType="tns:EchoService2" variable="input"/>
  |         <bpws:assign name="Assign" validate="yes">
  |             <bpws:copy>
  |                 <bpws:from part="payload" variable="input">
  |                     <bpws:query queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[/tns:request]]></bpws:query>
  |                 </bpws:from>
  |                 <bpws:to part="payload" variable="output">
  |                     <bpws:query queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[/tns:response]]></bpws:query>
  |                 </bpws:to>
  |             </bpws:copy>
  |         </bpws:assign>
  |         <bpws:reply name="replyOutput" operation="process"
  |             partnerLink="client" portType="tns:EchoService2" variable="output"/>
  |     </bpws:sequence>
  | </bpws:process>
Here is the definition:
<bpelDefinition location="EchoService2.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 location="EchoService2.wsdl" />
  |   </imports>
  | 
  | </bpelDefinition>
Am I missing something obvious?  I can deploy the examples without any errors.

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

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



More information about the jboss-user mailing list