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\
Symptom
- Create an EJB 2.1 project
- Create a wsdl folder under the ejbModule\META-INF folder
- Import the wsdl file to the ejbModule\META-INF\wsdl folder
- Generate web services client using WebSphere Application Server v6.1 JAX-WS web services runtime
- 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)
...
Log InLog in to view more of this document
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21398371