users@grizzly.java.net

Re: [Jersey] Starting a Web-App with the GrizzlyWebContainer

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Tue, 13 Apr 2010 11:56:11 +0200

Hi Timo,

The GrizzlyWebContainerFactory provides limited functionality. So you
will need to use more of the Grizzly web/servlet-based APIs.

See here:

http://weblogs.java.net/blog/survivant/archive/2009/04/grizzly_httpdep.html
http://weblogs.java.net/blog/survivant/archive/2009/04/grizzlywebserve.html

It should be possible to deploy from an "exploded" war.

CC'ing the Grizzly users list for more details.

Paul.

On Apr 13, 2010, at 11:39 AM, Wolf, Timo wrote:

> Hi,
>
> For testing, I used to start my jersey based web service with the
> GrizzlyWebContainerFactory as shown in all the samples.
>
> ...
> SelectorThread threadSelector =
> GrizzlyWebContainerFactory.create(BASE_URI, initParams);
> ...
>
>
> Now, I had to add some JSPs and css stylesheet files to the web-app.
> These files are not accessible when using the
> GrizzlyWebContainerFactory as before.
>
> Is there a way to bundle the whole web-app (including the web.xml)
> from Java and start it with the GrizzlyWebContainerFactory?
>
> Thanks a lot,
>
> Best,
> Timo
>
>