users@glassfish.java.net

Re: [Fwd: [embedded] How to unit test an EJB with Maven ?]

From: Ludovic Champenois <Ludovic.Champenois_at_Sun.COM>
Date: Wed, 23 Sep 2009 13:44:02 -0700

On 9/23/09 2:36 AM, Antonio Goncalves wrote:
>
> Hi,
>
>
> It's really annoying to have a full glassfish distribution to make it
> work. It goes against the entire "leightweight" container. Developers
> will still think that to run an EJB we still need an entire app
> server. If you could make EJBs work with just one (or a couple)
> dependency in a Maven pom.xml, that would be a killer (my 2 cents).
>
> Ok. So I've taken out Maven dependencies and just add the
> glassfish-embedded-static-shell.jar to my classpath. First reaction,
> my IDE (Intellij IDEA) doesn't add all the libraries defined in the
> MANIFEST.MF, so it compiles but the code editor is full of class not
> found (that's sad).
>
yep, sad...
Same behavior with Eclipse and NetBeans, so all IDEs outside do not
honor the libs defined in a manifest file for compilation purposes...

Ludo
>
> When I run my example (I'm now using a very simple Main class instead
> of a unit test), I have the following error (looks like it's related
> to security lifecycle).
>
>
> Any idea ?
>
> Thanks,
>
> Antonio
>
>