• 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
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Devaka Cooray
  • Ron McLeod
  • paul wheaton
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Frits Walraven
  • Scott Selikoff

NameNotFoundException in JDNI look up

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all - new to Websphere and learning J2EE. My problem, I have a session bean that tries to get an instance of a entity bean's local home. I am doing this via JNDI look up:



and ServiceLocator.getInstance().getLocalHome() looks like this:


I am getting the following exception:
javax.naming.NameNotFoundException: Name "comp/env/Closed_day" not found in context "java:".]: com.actech.webroads.common.ServiceLocatorException: javax.naming.NameNotFoundException: Name "comp/env/Closed_day" not found in context "java:".

I have tried adding a ejb-reference tag to my session bean in my deployment descriptor (manually, but I am sure WASD has way to do this for me) and it didn't help.

Any suggestions are greatly appreciated!

[ August 27, 2004: Message edited by: Matthew Sloan ]
[ August 27, 2004: Message edited by: msloan ]
 
Been there. Done that. Went back for more. But this time, I took this tiny ad with me:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic