users@glassfish.java.net

Re: glassfish-embedded-shell.jar 3.0.1 deployment issue

From: <glassfish_at_javadesktop.org>
Date: Mon, 21 Jun 2010 15:57:18 PDT

I would normally agree. However, as I stated previously, if I remove the @Stateless from the UnitTest then EclipseLink is unable to locate the DataSource in JNDI as there are no EJBs defined within the project at that point. When I add the @Stateless back onto the AppTest class then the DataSource lookup from EclipseLink is successful.

Also, when the container loads it appears to locate and load this bean successfully.

Console Output:
INFO: Security service(s) started successfully....
Jun 21, 2010 3:42:39 PM com.sun.ejb.containers.BaseContainer initializeHome
[b]
INFO: Portable JNDI names for EJB AppTest : [java:global/test-classes/AppTest!com.intraxinc.survey.persistence.test.AppTest, java:global/test-classes/AppTest]
[/b]

My issue currently isn't so much getting the GlassFish container to load but rather being able to locate the EntityManager for the persistence unit. If I can get past this then I think the application and unit test will run successfully.
[Message sent by forum member 'fericit_bostan']

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