quality@glassfish.java.net

Re: Unit testing EJB modules with GlassFish Embeddable

From: Ludo <Ludovic.Champenois_at_Sun.COM>
Date: Tue, 05 Jan 2010 09:00:35 -0800

Richard Kolb wrote:
> Hi Alexis
>
> 2010/1/5 Alexis Moussine-Pouchkine <alexis.mp
> <http://alexis.mp>@sun.com <http://sun.com>>
>
> Can you share your full POM?
>
>
> thanks, here you go.
>
> I can get GlassFish to start with a mvn install - the plugin is also
> in the pom
>
> But I am trying to get a basic unit test working as per the Ant sample.
>
>
fomr the pom and the stack trace, it seems that the test execution is
using the jar from

        <dependency>
            <groupId>javax</groupId>
            <artifactId>javaee-api</artifactId>
            <version>6.0</version>
            <scope>provided</scope>

which is only an API stripped jar containing no method byte code...This dep is for compiling only, not running anything, including embbeded mode.
Ludo
        </dependency>