users@glassfish.java.net

JAX-WS in Embedded Glassfish v3

From: <glassfish_at_javadesktop.org>
Date: Wed, 26 May 2010 08:02:11 PDT

Hi,

is it possible to deploy JAX-WS Web services in an Embedded Glassfish v3?

I've tried to add a container as follows:

ContainerBuilder webCont = serv.createConfig(ContainerBuilder.Type.webservices);
server.addContainer(webCont);

but, when I run it I have an error:

java.lang.NullPointerException
        at org.glassfish.api.embedded.Server.addContainer(Server.java:483)
        at it.pintux.glassfish.MainClass.main(MainClass.java:30)

which is at the server.addContainer(webCont); code line.

Thanks

Antonio
[Message sent by forum member 'pintux']

http://forums.java.net/jive/thread.jspa?messageID=471528