IBM Support

Error java.io.FileNotFoundException invoking EJB JAX-WS web services client code

Troubleshooting


Problem

Invoking web services client code generated using IBM WebSphere Application Server v6.1 in the _service.java proxy file results in error "java.io.FileNotFoundException: .\META-INF\wsdl\ (The system cannot find the path specified.)"

Symptom

  1. Create an EJB 2.1 project
  2. Create a wsdl folder under the ejbModule\META-INF folder
  3. Import the wsdl file to the ejbModule\META-INF\wsdl folder
  4. Generate web services client using WebSphere Application Server v6.1 JAX-WS web services runtime
  5. Invoke the generated web services code (for example generate a JSP client in Rational Application Developer for WebSphere Software and run the JSP client), and you will see similar exceptions in the console logs as follows:

ServletWrappe E   SRVE0068E: Uncaught exception thrown in one of the service methods of the servlet: /sampleTXLifeServiceSOAPProxy/Result.jsp. Exception thrown : javax.xml.ws.WebServiceException: The following WSDL exception occurred: WSDLException: faultCode=WSDL4JWrapper : : javax.wsdl.WSDLException: WSDLException: faultCode=WSDL4JWrapper : : java.io.FileNotFoundException: .\META-INF\wsdl\TXLifeService.wsdl (The system cannot find the path specified.)

at org.apache.axis2.jaxws.ExceptionFactory.createWebServiceException(ExceptionFactory.java:178)

at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:79)

at

...

Caused by: java.io.FileNotFoundException: .\META-INF\wsdl\TXLifeService.wsdl (The system cannot find the path specified.)

at java.io.FileInputStream.open(Native Method)

at java.io.FileInputStream.<init>(FileInputStream.java:135)

at java.io.FileInputStream.<init>(FileInputStream.java:95)

at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:85)

at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.ja…

at org.apache.axis2.jaxws.util.WSDL4JWrapper$4.run(WSDL4JWrapper.java:575)

at org.apache.axis2.java.security.AccessController.doPrivileged(AccessController.java:130)

at org.apache.axis2.jaxws.util.WSDL4JWrapper.getInputStream(WSDL4JWrapper.java:572)

at org.apache.axis2.jaxws.util.WSDL4JWrapper.<init>(WSDL4JWrapper.java:133)

...

[{"Product":{"code":"SSRTLW","label":"Rational Application Developer for WebSphere Software"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Web Services Development","Platform":[{"code":"PF033","label":"Windows"},{"code":"PF016","label":"Linux"}],"Version":"7.5;7.5.1;7.5.2;7.5.3","Edition":"","Line of Business":{"code":"LOB77","label":"Automation Platform"}},{"Product":{"code":"SS4JCV","label":"Rational Software Architect for WebSphere Software"},"Business Unit":{"code":"BU053","label":"Cloud \u0026 Data Platform"},"Component":"Web Services Development","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"7.5.4","Edition":"","Line of Business":{"code":"LOB15","label":"Integration"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
16 June 2018

UID

swg21398371