users@glassfish.java.net

Re: Junit Tests with GlassFish Problems

From: Alexis Moussine-Pouchkine <alexis.moussine-pouchkine_at_oracle.com>
Date: Fri, 17 Sep 2010 15:04:14 +0200

how do you launch the test?

On 17 sept. 2010, at 08:48, glassfish_at_javadesktop.org wrote:

> hello,
> thank you for your replay
> i have tried all options what i have found in the net. like adding embedded
> now i have deleted all embedded glassfish jar files but glassfish-embedded-static-shell.jar (as i have red it should use the installed one)
> witch was there at the beginning. now i get the error
> No EJBContainer provider available: no provider names had been found.
> javax.ejb.EJBException: No EJBContainer provider available: no provider names had been found.
> at javax.ejb.embeddable.EJBContainer.reportError(EJBContainer.java:186)
> at javax.ejb.embeddable.EJBContainer.createEJBContainer(EJBContainer.java:121)
> at org.rle.ecenter.ws.eCenterServiceTest.setUpClass(eCenterServiceTest.java:61)
>
> with this code to initiate the glassfish:
>
> Map properties = new HashMap();
> properties.put(EJBContainer.MODULES, new File("C:/Dokumente und Einstellungen/menamet/Eigene Dateien/NetBeansProjects/eCenter-WebServices/build/test/classes"));
> properties.put("org.glassfish.ejb.embedded.glassfish.installation.root",
> "C:/ProgrammFiles/glassfish/glassfish/domains/domain1");
> EJBContainer container = EJBContainer.createEJBContainer(properties); <--------- here where the error occurs
> Context ctx = container.getContext();
> when i use it without the properties i get the same error.
>
> EJBContainer container = EJBContainer.createEJBContainer(properties);
> Yahya
> [Message sent by forum member 'yahya_h']
>
> http://forums.java.net/jive/thread.jspa?messageID=483023
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>