users@glassfish.java.net

Re: Jersey NullPointerException (one in a series)

From: NBW <emailnbw_at_gmail.com>
Date: Fri, 15 Oct 2010 10:29:16 -0400

Removing beans.xml 'turns off' CDI/Weld so if Weld was throwing the NPE I
would expect removing that file would make your NPE go away. @ManagedBean is
DI associated with JSF whereas @Named is the Weld/CDI DI annotation.

-Noah

On Fri, Oct 15, 2010 at 6:40 AM, <glassfish_at_javadesktop.org> wrote:

> Hi Laird,
>
> You were so right - removing beans.xml, but keeping @ManagedBean solved my
> problems. There must have been a change somewhere between b13 and b14 that
> caused the hassles if both were present in a war.
>
> Regards,
>
> Steve.
> [Message sent by forum member 'suttridge_farm']
>
> http://forums.java.net/jive/thread.jspa?messageID=485269
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>