users@jersey.java.net

Re: [Jersey] confusing exception

From: Jakub Podlesak <Jakub.Podlesak_at_Sun.COM>
Date: Mon, 14 Sep 2009 10:01:06 +0200

On Fri, Sep 11, 2009 at 07:48:34AM -0600, Turner, George wrote:
> I am already working another test case for a memory leak in Metro, so this one will have to wait.

O.K.

> For the moment though, I would like to confirm some versioning here.
>
> I am using Glassfish V2.1 with Metro 2.0 and Jdk6u16. The version of Jaxb that is packaged with Metro should be recent enough for the Jersey 1.1.2, or am I mistaken?

Is the jaxb-api jar placed in the lib/endorsed subdirectory of your GFv2 domain?
I need to check with metro guys the JAXB version, but generally since JDK6 bundles JAXB,
you need to use endorsed mechanism here to pick up the right jars.

~Jakub

>
> Thanks
>
> Gene
>
> -----Original Message-----
> From: Jakub.Podlesak_at_Sun.COM [mailto:Jakub.Podlesak_at_Sun.COM]
> Sent: Friday, September 11, 2009 00:59
> To: users_at_jersey.dev.java.net
> Subject: Re: [Jersey] confusing exception
>
> On Fri, Sep 11, 2009 at 03:50:26AM +0200, Jordi Domingo wrote:
> >
> > I was going to ask the same question.I'm using natural notation, JDK6u12 (i tried jdk6u16 a few mins ago) and Glassfish v3 b62.
> > I tried adding Jaxb 2.1.11 in my project and setting <class-loader
> > delegate="false"/> but this generates another exception (even if this
> > works its a very ugly solution..)
>
> The version 2.1.12 (2.1.11 is not sufficient) of JAXB is needed when using natural notation in Jersey. If you installed Jersey via GFv3 update-center client, this should work out of the box without a need to bundle anything with your application war file.
>
>
> Can you please log an issue with your project attached as a reproducible test case?
> If you do not want to make it public, please e-mail directly to me.
>
> Another issue is, that the error message should be properly localized, i.e. still in English, but more verbose and informative in this case. It seems [1] is back again.
> Will try to check out once i get your test case.
>
> Thanks,
>
> ~Jakub
>
> [1]https://jersey.dev.java.net/issues/show_bug.cgi?id=276
>
>
>
> > Thanks for your help.
> > Jordi
> >
> >
> >
> >
> >
> >
> >
> > _________________________________________________________________
> > Messenger cumple 10 años ¡Descárgate ya los nuevos emoticonos!
> > http://www.vivelive.com/felicidades
>
> --
> Jakub Podlešák, Software Engineer
> Web Services and Technologies, SUN Microsystems
> http://blogs.sun.com/japod
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>

-- 
Jakub Podlešák, Software Engineer                                                             
Web Services and Technologies, SUN Microsystems                                               
http://blogs.sun.com/japod