• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

WebSphere EJB Lookup Problems ????

Ranch Hand
Posts: 279
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am very new to Websphere, so please answer my questions in easy words. Thanks for that.

I have Websphere version. I am also using DB2 as my database. I used websphere application studio 5.1.1 as teh developer tool.

I need to do the following

1. Jsp to connect to Servlet - works fine
2. Servlet to LoginCmdHdlr.java - works fine
3. LoginCmdHdlr.java to CbApptierCtrlBean.java via CbApptierCtrlHome.java (using WebTierEjbHomeFactory.java class and one property file) - works fine
4. From CbApptierCtrlBean.java to LoginHelper.java - works fine
5. From LoginHelper.java, I need to look up CsMembersMasterHome.java class using AppTierEjbHomeFactory.java class and get the look up correct, so that Iw ill be able to access the bean to get the values from the database - This is where I am having problems

I am attaching all the relevent files


<web-app id="WebApp">
<servlet-class> com.xxx.yyy.webtier.WebCtrlServlet







The error Message I am getting is (INSIDE SystemOut.log File):::

The error Message I am getting is (INSIDE SystemErr.log File):::

Sorry, I made this post too long, but I just wanted to make sure you had enough information. I also apologize if I am not being specific, since I started with this Websphere only last week and I need to configure this immediately.

P.S - I tried to change the web.xml, ejb-jar.xml and the .xmi files, but i was not able to preserve the format. Please let me know how I should be able to do it. Thanks

Thanks for your help.
[ September 13, 2005: Message edited by: vjy chin ]
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please check your data source configuration. Your exception log shows the data source JNDI name is binded with an EJB other than a connection factory.

Your code is fine. The exception was thrown when it executed the findByUsrenameAndPassword method

Posts: 3645
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey, vjy !

Did you manage to solve the problem ? I have exactly the same ...

Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic