users@glassfish.java.net

Re: Glassfish v3 and EJB

From: <glassfish_at_javadesktop.org>
Date: Mon, 08 Dec 2008 09:31:34 PST

> Sorry but you misunderstood.
>
> My SLSB is injected in the servlet.
>
> When this SLSB is in WEB-INF/classes everything works
> like a charm.
> But when I have it inside another Maven project, and
> it is copied under WEB-INF/lib at this moment I get a
> nullpointerexception on the EJB.
>
> But everything is still inside a web-app.
>
> Should I use the ejb-ref in the servlet?
> Or is it a limitation of EJB prelude?

It's a limitation of the EJB prelude. For now, the EJB annotations are only
processed on classes in WEB-INF/classes.

>
> Thanks all of you....
>
> Steph
[Message sent by forum member 'ksak' (ksak)]

http://forums.java.net/jive/thread.jspa?messageID=320652