Hi Anup, Your WSDL is not compliant with WS-I BasicProfile because it uses SOAP encoding so it will not work with Ode/Axis2.
alex On 9/5/07, Anup Chandran <[EMAIL PROTECTED]> wrote: > > > > Hi All, > > Not sure what is the issue here. I have a few external wsdl that i have > referenced in my bpel definition. However one particular WSDL breaks > deployment. > > The error it throws is : > > ERROR - GeronimoLog.error(108) | Deployment of Engineering failed, > aborting > for now. > java.lang.NullPointerException: Null model. > at > org.apache.ode.utils.xsd.SchemaModelImpl.<init>(SchemaModelImpl.java:48) > at > org.apache.ode.utils.xsd.SchemaModelImpl.newModel(SchemaModelImpl.java:91) > at > org.apache.ode.bpel.compiler.WSDLRegistry.getSchemaModel(WSDLRegistry.java > :104) > at > org.apache.ode.bpel.compiler.BpelCompiler.resolveXsdType(BpelCompiler.java > :407) > at > org.apache.ode.bpel.compiler.BpelCompiler$2.apply(BpelCompiler.java:389) > at > org.apache.ode.bpel.compiler.BpelCompiler$2.apply(BpelCompiler.java:384) > at > org.apache.ode.utils.stl.CollectionsX.transform(CollectionsX.java:167) > at > org.apache.ode.bpel.compiler.BpelCompiler.resolveMessageType( > BpelCompiler.java:382) > at > org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:1332) > at > org.apache.ode.bpel.compiler.BpelCompiler.access$1000(BpelCompiler.java > :124) > at > org.apache.ode.bpel.compiler.BpelCompiler$8.run(BpelCompiler.java:1093) > at > org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:1045) > at > org.apache.ode.bpel.compiler.BpelCompiler.compileScope(BpelCompiler.java > :1089) > at > org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:688) > at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:260) > at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:330) > at > org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:161) > at > org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:125) > at > org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:165) > at > org.apache.ode.axis2.deploy.DeploymentPoller.check(DeploymentPoller.java > :144) > at > org.apache.ode.axis2.deploy.DeploymentPoller.access$300( > DeploymentPoller.java:55) > at > org.apache.ode.axis2.deploy.DeploymentPoller$PollingThread.run( > DeploymentPoller.java:188) > 17:17:13,740 ERROR [DeploymentPoller] Deployment of Engineering failed, > aborting for now. > java.lang.NullPointerException: Null model. > at > org.apache.ode.utils.xsd.SchemaModelImpl.<init>(SchemaModelImpl.java:48) > at > org.apache.ode.utils.xsd.SchemaModelImpl.newModel(SchemaModelImpl.java:91) > at > org.apache.ode.bpel.compiler.WSDLRegistry.getSchemaModel(WSDLRegistry.java > :104) > at > org.apache.ode.bpel.compiler.BpelCompiler.resolveXsdType(BpelCompiler.java > :407) > at > org.apache.ode.bpel.compiler.BpelCompiler$2.apply(BpelCompiler.java:389) > at > org.apache.ode.bpel.compiler.BpelCompiler$2.apply(BpelCompiler.java:384) > at > org.apache.ode.utils.stl.CollectionsX.transform(CollectionsX.java:167) > at > org.apache.ode.bpel.compiler.BpelCompiler.resolveMessageType( > BpelCompiler.java:382) > at > org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:1332) > at > org.apache.ode.bpel.compiler.BpelCompiler.access$1000(BpelCompiler.java > :124) > at > org.apache.ode.bpel.compiler.BpelCompiler$8.run(BpelCompiler.java:1093) > at > org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:1045) > at > org.apache.ode.bpel.compiler.BpelCompiler.compileScope(BpelCompiler.java > :1089) > at > org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:688) > at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:260) > at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:330) > at > org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:161) > at > org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:125) > at > org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:165) > at > org.apache.ode.axis2.deploy.DeploymentPoller.check(DeploymentPoller.java > :144) > at > org.apache.ode.axis2.deploy.DeploymentPoller.access$300( > DeploymentPoller.java:55) > at > org.apache.ode.axis2.deploy.DeploymentPoller$PollingThread.run( > DeploymentPoller.java:188) > > > The Process definition is : > > <?xml version="1.0" encoding="UTF-8"?> > <bpws:process > xmlns:bpws="http://schemas.xmlsoap.org/ws/2004/03/business-process/" > xmlns:ns="http://client.engineering.cbp.jpo" > xmlns:ns0="http://www.apache.org/ode/pmapi" > xmlns:tns="http://eclipse.org/bpel/sample" exitOnStandardFault="yes" > name="ECRProcess" suppressJoinFailure="yes" > targetNamespace="http://eclipse.org/bpel/sample"> > <bpws:import importType="http://schemas.xmlsoap.org/wsdl/" > location="ECRProcess.wsdl" namespace="http://eclipse.org/bpel/sample"/> > <bpws:import importType="http://schemas.xmlsoap.org/wsdl/" > location="JpoCbpEngineeringECR.wsdl" > namespace="http://client.engineering.cbp.jpo"/> > <bpws:import importType="http://schemas.xmlsoap.org/wsdl/" > location="pmapi.wsdl" namespace="http://www.apache.org/ode/pmapi"/> > <bpws:import importType="http://schemas.xmlsoap.org/wsdl/" > location="JpoCbpEngineeringCBPWorkflow.wsdl" > namespace="http://client.engineering.cbp.jpo"/> > > > If i include the last import "JpoCbpEngineeringCBPWorkflow.wsdl" the > deploy > fails with the above error. If i remove it then the process deploys > without > errors. > > > > The WSDL definition for JpoCbpEngineeringCBPWorkflow is : > > > <?xml version="1.0" encoding="UTF-8"?> > <wsdl:definitions targetNamespace="http://client.engineering.cbp.jpo" > xmlns:apachesoap="http://xml.apache.org/xml-soap" > xmlns:impl="http://client.engineering.cbp.jpo" > xmlns:intf="http://client.engineering.cbp.jpo" > 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:plnk="http://schemas.xmlsoap.org/ws/2004/03/partner-link/"> > <!--WSDL created by Apache Axis version: 1.4 > Built on Apr 22, 2006 (06:55:48 PDT)--> > <wsdl:types> > <schema targetNamespace="http://client.engineering.cbp.jpo" > xmlns="http://www.w3.org/2001/XMLSchema"> > <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/> > <complexType name="ArrayOf_xsd_string"> > <complexContent> > <restriction base="soapenc:Array"> > <attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:string[]"/> > </restriction> > </complexContent> > </complexType> > </schema> > </wsdl:types> > > <wsdl:message name="setAttributeResponse"> > > </wsdl:message> > > <wsdl:message name="invokeProcessRequest"> > > <wsdl:part name="in0" type="impl:ArrayOf_xsd_string"/> > > </wsdl:message> > > <wsdl:message name="setAttributeRequest"> > > <wsdl:part name="in0" type="soapenc:string"/> > > <wsdl:part name="in1" type="impl:ArrayOf_xsd_string"/> > > <wsdl:part name="in2" type="impl:ArrayOf_xsd_string"/> > > </wsdl:message> > > <wsdl:message name="invokeProcessResponse"> > > <wsdl:part name="invokeProcessReturn" type="soapenc:string"/> > > </wsdl:message> > > <wsdl:portType name="CBPWorkflow"> > > <wsdl:operation name="setAttribute" parameterOrder="in0 in1 in2"> > > <wsdl:input message="impl:setAttributeRequest" > name="setAttributeRequest"/> > > <wsdl:output message="impl:setAttributeResponse" > name="setAttributeResponse"/> > > </wsdl:operation> > > <wsdl:operation name="invokeProcess" parameterOrder="in0"> > > <wsdl:input message="impl:invokeProcessRequest" > name="invokeProcessRequest"/> > > <wsdl:output message="impl:invokeProcessResponse" > name="invokeProcessResponse"/> > > </wsdl:operation> > > </wsdl:portType> > > <wsdl:binding name="JpoCbpEngineeringCBPWorkflowSoapBinding" > type="impl:CBPWorkflow"> > > <wsdlsoap:binding style="rpc" > transport="http://schemas.xmlsoap.org/soap/http"/> > > <wsdl:operation name="setAttribute"> > > <wsdlsoap:operation soapAction=""/> > > <wsdl:input name="setAttributeRequest"> > > <wsdlsoap:body > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" > namespace="http://engineering.cbp.jpo" use="encoded"/> > > </wsdl:input> > > <wsdl:output name="setAttributeResponse"> > > <wsdlsoap:body > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" > namespace="http://client.engineering.cbp.jpo" use="encoded"/> > > </wsdl:output> > > </wsdl:operation> > > <wsdl:operation name="invokeProcess"> > > <wsdlsoap:operation soapAction=""/> > > <wsdl:input name="invokeProcessRequest"> > > <wsdlsoap:body > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" > namespace="http://engineering.cbp.jpo" use="encoded"/> > > </wsdl:input> > > <wsdl:output name="invokeProcessResponse"> > > <wsdlsoap:body > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" > namespace="http://client.engineering.cbp.jpo" use="encoded"/> > > </wsdl:output> > > </wsdl:operation> > > </wsdl:binding> > > <wsdl:service name="CBPWorkflowService"> > > <wsdl:port binding="impl:JpoCbpEngineeringCBPWorkflowSoapBinding" > name="JpoCbpEngineeringCBPWorkflow"> > > <wsdlsoap:address > location=" > http://localhost:8080/ematrix/services/JpoCbpEngineeringCBPWorkflow"/> > > </wsdl:port> > > </wsdl:service> > > <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Partner Link - Defines the role in the interaction of the service > with > external partner (in this case the Process) > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > --> > > <plnk:partnerLinkType name="CBPWorkflow"> > <plnk:role name="me" portType="impl:CBPWorkflow" /> > <plnk:role name="you" > portType="impl:CBPWorkflow" /> > </plnk:partnerLinkType> > > </wsdl:definitions> > > cheers > Anup > -- > View this message in context: > http://www.nabble.com/Import--WSDL-failure-during-deploy-tf4388205.html#a12511275 > Sent from the Apache Ode User mailing list archive at Nabble.com. > >
