users@glassfish.java.net

Re: GF embedded and web services.

From: Siraj Ghaffar <Siraj.Ghaffar_at_Sun.COM>
Date: Tue, 19 Jan 2010 09:01:45 -0500

webservices are not yet supported in embedded - that could be the problem.

glassfish_at_javadesktop.org wrote:
> Hi people,
> I have got ejb3 project with web services on GF2. I would like to use embedded GF for testing endpoints. Actually I have found not so many info about it. My qustions are:
> 1. Is it possible at all?
> 2. If the first answer is positive - I am trying code like this:
>
> Server.Builder builder = new Server.Builder("test");
> server = builder.build();
> server.createPort(8885);
> server.start();
> EmbeddedDeployer deployer = server.getDeployer();
> DeployCommandParameters params = new DeployCommandParameters();
> deployer.deploy(jar, params);
>
> where jar is File with path to the archive. I am getting such message:
> INFO: Grizzly Framework 1.9.18-k started in: 464ms listening on port 8885
> Jan 19, 2010 4:27:36 PM org.glassfish.api.ActionReport failure
> SEVERE: Module type not recognized.
> What am I doing wrong (I am using glassfish-embedded-all)?
>
> Thanks.
> [Message sent by forum member 'fil78' (andreessen_at_list.ru)]
>
> http://forums.java.net/jive/thread.jspa?messageID=381693
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>