You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "bglmmz (JIRA)" <ji...@apache.org> on 2012/05/09 12:01:57 UTC

[jira] [Closed] (CXF-4299) wsdl2java cannot create code

     [ https://issues.apache.org/jira/browse/CXF-4299?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

bglmmz closed CXF-4299.
-----------------------

       Resolution: Not A Problem
    Fix Version/s: 2.5.4

Sorry, it's my env problem...
                
> wsdl2java cannot create code
> ----------------------------
>
>                 Key: CXF-4299
>                 URL: https://issues.apache.org/jira/browse/CXF-4299
>             Project: CXF
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.5.3
>         Environment: jdk1.5.0_22 + j2ee 5 + WINDOWS XP(SP3)
>            Reporter: bglmmz
>            Assignee: Freeman Fang
>             Fix For: 2.5.4
>
>
> run the following command:
> wsdl2java -p example.adc -d src -all adc.wsdl
> and get the following error message:
> Exception in thread "main" java.lang.AbstractMethodError: org.apache.crimson.tree.XmlDocument.setDocumentURI(Ljava/lang/
> String;)V
>         at org.apache.cxf.staxutils.StaxUtils.read(StaxUtils.java:916)
>         at org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:231)
>         at org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:191)
>         at org.apache.cxf.wsdl11.WSDLDefinitionBuilder.parseWSDL(WSDLDefinitionBuilder.java:78)
>         at org.apache.cxf.wsdl11.WSDLDefinitionBuilder.build(WSDLDefinitionBuilder.java:69)
>         at org.apache.cxf.tools.wsdlto.frontend.jaxws.wsdl11.JAXWSDefinitionBuilder.build(JAXWSDefinitionBuilder.java:84
> )
>         at org.apache.cxf.tools.wsdlto.frontend.jaxws.wsdl11.JAXWSDefinitionBuilder.build(JAXWSDefinitionBuilder.java:61
> )
>         at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.processWsdl(WSDLToJavaContainer.java:171)
>         at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:138)
>         at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:286)
>         at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:103)
>         at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:113)
>         at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:86)
>         at org.apache.cxf.tools.wsdlto.WSDLToJava.main(WSDLToJava.java:184)
> --------------------------------
> here is my adc.wsdl
> --------------------------------
> <?xml version="1.0" encoding="utf-8"?>
> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://adc.siinterface.com/"
>                   xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
>                   targetNamespace="http://adc.siinterface.com/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
>   <wsdl:types>
>     <s:schema elementFormDefault="qualified" targetNamespace="http://adc.siinterface.com/">
>       <s:element name="HelloWorld">
>         <s:complexType />
>       </s:element>
>       <s:element name="HelloWorldResponse">
>         <s:complexType>
>           <s:sequence>
>             <s:element minOccurs="0" maxOccurs="1" name="HelloWorldResult" type="s:string" />
>           </s:sequence>
>         </s:complexType>
>       </s:element>
>       <s:element name="ADCSIInterface">
>         <s:complexType>
>           <s:sequence>
>             <s:element minOccurs="0" maxOccurs="1" name="request" type="tns:AdcSiRequest" />
>           </s:sequence>
>         </s:complexType>
>       </s:element>
>       <s:complexType name="AdcSiRequest">
>         <s:sequence>
>           <s:element minOccurs="0" maxOccurs="1" name="BizCode" type="s:string" />
>           <s:element minOccurs="0" maxOccurs="1" name="TransID" type="s:string" />
>           <s:element minOccurs="0" maxOccurs="1" name="TimeStamp" type="s:string" />
>           <s:element minOccurs="1" maxOccurs="1" name="ActionCode" type="s:int" />
>           <s:element minOccurs="0" maxOccurs="1" name="SIAppID" type="s:string" />
>           <s:element minOccurs="1" maxOccurs="1" name="TestFlag" type="s:int" />
>           <s:element minOccurs="1" maxOccurs="1" name="Dealkind" type="s:int" />
>           <s:element minOccurs="1" maxOccurs="1" name="Priority" type="s:int" />
>           <s:element minOccurs="0" maxOccurs="1" name="Version" type="s:string" />
>           <s:element minOccurs="0" maxOccurs="1" name="SvcCont" type="s:string" />
>         </s:sequence>
>       </s:complexType>
>       <s:element name="ADCSIInterfaceResponse">
>         <s:complexType>
>           <s:sequence>
>             <s:element minOccurs="0" maxOccurs="1" name="ADCSIInterfaceResult" type="tns:AdcSiResponse" />
>           </s:sequence>
>         </s:complexType>
>       </s:element>
>       <s:complexType name="AdcSiResponse">
>         <s:sequence>
>           <s:element minOccurs="0" maxOccurs="1" name="BizCode" type="s:string" />
>           <s:element minOccurs="0" maxOccurs="1" name="TransID" type="s:string" />
>           <s:element minOccurs="1" maxOccurs="1" name="ActionCode" type="s:int" />
>           <s:element minOccurs="0" maxOccurs="1" name="TimeStamp" type="s:string" />
>           <s:element minOccurs="0" maxOccurs="1" name="SIAppID" type="s:string" />
>           <s:element minOccurs="1" maxOccurs="1" name="TestFlag" type="s:int" />
>           <s:element minOccurs="1" maxOccurs="1" name="Dealkind" type="s:int" />
>           <s:element minOccurs="1" maxOccurs="1" name="Priority" type="s:int" />
>           <s:element minOccurs="0" maxOccurs="1" name="Version" type="s:string" />
>           <s:element minOccurs="0" maxOccurs="1" name="ResultCode" type="s:string" />
>           <s:element minOccurs="0" maxOccurs="1" name="ResultMsg" type="s:string" />
>           <s:element minOccurs="0" maxOccurs="1" name="SvcCont" type="s:string" />
>         </s:sequence>
>       </s:complexType>
>     </s:schema>
>   </wsdl:types>
>   <wsdl:message name="HelloWorldSoapIn">
>     <wsdl:part name="parameters" element="tns:HelloWorld" />
>   </wsdl:message>
>   <wsdl:message name="HelloWorldSoapOut">
>     <wsdl:part name="parameters" element="tns:HelloWorldResponse" />
>   </wsdl:message>
>   <wsdl:message name="ADCSIInterfaceSoapIn">
>     <wsdl:part name="parameters" element="tns:ADCSIInterface" />
>   </wsdl:message>
>   <wsdl:message name="ADCSIInterfaceSoapOut">
>     <wsdl:part name="parameters" element="tns:ADCSIInterfaceResponse" />
>   </wsdl:message>
>   <wsdl:portType name="SIInterfaceForADCSoap">
>     <wsdl:operation name="HelloWorld">
>       <wsdl:input message="tns:HelloWorldSoapIn" />
>       <wsdl:output message="tns:HelloWorldSoapOut" />
>     </wsdl:operation>
>     <wsdl:operation name="ADCSIInterface">
>       <wsdl:input message="tns:ADCSIInterfaceSoapIn" />
>       <wsdl:output message="tns:ADCSIInterfaceSoapOut" />
>     </wsdl:operation>
>   </wsdl:portType>
>   <wsdl:binding name="SIInterfaceForADCSoap" type="tns:SIInterfaceForADCSoap">
>     <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
>     <wsdl:operation name="HelloWorld">
>       <soap:operation soapAction="http://adc.siinterface.com/HelloWorld" style="document" />
>       <wsdl:input>
>         <soap:body use="literal" />
>       </wsdl:input>
>       <wsdl:output>
>         <soap:body use="literal" />
>       </wsdl:output>
>     </wsdl:operation>
>     <wsdl:operation name="ADCSIInterface">
>       <soap:operation soapAction="http://adc.siinterface.com/ADCSIInterface" style="document" />
>       <wsdl:input>
>         <soap:body use="literal" />
>       </wsdl:input>
>       <wsdl:output>
>         <soap:body use="literal" />
>       </wsdl:output>
>     </wsdl:operation>
>   </wsdl:binding>
>   <wsdl:binding name="SIInterfaceForADCSoap12" type="tns:SIInterfaceForADCSoap">
>     <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
>     <wsdl:operation name="HelloWorld">
>       <soap12:operation soapAction="http://adc.siinterface.com/HelloWorld" style="document" />
>       <wsdl:input>
>         <soap12:body use="literal" />
>       </wsdl:input>
>       <wsdl:output>
>         <soap12:body use="literal" />
>       </wsdl:output>
>     </wsdl:operation>
>     <wsdl:operation name="ADCSIInterface">
>       <soap12:operation soapAction="http://adc.siinterface.com/ADCSIInterface" style="document" />
>       <wsdl:input>
>         <soap12:body use="literal" />
>       </wsdl:input>
>       <wsdl:output>
>         <soap12:body use="literal" />
>       </wsdl:output>
>     </wsdl:operation>
>   </wsdl:binding>
>   <wsdl:service name="SIInterfaceForADC">
>     <wsdl:port name="SIInterfaceForADCSoap" binding="tns:SIInterfaceForADCSoap">
>       <soap:address location="http://cmcc.esms.com.cn:8086/SIInterfaceForADC.asmx" />
>     </wsdl:port>
>     <wsdl:port name="SIInterfaceForADCSoap12" binding="tns:SIInterfaceForADCSoap12">
>       <soap12:address location="http://cmcc.esms.com.cn:8086/SIInterfaceForADC.asmx" />
>     </wsdl:port>
>   </wsdl:service>
> </wsdl:definitions>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira