users@glassfish.java.net

Re: CDI problems in Jersey/JAX-RS; bug filed

From: Paul Sandoz <Paul.Sandoz_at_oracle.com>
Date: Wed, 22 Sep 2010 09:05:07 -0700

On Sep 22, 2010, at 8:55 AM, glassfish_at_javadesktop.org wrote:

> Bug filed: https://glassfish.dev.java.net/issues/show_bug.cgi?id=13572
>
> Briefly: don't use CDI in a JAX-RS application. And then make sure
> to annotate your resource classes with @ManagedBean if you want to
> use @EJBs inside them.
>

There are a bunch of regressions with the version of Weld integrated
into GF that is affecting Jersey:

https://glassfish.dev.java.net/issues/show_bug.cgi?id=13204

https://glassfish.dev.java.net/issues/show_bug.cgi?id=13131

https://glassfish.dev.java.net/issues/show_bug.cgi?id=13132


We tried to work around the proxying issue but it appears to cause
another issue in some cases, like the NPE you are observing. The
Jersey team are kind of stuck until the above are fixed.

Paul.