• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

EJB Lookup problem

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
for last 3 weeks i was struggling to solve an EJB Lookup problem. yesterday lastly i found solution on IBM's site . i want to share it with you as the pain to find a solution to this problem was monumental and i would like to save others from the same pain.

Scnario: i created one EJB project(say ABCD) on WSAD5 and deployed there itself. i created one web project on WSAD5 on another PC(say PC2). now i tried to lookup ABCD which was running on PC1. it failed to lookup and threw some Exception. then i created an independent java class and tried to lookup the same bean from PC1 itself to check if jndi binding is fine or not, but this time i got entirely dirrerent Exception.

solution to 2nd problem was that, EJB running on PC1 was using IBM JDK and the independent java class which i wrote was using SUN JDK and there was a mismatch which was causing the problem. after compiling and running the class on IBM JDK it started Looking up the bean succesfully. but the web application on PC2 was still failing. here also i changed the JDK version for whole web application but of no use. the actual problem was the serverindex.xml file. this file is used by the application server. in this file there is one property called endPointName="BOOTSTRAP_ADDRESS" whose value was "localhost". when i cahnged it to the corresponding ip address, the web application also started looking up successfully. and after 3 weeks i happily.......

Arun Kumar
 
Do not set lab on fire. Or this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic