Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting javax. naming. NameNotFoundException from new Thread created by JSP page

VinayC Jain
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to implement the strategy to show the user a waiting page, which a complex SQL query is processed in the background in a separate thread.

When I try to get an InitialContext and do a lookup, I get the following exception

Here is the code which I am using to get a DataSource

Its the same code I use throughout my application and it works everywhere, except from the new thread. Here is the code from jsp page

I am using WebSpehre 5.0

Any ideas would be highly apcodeciated. I just can't seem to understand why would this happen only in new thread but works fine in rest of the places in my WebApplication.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic