users@jersey.java.net

[Jersey] Re: Jersey & Grizzly SSL Server

From: Arul Dhesiaseelan <aruld_at_acm.org>
Date: Fri, 11 Jan 2013 18:35:51 -1000

Hi Scott,

Jersey 1.16 https-clientserver-grizzly sample [1] uses Grizzly 2.2.16. It
should just compile with the latest Grizzly too. All you need is, add
exclusions to your Maven POM, if you want to use Jersey 1.16 + Grizzly
2.2.19.

                <dependency>
                    <groupId>com.sun.jersey</groupId>
                    <artifactId>jersey-grizzly2-servlet</artifactId>
                    <version>${project.version}</version>
                    <exclusions>
                        <exclusion>
                            <groupId>org.glassfish.grizzly</groupId>
                            <artifactId>grizzly-http</artifactId>
                        </exclusion>
                        <exclusion>
                            <groupId>org.glassfish.grizzly</groupId>
                            <artifactId>grizzly-http-server</artifactId>
                        </exclusion>
                        <exclusion>
                            <groupId>org.glassfish.grizzly</groupId>
                            <artifactId>grizzly-http-servlet</artifactId>
                        </exclusion>
                    </exclusions>
                </dependency>
                <dependency>
                    <groupId>org.glassfish.grizzly</groupId>
                    <artifactId>grizzly-http</artifactId>
                    <version>2.2.19</version>
                </dependency>
                <dependency>
                    <groupId>org.glassfish.grizzly</groupId>
                    <artifactId>grizzly-http-server</artifactId>
                    <version>2.2.19</version>
                </dependency>
                <dependency>
                    <groupId>org.glassfish.grizzly</groupId>
                    <artifactId>grizzly-http-servlet</artifactId>
                    <version>2.2.19</version>
                </dependency>

-Arul

[1]
https://maven.java.net/content/repositories/releases/com/sun/jersey/samples/https-clientserver-grizzly/1.16/https-clientserver-grizzly-1.16-project.zip


On Thu, Jan 10, 2013 at 1:46 PM, Scott Natelli <s.natelli_at_yahoo.com> wrote:

> Hello,
>
> I am fairly new to Jersey and Grizzly, but for the past few weeks I have
> been working on creating a RESTful service with Jersey using POJOs, and
> implementing an HTTPS server.
>
> I have successfully managed to create a test service using an HTTP server
> with Jersey, but I have been having considerable trouble trying to
> implement the exact same service using an HTTPS server with Grizzly. Most
> if not all of the examples and documentation I have found online use the
> Grizzly 1.x releases, however, I am trying to use the latest release of
> 2.2.19 for Grizzly with the 1.16 release of Jersey.
>
> I have seen and tried to use the HTTPS example found at the github
> repository (link at the bottom of the email), which I am assuming is up to
> date. However, I cannot find the ResourceConfig class that the example
> uses; I have tried adding the following Jersey & Grizzly JARs, but none of
> them resolve the missing class in Netbeans:
>
> - jersey-core-1.16
> - jersey-server-1.16
> - jersey-client-1.16
> - jersey-servlet-1.16
> - jersey-grizzly2-1.16
> - grizzly-http-all-2.2.19 (and I have tried every other available
> 2.2.19 Grizzly JAR)
>
>
> So, I was wondering if there is a compatibility issue between the version
> of Jersey and Grizzly I am trying to use? But if not, then where can I find
> an up to date example of creating an HTTPS server that implements SSL, like
> the example at the repository?
>
>
> https://github.com/jersey/jersey/tree/master/examples/https-clientserver-grizzly
>
> Thank You,
> Scott
>