users@jax-ws.java.net

Re: Endpoint publish() and NOT SUPPORTED exception

From: Jitendra Kotamraju <Jitendra.Kotamraju_at_Sun.COM>
Date: Tue, 06 Mar 2007 16:13:39 -0800

Peter Schow wrote:

>I'm confused about the JAX-WS Endpoint functionality, and publishing
>a Provider<T>
>
>This code:
> public static void main(String[] args) {
> Endpoint e = Endpoint.create(HTTPBinding.HTTP_BINDING,
> new AccountProvider());
> e.publish("http://localhost:8084/account");
> try {
> Thread.sleep(300000);
> } catch(InterruptedException ex_) {
> }
>
> e.stop();
> System.out.println("Endpoint stopped");
> }
>
>runs under JDK 1.6 but on JDK 1.5.0_07-b03 I'm getting :
>
>
> Exception in thread "main" java.lang.UnsupportedOperationException: NOT SUPPORTED
> at com.sun.xml.ws.transport.http.server.EndpointImpl.checkPlatform(EndpointImpl.java:169)
> at com.sun.xml.ws.transport.http.server.EndpointImpl.publish(EndpointImpl.java:84)
>
>
>Should this work on JDK 1.5?
>
>
JDK1.6 already has those http server implementation classes. You
require http.jar when running with JDK 1.5. The jar is part of jax-ws
download bundles.

Jitu

>This is on Solaris 10/SPARC.
>
>Thanks.
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe_at_jax-ws.dev.java.net
>For additional commands, e-mail: users-help_at_jax-ws.dev.java.net
>
>
>