You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ode.apache.org by Hart Liu <ha...@live.com> on 2010/11/12 00:44:39 UTC

UndeclaredXsdType error when deploying a BPEL to ODE

Hi all,
 
I have a very weird problem. My wsdl and bpel files are generated by using eclipse plug-ins, so I do not see any risk of having a syntax problem. However, when I deploy the bpel to ODE 1.3.4 running on ServiceMix 4.2.0, I am getting the following compile errors:
 
Caused by: org.apache.ode.bpel.compiler.api.CompilationException: error: [CompilationErrors] Compilation completed with 7 error(s):
 file:/E:/apache-servicemix-4.2.0/data/jbi/bmf.yukon.pkc.assembly/sus/bmf.yukon.ode.pkc.doc.search/DocSearch.bpel:34: error: [UndeclaredXsdType] Attempt to reference undeclared XSD type "{http://www.w3.org/2001/XMLSchema}anyType".
 file:/E:/apache-servicemix-4.2.0/data/jbi/bmf.yukon.pkc.assembly/sus/bmf.yukon.ode.pkc.doc.search/DocSearch.bpel:35: error: [UndeclaredXsdType] Attempt to reference undeclared XSD type "{http://www.w3.org/2001/XMLSchema}anyType".
 file:/E:/apache-servicemix-4.2.0/data/jbi/bmf.yukon.pkc.assembly/sus/bmf.yukon.ode.pkc.doc.search/DocSearch.bpel:36: error: [UndeclaredXsdType] Attempt to reference undeclared XSD type "{http://www.w3.org/2001/XMLSchema}string".
 file:/E:/apache-servicemix-4.2.0/data/jbi/bmf.yukon.pkc.assembly/sus/bmf.yukon.ode.pkc.doc.search/DocSearch.bpel:41: error: [UndeclaredVariable] Attempt to reference undeclared variable "request".
 file:/E:/apache-servicemix-4.2.0/data/jbi/bmf.yukon.pkc.assembly/sus/bmf.yukon.ode.pkc.doc.search/DocSearch.bpel:46: error: [UndeclaredVariable] Attempt to reference undeclared variable "text".
 file:/E:/apache-servicemix-4.2.0/data/jbi/bmf.yukon.pkc.assembly/sus/bmf.yukon.ode.pkc.doc.search/DocSearch.bpel:50: error: [UndeclaredVariable] Attempt to reference undeclared variable "response".
 file:/E:/apache-servicemix-4.2.0/data/jbi/bmf.yukon.pkc.assembly/sus/bmf.yukon.ode.pkc.doc.search/DocSearch.bpel:55: error: [UndeclaredVariable] Attempt to reference undeclared variable "response".

Here is the definition in BPEL:
 
<process name="DocSearch"
         targetNamespace="urn:/DocSearch.bpel"
         xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
         xmlns:tns="urn:/DocSearch.bpel"
         xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable" xmlns:ns1="urn:example" xmlns:ns2="urn:/DocSearch.bpelArtifacts">
    
<bpel:import namespace="urn:/DocSearch.bpelArtifacts" location="DocSearchArtifacts.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"></bpel:import>
    <import namespace="urn:example" location="DocumentService.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"></import>
 
   <partnerLinks>
        <bpel:partnerLink name="DocumentServicePL" partnerLinkType="ns2:DocumentServicePLT" myRole="Provider"></bpel:partnerLink>
    </partnerLinks>
    <variables>
        <variable name="response" messageType="ns1:findByIdResponse"></variable>
        <variable name="request" messageType="ns1:findByIdRequest"></variable>
        <variable name="text" type="xsd:string"></variable>
    </variables>

 
Does anyone see any reason why a xsd:string could be an "UndelaredXsdType"? I have been chasing this problems for two days, still have no clue.
 
Thanks,
Hart 		 	   		  

RE: UndeclaredXsdType error when deploying a BPEL to ODE

Posted by Hart Liu <ha...@live.com>.
Hi Tammo,
 
Thanks for your reply. There are some warnings but not something like .xsd or .wsdl could not be loaded properly. And I do not have any non-ascii char that I can see.
I used a very simple wsdl before, and I got the same error.
 
Hart 
 
> Date: Fri, 12 Nov 2010 01:04:52 +0100
> From: tvanlessen@gmail.com
> To: user@ode.apache.org
> Subject: Re: UndeclaredXsdType error when deploying a BPEL to ODE
> 
> Hi,
> 
> are the other warnings in the log, something like a .xsd or .wsdl could
> not be loaded properly? Do you have non-ascii characters in wsdls or xsds?
> 
> Tammo
> 
> On 12.11.2010 00:44, Hart Liu wrote:
> > 
> > Hi all,
> > 
> > I have a very weird problem. My wsdl and bpel files are generated by using eclipse plug-ins, so I do not see any risk of having a syntax problem. However, when I deploy the bpel to ODE 1.3.4 running on ServiceMix 4.2.0, I am getting the following compile errors:
> > 
> > Caused by: org.apache.ode.bpel.compiler.api.CompilationException: error: [CompilationErrors] Compilation completed with 7 error(s):
> > file:/E:/apache-servicemix-4.2.0/data/jbi/bmf.yukon.pkc.assembly/sus/bmf.yukon.ode.pkc.doc.search/DocSearch.bpel:34: error: [UndeclaredXsdType] Attempt to reference undeclared XSD type "{http://www.w3.org/2001/XMLSchema}anyType".
> > file:/E:/apache-servicemix-4.2.0/data/jbi/bmf.yukon.pkc.assembly/sus/bmf.yukon.ode.pkc.doc.search/DocSearch.bpel:35: error: [UndeclaredXsdType] Attempt to reference undeclared XSD type "{http://www.w3.org/2001/XMLSchema}anyType".
> > file:/E:/apache-servicemix-4.2.0/data/jbi/bmf.yukon.pkc.assembly/sus/bmf.yukon.ode.pkc.doc.search/DocSearch.bpel:36: error: [UndeclaredXsdType] Attempt to reference undeclared XSD type "{http://www.w3.org/2001/XMLSchema}string".
> > file:/E:/apache-servicemix-4.2.0/data/jbi/bmf.yukon.pkc.assembly/sus/bmf.yukon.ode.pkc.doc.search/DocSearch.bpel:41: error: [UndeclaredVariable] Attempt to reference undeclared variable "request".
> > file:/E:/apache-servicemix-4.2.0/data/jbi/bmf.yukon.pkc.assembly/sus/bmf.yukon.ode.pkc.doc.search/DocSearch.bpel:46: error: [UndeclaredVariable] Attempt to reference undeclared variable "text".
> > file:/E:/apache-servicemix-4.2.0/data/jbi/bmf.yukon.pkc.assembly/sus/bmf.yukon.ode.pkc.doc.search/DocSearch.bpel:50: error: [UndeclaredVariable] Attempt to reference undeclared variable "response".
> > file:/E:/apache-servicemix-4.2.0/data/jbi/bmf.yukon.pkc.assembly/sus/bmf.yukon.ode.pkc.doc.search/DocSearch.bpel:55: error: [UndeclaredVariable] Attempt to reference undeclared variable "response".
> > 
> > Here is the definition in BPEL:
> > 
> > <process name="DocSearch"
> > targetNamespace="urn:/DocSearch.bpel"
> > xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
> > xmlns:tns="urn:/DocSearch.bpel"
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable" xmlns:ns1="urn:example" xmlns:ns2="urn:/DocSearch.bpelArtifacts">
> > 
> > <bpel:import namespace="urn:/DocSearch.bpelArtifacts" location="DocSearchArtifacts.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"></bpel:import>
> > <import namespace="urn:example" location="DocumentService.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"></import>
> > 
> > <partnerLinks>
> > <bpel:partnerLink name="DocumentServicePL" partnerLinkType="ns2:DocumentServicePLT" myRole="Provider"></bpel:partnerLink>
> > </partnerLinks>
> > <variables>
> > <variable name="response" messageType="ns1:findByIdResponse"></variable>
> > <variable name="request" messageType="ns1:findByIdRequest"></variable>
> > <variable name="text" type="xsd:string"></variable>
> > </variables>
> > 
> > 
> > Does anyone see any reason why a xsd:string could be an "UndelaredXsdType"? I have been chasing this problems for two days, still have no clue.
> > 
> > Thanks,
> > Hart 
> 
> -- 
> Tammo van Lessen - http://www.taval.de
 		 	   		  

RE: UndeclaredXsdType error when deploying a BPEL to ODE

Posted by Hart Liu <ha...@live.com>.
Hi Tammo,
Actually you are right. Those warning messages are the cause of the errors. After I corrected all the warnings, I was able to deploy the BPEL successfully.
Thanks a lot for your help!
Hart
 
> Date: Fri, 12 Nov 2010 01:04:52 +0100
> From: tvanlessen@gmail.com
> To: user@ode.apache.org
> Subject: Re: UndeclaredXsdType error when deploying a BPEL to ODE
> 
> Hi,
> 
> are the other warnings in the log, something like a .xsd or .wsdl could
> not be loaded properly? Do you have non-ascii characters in wsdls or xsds?
> 
> Tammo
> 
> On 12.11.2010 00:44, Hart Liu wrote:
> > 
> > Hi all,
> > 
> > I have a very weird problem. My wsdl and bpel files are generated by using eclipse plug-ins, so I do not see any risk of having a syntax problem. However, when I deploy the bpel to ODE 1.3.4 running on ServiceMix 4.2.0, I am getting the following compile errors:
> > 
> > Caused by: org.apache.ode.bpel.compiler.api.CompilationException: error: [CompilationErrors] Compilation completed with 7 error(s):
> > file:/E:/apache-servicemix-4.2.0/data/jbi/bmf.yukon.pkc.assembly/sus/bmf.yukon.ode.pkc.doc.search/DocSearch.bpel:34: error: [UndeclaredXsdType] Attempt to reference undeclared XSD type "{http://www.w3.org/2001/XMLSchema}anyType".
> > file:/E:/apache-servicemix-4.2.0/data/jbi/bmf.yukon.pkc.assembly/sus/bmf.yukon.ode.pkc.doc.search/DocSearch.bpel:35: error: [UndeclaredXsdType] Attempt to reference undeclared XSD type "{http://www.w3.org/2001/XMLSchema}anyType".
> > file:/E:/apache-servicemix-4.2.0/data/jbi/bmf.yukon.pkc.assembly/sus/bmf.yukon.ode.pkc.doc.search/DocSearch.bpel:36: error: [UndeclaredXsdType] Attempt to reference undeclared XSD type "{http://www.w3.org/2001/XMLSchema}string".
> > file:/E:/apache-servicemix-4.2.0/data/jbi/bmf.yukon.pkc.assembly/sus/bmf.yukon.ode.pkc.doc.search/DocSearch.bpel:41: error: [UndeclaredVariable] Attempt to reference undeclared variable "request".
> > file:/E:/apache-servicemix-4.2.0/data/jbi/bmf.yukon.pkc.assembly/sus/bmf.yukon.ode.pkc.doc.search/DocSearch.bpel:46: error: [UndeclaredVariable] Attempt to reference undeclared variable "text".
> > file:/E:/apache-servicemix-4.2.0/data/jbi/bmf.yukon.pkc.assembly/sus/bmf.yukon.ode.pkc.doc.search/DocSearch.bpel:50: error: [UndeclaredVariable] Attempt to reference undeclared variable "response".
> > file:/E:/apache-servicemix-4.2.0/data/jbi/bmf.yukon.pkc.assembly/sus/bmf.yukon.ode.pkc.doc.search/DocSearch.bpel:55: error: [UndeclaredVariable] Attempt to reference undeclared variable "response".
> > 
> > Here is the definition in BPEL:
> > 
> > <process name="DocSearch"
> > targetNamespace="urn:/DocSearch.bpel"
> > xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
> > xmlns:tns="urn:/DocSearch.bpel"
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable" xmlns:ns1="urn:example" xmlns:ns2="urn:/DocSearch.bpelArtifacts">
> > 
> > <bpel:import namespace="urn:/DocSearch.bpelArtifacts" location="DocSearchArtifacts.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"></bpel:import>
> > <import namespace="urn:example" location="DocumentService.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"></import>
> > 
> > <partnerLinks>
> > <bpel:partnerLink name="DocumentServicePL" partnerLinkType="ns2:DocumentServicePLT" myRole="Provider"></bpel:partnerLink>
> > </partnerLinks>
> > <variables>
> > <variable name="response" messageType="ns1:findByIdResponse"></variable>
> > <variable name="request" messageType="ns1:findByIdRequest"></variable>
> > <variable name="text" type="xsd:string"></variable>
> > </variables>
> > 
> > 
> > Does anyone see any reason why a xsd:string could be an "UndelaredXsdType"? I have been chasing this problems for two days, still have no clue.
> > 
> > Thanks,
> > Hart 
> 
> -- 
> Tammo van Lessen - http://www.taval.de
 		 	   		  

Re: UndeclaredXsdType error when deploying a BPEL to ODE

Posted by Tammo van Lessen <tv...@gmail.com>.
Hi,

are the other warnings in the log, something like a .xsd or .wsdl could
not be loaded properly? Do you have non-ascii characters in wsdls or xsds?

Tammo

On 12.11.2010 00:44, Hart Liu wrote:
> 
> Hi all,
>  
> I have a very weird problem. My wsdl and bpel files are generated by using eclipse plug-ins, so I do not see any risk of having a syntax problem. However, when I deploy the bpel to ODE 1.3.4 running on ServiceMix 4.2.0, I am getting the following compile errors:
>  
> Caused by: org.apache.ode.bpel.compiler.api.CompilationException: error: [CompilationErrors] Compilation completed with 7 error(s):
>  file:/E:/apache-servicemix-4.2.0/data/jbi/bmf.yukon.pkc.assembly/sus/bmf.yukon.ode.pkc.doc.search/DocSearch.bpel:34: error: [UndeclaredXsdType] Attempt to reference undeclared XSD type "{http://www.w3.org/2001/XMLSchema}anyType".
>  file:/E:/apache-servicemix-4.2.0/data/jbi/bmf.yukon.pkc.assembly/sus/bmf.yukon.ode.pkc.doc.search/DocSearch.bpel:35: error: [UndeclaredXsdType] Attempt to reference undeclared XSD type "{http://www.w3.org/2001/XMLSchema}anyType".
>  file:/E:/apache-servicemix-4.2.0/data/jbi/bmf.yukon.pkc.assembly/sus/bmf.yukon.ode.pkc.doc.search/DocSearch.bpel:36: error: [UndeclaredXsdType] Attempt to reference undeclared XSD type "{http://www.w3.org/2001/XMLSchema}string".
>  file:/E:/apache-servicemix-4.2.0/data/jbi/bmf.yukon.pkc.assembly/sus/bmf.yukon.ode.pkc.doc.search/DocSearch.bpel:41: error: [UndeclaredVariable] Attempt to reference undeclared variable "request".
>  file:/E:/apache-servicemix-4.2.0/data/jbi/bmf.yukon.pkc.assembly/sus/bmf.yukon.ode.pkc.doc.search/DocSearch.bpel:46: error: [UndeclaredVariable] Attempt to reference undeclared variable "text".
>  file:/E:/apache-servicemix-4.2.0/data/jbi/bmf.yukon.pkc.assembly/sus/bmf.yukon.ode.pkc.doc.search/DocSearch.bpel:50: error: [UndeclaredVariable] Attempt to reference undeclared variable "response".
>  file:/E:/apache-servicemix-4.2.0/data/jbi/bmf.yukon.pkc.assembly/sus/bmf.yukon.ode.pkc.doc.search/DocSearch.bpel:55: error: [UndeclaredVariable] Attempt to reference undeclared variable "response".
> 
> Here is the definition in BPEL:
>  
> <process name="DocSearch"
>          targetNamespace="urn:/DocSearch.bpel"
>          xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
>          xmlns:tns="urn:/DocSearch.bpel"
>          xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable" xmlns:ns1="urn:example" xmlns:ns2="urn:/DocSearch.bpelArtifacts">
>     
> <bpel:import namespace="urn:/DocSearch.bpelArtifacts" location="DocSearchArtifacts.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"></bpel:import>
>     <import namespace="urn:example" location="DocumentService.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"></import>
>  
>    <partnerLinks>
>         <bpel:partnerLink name="DocumentServicePL" partnerLinkType="ns2:DocumentServicePLT" myRole="Provider"></bpel:partnerLink>
>     </partnerLinks>
>     <variables>
>         <variable name="response" messageType="ns1:findByIdResponse"></variable>
>         <variable name="request" messageType="ns1:findByIdRequest"></variable>
>         <variable name="text" type="xsd:string"></variable>
>     </variables>
> 
>  
> Does anyone see any reason why a xsd:string could be an "UndelaredXsdType"? I have been chasing this problems for two days, still have no clue.
>  
> Thanks,
> Hart 		 	   		  

-- 
Tammo van Lessen - http://www.taval.de