4 Replies Latest reply: Jan 28, 2013 6:24 AM by r035198x RSS

    Web service WSDL becomes non-responsive after some time (time not fixed)

    985191
      I have a wsdl deployed on glassfish 2.1 (ESB version) and this web service has few web methods which work upon a shared library (managed by other project having a dependent project included in this project).
      After some time this web service stops responding. And the web service client can not make any connection to this web service. And wsdl is also not accessible from web browser.

      It can only be accessible after a re-deploy. This is a very strange but frustrating scenario that we have to re-deploy web service again and again.
      Following is the exception observed from the client code that is trying to access the web service:
      Unable to get Port for ByosStatusCacheService. Failed to access the WSDL at: http://localhost:8050/byos4StatusCache/ByosStatusCacheServiceService?wsdl. It failed with:
           http://localhost:8050/byos4StatusCache/ByosStatusCacheServiceService?wsdl.
      javax.xml.ws.WebServiceException: Failed to access the WSDL at: http://localhost:8050/byos4StatusCache/ByosStatusCacheServiceService?wsdl. It failed with:
           http://localhost:8050/byos4StatusCache/ByosStatusCacheServiceService?wsdl.
           at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.tryWithMex(RuntimeWSDLParser.java:162)
           at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:144)
           at com.sun.xml.ws.client.WSServiceDelegate.parseWSDL(WSServiceDelegate.java:263)
           at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:226)
           at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:174)
           at com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:104)
           at javax.xml.ws.Service.<init>(Service.java:56)
           at com.paetec.byos.service.ByosStatusCacheServiceService.<init>(ByosStatusCacheServiceService.java:42)
           at com.mcleodusa.boys.jmx.ByosJobMonitor.getByosStatusCacheService(ByosJobMonitor.java:79)
           at com.mcleodusa.boys.jmx.ByosJobMonitor.run(ByosJobMonitor.java:34)
           at java.lang.Thread.run(Thread.java:619)
      Caused by: java.io.FileNotFoundException: http://localhost:8050/byos4StatusCache/ByosStatusCacheServiceService?wsdl
           at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1311)
           at java.net.URL.openStream(URL.java:1010)
           at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.createReader(RuntimeWSDLParser.java:805)
           at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.resolveWSDL(RuntimeWSDLParser.java:262)
           at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:129)
           ... 9 more

      Any help or pointers will be appreciated.

      Thanks,
      Sachin

      Edited by: 982188 on Jan 16, 2013 2:23 AM