File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes EJB call from TOMCAT 7 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB call from TOMCAT 7 " Watch "EJB call from TOMCAT 7 " New topic

EJB call from TOMCAT 7

alessio paciello

Joined: Jun 09, 2012
Posts: 2
Hi to everyone!

I' have a web application deployed on Tomcat 7.0.22 server and i'm trying to call a stateless EJB deployed on Glassfish3.1 (both servers are on the same machine).
I had a lot of problems about the configuration of tomcat (about adding .jar to make "initcontextFactory" and other things to work).Now this is my problem:
the JNDI lookup is correct (indeed if I try to change the jndi in the lookup I receive an exception) but the client remains waiting for an answer .I don't know if it's a client or server
problem (glassfish doesn't show any log about it!)
Here is my code:

Here is my Action:



The interface of the EJB is in a custom library that I included in the webapp and in the EJB module.
NOTICE that when i deploy the webapp on glassfish eveything works perfectly.
Thanks for your time and your help!
Regards A.P. [/size]
It is sorta covered in the JavaRanch Style Guide.
subject: EJB call from TOMCAT 7