users@jersey.java.net

Re: [Jersey] question about Client API

From: Felipe Gaúcho <fgaucho_at_gmail.com>
Date: Thu, 30 Apr 2009 19:19:41 +0200

ok, I always forgot I can't test it with ejbs :( eheh .. no problem..
I will keep my curl experiment :)

On Thu, Apr 30, 2009 at 6:58 PM, Paul Sandoz <Paul.Sandoz_at_sun.com> wrote:
>
> On Apr 30, 2009, at 6:52 PM, Felipe Gaúcho wrote:
>
>> Hi Paul,
>>
>> I have a Java EE application where I want to instantiate the Jersey
>> Client ... just that..  I don't need to use the embedded
>> Glassfish.......
>>
>> so, how can I achieve that ?
>>
>> I should remove the javaee.jar and replace it by something.. but I
>> can't find what ....
>>
>
> The Jersey 1.0.3 test framework does not support external deployment. Naresh
> is working on that, but IIRC it is not finished yet.
>
> You have to use some maven-based deployment mechanism to deploy to a fulling
> running GF instance. Please ask on the users_at_glassfish.dev.java.net alias.
>
> Paul.
>
>
>>
>>
>> On Thu, Apr 30, 2009 at 6:48 PM, Paul Sandoz <Paul.Sandoz_at_sun.com> wrote:
>>>
>>> On Apr 30, 2009, at 6:45 PM, Felipe Gaúcho wrote:
>>>
>>>> humm.. well, I am combinning EJB 3 with Jersey..
>>>>
>>>> so, how can I use the ejbs without javaee ?
>>>>
>>>
>>> Unfortunately embedded GF does not currently support EJBs. It will once
>>> embedded GF aligns with Glassfish v3, but i do not know when that will
>>>  be.
>>>
>>> Paul.
>>>
>>>> I will check here........
>>>>
>>>> On Thu, Apr 30, 2009 at 6:41 PM, Paul Sandoz <Paul.Sandoz_at_sun.com>
>>>> wrote:
>>>>>
>>>>> On Apr 30, 2009, at 6:34 PM, Felipe Gaúcho wrote:
>>>>>
>>>>>> My service has this resource:
>>>>>> http://fgaucho.dyndns.org:8080/footprint-service/user/read/5
>>>>>>
>>>>>> then I tried to run a test case using the following code:
>>>>>>
>>>>>>      @Test
>>>>>>      public void createUser() {
>>>>>>              Client client = Client.create();
>>>>>>              WebResource webResource = client
>>>>>>
>>>>>>
>>>>>>
>>>>>>  .resource("http://fgaucho.dyndns.org:8080/footprint-service/user/read/5");
>>>>>>              FpUserWritable user =
>>>>>> webResource.get(FpUserWritable.class);
>>>>>>      }
>>>>>>
>>>>>> and the exception:
>>>>>>
>>>>>> java.lang.ClassFormatError: Absent Code attribute in method that is
>>>>>> not native or abstract in class file javax/servlet/http/HttpServlet
>>>>>>      at java.lang.ClassLoader.defineClass1(Native Method)
>>>>>>      at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
>>>>>>      at
>>>>>>
>>>>>> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
>>>>>>      at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
>>>>>>
>>>>>> ...
>>>>>>
>>>>>> what is wrong ??
>>>>>>
>>>>>
>>>>> It looks like another stubbed jar issue you were running into
>>>>> previously.
>>>>>
>>>>> The problem being:
>>>>>
>>>>>  <classpathentry kind="var"
>>>>> path="M2_REPO/javaee/javaee-api/5/javaee-api-5.jar"/>
>>>>>
>>>>> Paul.
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>>>>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> Please help to test this application:
>>>> http://fgaucho.dyndns.org:8080/cejug-classifieds-richfaces
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>>>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>>>
>>>
>>
>>
>>
>> --
>>
>> Please help to test this application:
>> http://fgaucho.dyndns.org:8080/cejug-classifieds-richfaces
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
>



-- 
Please help to test this application:
http://fgaucho.dyndns.org:8080/cejug-classifieds-richfaces