This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 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 » Databases » Object Relational Mapping
Bookmark "JNDI name lookup exception" Watch "JNDI name lookup exception" New topic
Author

JNDI name lookup exception

Carlos Conti
Ranch Hand

Joined: Apr 21, 2010
Posts: 113
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.
Carlos.
Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1648
    
    7

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: 113
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.

Regards,
Carlos.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JNDI name lookup exception