开发者

Problem deploying GWT project with a servlet that invoke an EJB

开发者 https://www.devze.com 2022-12-24 10:15 出处:网络
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.

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" 开发者_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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号