Problem deploying GWT project with a servlet that invoke an EJB

Posted by bovo on Stack Overflow See other posts from Stack Overflow or by bovo
Published on 2010-03-25T04:38:08Z Indexed on 2010/03/25 4:43 UTC
Read the original article Hit count: 321

Filed under:

I have a simple GWT project in Eclipse, it has a servlet that calls an EJB and everything works fine when I run it in hosted mode from Eclipse.

MyProject
+- src
+- JRE System Library
+- GWT SDK
+- Apache Geronimo v2.2
+- myEJB.jar
+- openejb.jar
-- war
-- +- images
-- +- myproject
-- +- WEB-INF

I'm not sure what is the best way to deploy it, but what I did is create a .war file from the "war" folder of the project then deploy it to the server.

Communication between client and server works fine but I get an error when I try to do JNDI look up for the EJB within the servlet. The error I get is something like "JNDI error, cannot find FooManagerRemote"

Things works fine in hosted mode so I'm pretty sure that I din't deploy it correctly.

© Stack Overflow or respective owner

Related posts about gwt