File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes JNDI Name Not Found Found Exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "JNDI Name Not Found Found Exception" Watch "JNDI Name Not Found Found Exception" New topic

JNDI Name Not Found Found Exception

Kalpesh Rawal

Joined: Aug 08, 2006
Posts: 19
Hi.. I am trying to deploy a method of DAO class without using JNDI name.But when i try to deploy it on weblogic it is gvng Name not found exception "while trying to lookup jndi name......" I have to configure my weblogic? How can i debug this error.....
Masoud Kalali
Ranch Hand

Joined: Jul 08, 2004
Posts: 531

best way to recieve answers from ranchers is to post code snippet and some part of your stack trace , this will make it much easier to understand what and where is the problem.

you did not used JNDI in your DAO codes , but when you deploy the application it return error about some JNDI name ,
what you need to do is :
-are you sure that you do not access the Database by a datasource ?
-what is the name that it can not find ?

hope it helps

Masoud Kalali
Software Engineer - My Weblog - GlassFish Security
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17250

I don't understand, what do you have in the JNDI tree? Is it the DAO, or some other class. At the point of DAO, I wouldn't think there would be any reason for why the DAO would need to access the JNDI tree, unless they are accessing Entity Beans. Maybe it is the DAO that you have in the JNDI tree?


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: JNDI Name Not Found Found Exception