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-INFI'm not sure what is the best way to deploy it, but what I did is create a .war file from the "war" 开发者_C百科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.
Figured it out, just missing classes in the EJB jar in MyProject's war/WEB-INF/lib/ folder.
精彩评论