Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

javax.naming.NameNotFoundException:  RSS feed

 
Khalid Habib
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys
I have created a web service in which I used db2 database
I am connecting this database by jndi datasource
when I try to run it is showing me following error

and here is code


javax.naming.NameNotFoundException: javax.naming.NameNotFoundException: "dbc/IBM_FORMS_DATA_SOURCE
 
Vijitha Kumara
Bartender
Posts: 3973
24
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well you need to make sure this Datasource is properly bind in to the JNDI context and your code can access it (i.e.: you are running this code in a context where JNDI provider is available).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!