users@glassfish.java.net

Re: JUnit Test with Embeddable Glassfish fails with Error: ...

From: <forums_at_java.net>
Date: Mon, 20 Jun 2011 09:40:07 -0500 (CDT)

The main point is GlassFish embedded runtime cannot find a embedded ejb
container provider, which suggests that your project classpath is not
configured properly.

glassfish-embedded-static-shell.jar is a wrapper jar for all the jars
needed.  But having it in your NetBeans project build path wont' work since
NetBeans doesn't resolve the class-path references specified in
MANIFEST.MF. 

Using glassfish-embedded-all.jar should just work.

Other options:

run it outside NetBeans;

run it inside Eclipse.


--
[Message sent by forum member 'cf126330']
View Post: http://forums.java.net/node/813738