File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Object Relational Mapping and the fly likes JNDI name lookup exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "JNDI name lookup exception" Watch "JNDI name lookup exception" New topic

JNDI name lookup exception

Carlos Conti
Ranch Hand

Joined: Apr 21, 2010
Posts: 131
Hi all,

How can I get such an exception if my persistence file is set as "RESOURCE_LOCAL". Also in context.xml I have no entry for a DataSource.

Where are all the main infos for the JNDI contexts set? Whenever I come to deal with JNDI I am completely lost...

I am going bananas....

I am developing with Netbeans 7.1 with Hibernate 4,1,7.

Any ideas?

Rebuild full project???

Thanks for your help.
Bill Gorder

Joined: Mar 07, 2010
Posts: 1682

Can you show us some more of your configuration? Are you using any other frameworks as well?

[How To Ask Questions][Read before you PM me]
Carlos Conti
Ranch Hand

Joined: Apr 21, 2010
Posts: 131
Hi Bill thanks for your answser.

I rebuilt the project and everything worked like it used to be. So I presume my configuration is correct, and there was something with the Netbeans Project cache which was missconfigured.

the basic discussion was to determine if a RESOURCE_LOCAL configured persistence unit would require a JNDI name. In fact it shouldn't. I guess I clicked on something unintentionally and Netbeans got stuck with that.

Thanks anyway for your interest.

I agree. Here's the link:
subject: JNDI name lookup exception
It's not a secret anymore!