users@glassfish.java.net

Re: Accessing Web Service from JSP fails

From: Jitendra Kotamraju <Jitendra.Kotamraju_at_Sun.COM>
Date: Tue, 18 Aug 2009 19:21:12 -0700

glassfish_at_javadesktop.org wrote:
> Hi everyone,
>
> I am trying to run in GlassFishv3 (glassfish-v3-ea-b44) an example from the "Java Web Services - Up and Running" book and it does not work. Here is the structure of the example. I have two applications deployed as war, one containing just the Web Service and the second one containing the html and jsp files for displaying and accessing the web service.
>
> where the value of the temperature comes from a form inside an html file. After I deploy the second file, called tcJSP.war, and run the html file that calls the main jsp file, I get the following error:
>
> [code]
> com.sun.xml.ws.client.ClientTransportException: HTTP transport error: java.lang.UnsupportedOperationException: Method not implemented.
>
Felix osgi runtime doesn't implement
URLStreamHandler.openConnection(URL, Proxy). JAX-WS added a workaround, see
https://jax-ws.dev.java.net/issues/show_bug.cgi?id=291

The work around was added while ago, so any recent GlassFish v3 builds
should work for you.

thanks,
Jitu

> com.sun.xml.ws.transport.http.client.HttpClientTransport.getOutput(HttpClientTransport.java:132)
> com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:153)
> com.sun.xml.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:93)
> com.sun.xml.ws.transport.DeferredTransportPipe.processRequest(DeferredTransportPipe.java:117) com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:629)
>