This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Looking up JNDI in Weblogic6 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Looking up JNDI in Weblogic6" Watch "Looking up JNDI in Weblogic6" New topic

Looking up JNDI in Weblogic6


Joined: May 17, 2001
Posts: 6
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>


Don't get me started about those stupid light bulbs.
subject: Looking up JNDI in Weblogic6
Similar Threads
JMS 1.1 + Weblogic + Websphere MQ + XATransactions
"comp/env/ejb/DcOtherInStateBenefitsSessionEJB" not found in context "java:"
JMS subscription problem
xdoclet problem while generating ejb-jar.xml
Fail to bind javax.mail.Session object on JNDI Tree