Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB call from TOMCAT 7  RSS feed

 
alessio paciello
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:


Interface


EJB




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]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!