users@jersey.java.net

[Jersey] Missing maven dependency

From: Peter Tap <ptrtap_at_yahoo.com>
Date: Tue, 26 Jul 2011 15:32:20 -0700 (PDT)

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