users@glassfish.java.net

Embeded glasfish

From: <glassfish_at_javadesktop.org>
Date: Mon, 25 Oct 2010 07:36:23 PDT

Hello.
From a few days trying to run embedded glassfish example on eclipse.
I try different solutions described on various forums .
Using local glasfish or embedded-all.
This is very strange because i have the same project in netbeans and embeded testing works fine without any errors.
The same code (JEE Embedded Container example) imported from netbeans with embedded-static-shell.jar added gives me this error every time:

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)
...
or:
java.util.ServiceConfigurationError: javax.ejb.spi.EJBContainerProvider: Provider org.glassfish.ejb.embedded.EJBContainerProviderImpl not found
        at java.util.ServiceLoader.fail(ServiceLoader.java:214)
        at java.util.ServiceLoader.access$400(ServiceLoader.java:164)
        at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:350)
        at java.util.ServiceLoader$1.next(ServiceLoader.java:421)
        ...

Have anyone any experience in configuration of eclipse project to test ejb on glasfish??
[Message sent by forum member 'troken']

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