users@grizzly.java.net

Re: Missing maven dependency

From: Oleksiy Stashok <oleksiy.stashok_at_oracle.com>
Date: Tue, 26 Jul 2011 10:49:19 +0200

Hi Peter,

please use artifactId: jersey-grizzly2

WBR,
Alexey.

On 07/26/2011 06:24 AM, Peter Tap wrote:
>
> Folks,
>
> I am trying to host Grizzly HTTP server for my Jersey-based Web
> service. Following the "Hello World" sample at jersey.java.net, I have
> added the following dependency in my Maven pom.xml file:
>
> <dependency>
> <groupId>com.sun.jersey</groupId>
> <artifactId>jersey-grizzly</artifactId>
> <version>1.8</version>
> </dependency>
>
> However, during the build I get the following error:
>
> The type com.sun.grizzly.http.SelectorThread cannot be resolved. It is
> indirectly referenced from required .class files.
>
> The line this error is reported at is the following:
>
> HttpServer server =
> GrizzlyWebContainerFactory.create("http://0.0.0.0:8083/MyTest",
> initParams);
>
> Can someone please tell me if there is another Maven dependency I need
> to add?
>
> Thank you in advance for your help.
>
> Regards,
> Peter