• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

EJB call from TOMCAT 7

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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]
 
All of the following truths are shameless lies. But what about this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic