• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic