I have a simple project to test JAX-RS services. Yesterday I downloaded jersey-1.7.1 and used com.sun.jersey.api.container.httpserver.HttpServerFactory and com.sun.net.httpserve
You can also get the bundle from here http://mvnrepository.com/artifact/com.sun.jersey/jersey-server/1.2 Just add it to your library folder then right click on it in the project and select "Add as a library."
Pls try this Grizzly 2 bundle http://search.maven.org/remotecontent?filepath=org/glassfish/grizzly/grizzly-http-servlet-server/2.3.3/grizzly-http-servlet-server-2.3.3.jar
You could use the JdkHttpServerFactory, which is available in the jersey-container-jdk-http-2.0.jar:
ResourceConfig rc = new ResourceConfig(HelloWorldResource.class);
HttpServer server = JdkHttpServerFactory.createHttpServer(baseUri, rc);
No need to call server.start()!