IBM Support

PI13740: A JAX-WS client may encounter a WSDLException with FileNotFoundExcepiton while trying to obtain the proxy

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • A JAX-WS client running in WebSphere Application Server V8 might
    encounter this error while trying to obtain the proxy:
    
    javax.wsdl.WSDLException: WSDLException:
    faultCode=WSDL4JWrapper : : javax.wsdl.WSDLException:
    WSDLException: faultCode=WSDL4JWrapper : :
    java.io.FileNotFoundException:
    ./META-INF/wsdl/HelloWorld.wsdl (A file or
    directory in the path name does not exist.)
    at
    org.apache.axis2.jaxws.util.WSDL4JWrapper.commonPartsURLConstruc
    tor(WSDL4JWrapper.java:234)
    at
    org.apache.axis2.jaxws.util.WSDL4JWrapper.<init>(WSDL4JWrapper.j
    ava:156)
    at
    org.apache.axis2.jaxws.description.impl.ServiceDescriptionImpl.s
    etupWsdlDefinition(ServiceDescriptionImpl.java:1040)
    at
    org.apache.axis2.jaxws.description.impl.ServiceDescriptionImpl.<
    init>(ServiceDescriptionImpl.java:226)
    at
    org.apache.axis2.jaxws.description.impl.ServiceDescriptionImpl.<
    init>(ServiceDescriptionImpl.java:156)
    at
    org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.c
    reateServiceDescription(DescriptionFactoryImpl.java:133)
    at
    org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.c
    reateServiceDescription(DescriptionFactoryImpl.java:79)
    at
    org.apache.axis2.jaxws.description.DescriptionFactory.createServ
    iceDescription(DescriptionFactory.java:76)/
    at
    org.apache.axis2.jaxws.spi.ServiceDelegate.<init>(ServiceDelegat
    e.java:211)
    at
    org.apache.axis2.jaxws.spi.Provider.createServiceDelegate(Provid
    er.java:59)
    at javax.xml.ws.Service.<init>(Service.java:67)
    ...
    Caused by: java.io.FileNotFoundException:
    ./META-INF/wsdl/HelloWorld.wsdl (A file or
    directory in the path name does not exist.)
    at java.io.FileInputStream.<init>(FileInputStream.java:112)
    at java.io.FileInputStream.<init>(FileInputStream.java:72)
    at
    sun.net.www.protocol.file.FileURLConnection.connect(FileURLConne
    ction.java:82)
    at
    sun.net.www.protocol.file.FileURLConnection.getInputStream(FileU
    RLConnection.java:173)
    at
    org.apache.axis2.jaxws.util.WSDL4JWrapper$14.run(WSDL4JWrapper.j
    ava:973)
    at
    org.apache.axis2.java.security.AccessController.doPrivileged(Acc
    essController.java:132)
    at
    org.apache.axis2.jaxws.util.WSDL4JWrapper.getInputStream(WSDL4JW
    rapper.java:970)
    at
    org.apache.axis2.jaxws.util.WSDL4JWrapper.commonPartsURLConstruc
    tor(WSDL4JWrapper.java:189)
    ... 26 more
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  IBM WebSphere Application Server users of   *
    *                  JAX-WS clients whose                        *
    *                  <WSDL_SERVICE>_WSDL_LOCATION constant is    *
    *                  set to a relative URL containing a leading  *
    *                  period. For example:                        *
    *                  file:./META-INF/wsdl/HelloWorld.wsdl.       *
    ****************************************************************
    * PROBLEM DESCRIPTION: A JAX-WS client may encounter a         *
    *                      FileNotFoundExcepiton while trying to   *
    *                      obtain the proxy.                       *
    ****************************************************************
    * RECOMMENDATION:  Install a fix pack that contains this       *
    *                  APAR.                                       *
    ****************************************************************
    Consider a wsimport-generated <wsdl_service>Service class
    whose <wsdl_service>_WSDL_LOCATION constant is set to a
    relative URL containing a leading period. For example:
    static {
    URL url = null;
    try {
    url = new
    URL("file:./META-INF/wsdl/HelloWorld.wsdl");
    } catch (MalformedURLException e) {
    e.printStackTrace();
    }
    HELLOWORLDSERVICE_WSDL_LOCATION = url;
    }
    A JAX-WS client can use this class to obtain the proxy to
    invoke the web service. However, when instantiating the class,
    this error might occur:
    javax.wsdl.WSDLException: WSDLException:
    faultCode=WSDL4JWrapper : : javax.wsdl.WSDLException:
    WSDLException: faultCode=WSDL4JWrapper : :
    java.io.FileNotFoundException: ./META-INF/wsdl/HelloWorld.wsdl
    (A file or directory in the path name does not exist.)
    at
    org.apache.axis2.jaxws.util.WSDL4JWrapper.commonPartsURLConstruc
    tor(WSDL4JWrapper.java:234)
    at
    org.apache.axis2.jaxws.util.WSDL4JWrapper.<init>(WSDL4JWrapper.j
    ava:156)
    at
    org.apache.axis2.jaxws.description.impl.ServiceDescriptionImpl.s
    etupWsdlDefinition(ServiceDescriptionImpl.java:1040)
    at
    org.apache.axis2.jaxws.description.impl.ServiceDescriptionImpl.<
    init>(ServiceDescriptionImpl.java:226)
    at
    org.apache.axis2.jaxws.description.impl.ServiceDescriptionImpl.<
    init>(ServiceDescriptionImpl.java:156)
    at
    org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.c
    reateServiceDescription(DescriptionFactoryImpl.java:133)
    at
    org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.c
    reateServiceDescription(DescriptionFactoryImpl.java:79)
    at
    org.apache.axis2.jaxws.description.DescriptionFactory.createServ
    iceDescription(DescriptionFactory.java:76)/
    at
    org.apache.axis2.jaxws.spi.ServiceDelegate.<init>(ServiceDelegat
    e.java:211)
    at
    org.apache.axis2.jaxws.spi.Provider.createServiceDelegate(Provid
    er.java:59)
    at javax.xml.ws.Service.<init>(Service.java:67)
    ...
    Caused by: java.io.FileNotFoundException:
    ./META-INF/wsdl/HelloWorld.wsdl (A file or directory in the
    path name does not exist.)
    at java.io.FileInputStream.<init>(FileInputStream.java:112)
    at java.io.FileInputStream.<init>(FileInputStream.java:72)
    at
    sun.net.www.protocol.file.FileURLConnection.connect(FileURLConne
    ction.java:82)
    at
    sun.net.www.protocol.file.FileURLConnection.getInputStream(FileU
    RLConnection.java:173)
    at
    org.apache.axis2.jaxws.util.WSDL4JWrapper$14.run(WSDL4JWrapper.j
    ava:973)
    at
    org.apache.axis2.java.security.AccessController.doPrivileged(Acc
    essController.java:132)
    at
    org.apache.axis2.jaxws.util.WSDL4JWrapper.getInputStream(WSDL4JW
    rapper.java:970)
    at
    org.apache.axis2.jaxws.util.WSDL4JWrapper.commonPartsURLConstruc
    tor(WSDL4JWrapper.java:189)
    ... 26 more
    

Problem conclusion

  • The JAX-WS runtime was fixed to detect a leading period in the
    WSDL location if it is a relative URL, and if present, remove
    it before trying to resolve the WSDL location.
    
    The fix for this APAR is currently targeted for inclusion in
    fix packs 8.0.0.10 and 8.5.5.3.  Please refer to the
    Recommended Updates page for delivery information:
    http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI13740

  • Reported component name

    WEBSPHERE APP S

  • Reported component ID

    5724J0800

  • Reported release

    800

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2014-03-17

  • Closed date

    2014-05-14

  • Last modified date

    2014-05-14

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    WEBSPHERE APP S

  • Fixed component ID

    5724J0800

Applicable component levels

  • R800 PSY

       UP

  • R850 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.0","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
27 April 2022