[jboss-user] [JBoss jBPM] - Error while deploying

vinutha do-not-reply at jboss.com
Fri Dec 5 10:14:29 EST 2008


Hi,
I am trying a simple example on BPEL. While deploying it I see the following error.
20:21:54,796 ERROR [ProblemHandler] message type not found (hello.bpel) at /bpws:process/bpws:variables/bpws:variable[3]
20:21:54,796 ERROR [ProblemHandler] message type not found (hello.bpel) at /bpws:process/bpws:variables/bpws:variable[4]
20:21:54,796 ERROR [ProblemHandler] port type mismatch between message activity and partner link (hello.bpel) at /bpws:process/bpws:sequence/bpws:invoke
20:21:54,796 ERROR [ProblemHandler] inputVariable type is not applicable for the operation (hello.bpel) at /bpws:process/bpws:sequence/bpws:invoke
20:21:54,796 ERROR [ProblemHandler] outputVariable type is not applicable for the operation (hello.bpel) at /bpws:process/bpws:sequence/bpws:invoke
20:21:54,796 ERROR [[deploymentServlet]] Servlet.service() for servlet deploymentServlet threw exception
org.jbpm.bpel.xml.BpelParseException: 5 problem(s) found
        at org.jbpm.bpel.par.GenericArchiveParser.readFromArchive(GenericArchiveParser.java:59)
        at org.jbpm.jpdl.par.ProcessArchive.parseProcessDefinition(ProcessArchive.java:81)
        at org.jbpm.bpel.web.DeploymentServlet.readProcessDefinition(DeploymentServlet.java:182)

Any suggestion will be appreciated. 


We have the following files

1. hello.bpel
<?xml version="1.0" encoding="UTF-8"?>

<bpws:process exitOnStandardFault="yes" name="HelloWorld"
    xmlns:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
    xmlns:ns="http://jbpm.org/examples/helloArtifacts"
    xmlns:ns0="http://jbpm.org/examples/converter" 
    xmlns:tns="http://jbpm.org/examples/hello"
    targetNamespace="http://jbpm.org/examples/hello">
   
    <bpws:import importType="http://schemas.xmlsoap.org/wsdl/"
        location="hello.wsdl" namespace="http://jbpm.org/examples/hello"/>
    <bpws:import importType="http://schemas.xmlsoap.org/wsdl/"
        location="ravi.wsdl" namespace="http://jbpm.org/example/converter"/>	
    <bpws:import importType="http://schemas.xmlsoap.org/wsdl/"
        location="helloArtifacts.wsdl" namespace="http://jbpm.org/examples/helloArtifacts"/>
     
     <bpws:partnerLinks>
        <bpws:partnerLink myRole="Greeter" name="caller" partnerLinkType="tns:Greeter-Caller">            
        </bpws:partnerLink>
        <bpws:partnerLink name="ConverterPLink"
            partnerLinkType="ns:ConverterPLTName" partnerRole="converterRole"/>
    </bpws:partnerLinks>
  
    
    <bpws:variables>
        <bpws:variable messageType="tns:nameMessage" name="request" />
        <bpws:variable messageType="tns:greetingMessage" name="response" />
        <bpws:variable messageType="ns0:convertAmountRequest" name="Request"/>
        <bpws:variable messageType="ns0:convertAmountResponse" name="convertResponse"/>
    </bpws:variables>
    <bpws:sequence name="MainSeq">
        <bpws:receive createInstance="yes" name="ReceiveName"
            operation="sayHello" partnerLink="caller"
            portType="tns:Greeter" variable="request">
            <bpws:documentation>receive the name of a person</bpws:documentation>
        </bpws:receive>
        <bpws:assign name="ComposeGreeting" validate="no">
            <bpws:documentation>compose a greeting phrase</bpws:documentation>
            <bpws:copy>
                <bpws:from><![CDATA[concat('Hello, ', $request.name, '!')]]></bpws:from>
                <bpws:to part="greeting" variable="response"/>
            </bpws:copy>
        </bpws:assign>
        <bpws:invoke inputVariable="Request" name="Invoke"
            operation="convertAmount" outputVariable="convertResponse"
            partnerLink="ConverterPLink" portType="ns0:CurrencyConverter"/>
        <bpws:reply name="SendGreeting" operation="sayHello"
            partnerLink="caller" portType="tns:Greeter" variable="response">
            <bpws:documentation>send greeting back to caller</bpws:documentation>
        </bpws:reply>
    </bpws:sequence>
</bpws:process>


2. hello.wsdl
<?xml version="1.0" encoding="UTF-8"?>
<definitions 
 targetNamespace="http://jbpm.org/examples/hello"
  xmlns:tns="http://jbpm.org/examples/hello" 
  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  xmlns:plt="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
  xmlns="http://schemas.xmlsoap.org/wsdl/">




	  
		
			
		    
			
			    
				
			    
			
		    
			  
		    
			
			    
				
			    
			
		    
		    
		
	    


  
    carries the greeting
    
  

  
    carries the name of a person
    
  

  
    describes the interface presented to callers
    
      

      
    
  

  <plt:partnerLinkType name="Greeter-Caller">
    <plt:documentation>
      characterizes the relationship between the greeter and its caller
    </plt:documentation>
    <plt:role name="Greeter" portType="tns:Greeter">
      <plt:documentation>
        Caller does not provide services to Greeter, hence the "Caller" role is omitted
      </plt:documentation>
    </plt:role>
  </plt:partnerLinkType>


3.helloArtifacts.wsdl
<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<definitions name="helloArtifacts" 
xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype" 
xmlns:tns="http://jbpm.org/examples/helloArtifacts" 
xmlns:vprop="http://docs.oasis-open.org/wsbpel/2.0/varprop" 
xmlns:wsdl="http://jbpm.org/example/converter" 
targetNamespace="http://jbpm.org/examples/helloArtifacts"
xmlns="http://schemas.xmlsoap.org/wsdl/">


  <plnk:partnerLinkType name="ConverterPLTName">
    <plnk:role name="converterRole" portType="wsdl:CurrencyConverter"/>
  </plnk:partnerLinkType>
 


4.ravi.wsdl
<?xml version="1.0" encoding="UTF-8" ?> 
 <definitions name ="converter" 
 targetNamespace="http://jbpm.org/example/converter" 
 xmlns:apachesoap="http://xml.apache.org/xml-soap" 
 xmlns:impl="http://jbpm.org/example/converter" 
 xmlns:intf="http://jbpm.org/example/converter" 
 xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" 
 xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
 xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" 
 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
 xmlns:tns="http://jbpm.org/examples/converter"
        xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
        xmlns="http://schemas.xmlsoap.org/wsdl/">
 
   
  
 
   
  
 
 
   
   
  
  
 
  <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" /> 
 
  <wsdlsoap:operation soapAction="" /> 
 
  <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://jbpm.org/example/converter" use="encoded" /> 
  
 
  <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://jbpm.org/example/converter" use="encoded" /> 
  
  
  
 
 
  <wsdlsoap:address location="http://10.116.11.69:8080/axis/services/converter" /> 
  
  
  





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

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



More information about the jboss-user mailing list