users@jersey.java.net

Re: Samples & Jersey, Atmosphere with Maven Embedded Glassfish

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Thu, 10 Jun 2010 10:50:36 +0200

On Jun 10, 2010, at 12:41 AM, jfarcand wrote:

> Salut,
>
> cross posting to Jersey mailing list for the GF related questions.
>
> On 09/06/10 3:13 PM, Cemo Koc wrote:
>>
>> Hi all,
>>
>> I have big fan of Jersey project and I have been keen on Atmosphere
>> project
>> for a few months. Now I am trying to learn Atmosphere Framework and
>> regarding samples I have a few questions. I have GFv3 and I updated
>> jersey
>> libaries to latest jars (1.2) from maven repository.
>>
>> 1) My first try was about atmosphere-simple-jersey-0.6-SNAPSHOT
>> example.
>> When I deployed sample example to my server, it raises such an
>> exception:
>>
>> Caused by: java.lang.ClassNotFoundException:
>> org.atmosphere.core.JerseyServletProcessor
>> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>
> That strange as that class doesn't exist anymore. Are you sure you
> are using the latest Atmosphere version from here:
>
> http://is.gd/cJlH3
>
>>
>> What is the reason behind this exception?
>>
>> 2) I want to run atmosphere samples with maven embedded glassfish
>> support. I
>> could not be successful to run jersey related samples at glassfish
>> embedded
>> server. Any hint about it?
>
> Can you elaborate/share exceptions? I think there is some sample
> available in Jersey that demonstrate how to do that with GF embed.
> Is there any reason why you need GlassFish? Grizzly works pretty
> well, and you can also use Atmosphere Spade Server which build on
> top of it. This can be as simple as:
>
> * http://is.gd/cJlSV
>

We do have some samples using embedded but currently they are using a
very old version. We are in the process of upgrading. But... there is
a in issue, because Jersey is shipped embedded GF we are having issues
overriding that version with the one required for Atmosphere. We are
working on that issue with the embedded GF team. Pavel can provide
more details.

Paul.