This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Svelte and Sapper in Action and have Mark Volkmann on-line!
See this thread for details.
Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Looking up JNDI in Weblogic6

Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am writing an ststeless session bean and trying to calll the bean from a servlet. i have copied the xml descriptor files from the examples and manipulated. i can weblogic.ejbc creates the required stub and skeleton classes. but when i try to run the servlet it gives the following exception. Anybody who faced the same or similar problem do help send the suggestions to or do post it here itself.
javax.naming.NameNotFoundException: Unable to resolve lookupCountryBean. Resolved: '' Unresolved:'
emaining name ''
<<no stack trace available>>

the following is the code from the servlet
Object obj = ctx.lookup("lookupCountryBean");
CountryHome home=(CountryHome)PortableRemoteObject.narrow(obj,CountryHome.class);
CountryRemote remote = home.create();
the xml file entries ar as below
<description>no description</description>
<description>Data Source for Country Bean</description>


There's a way to do it better - find it. -Edison. A better tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic