• 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

Application client reading servlet's JNDI context instead of its own

 
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a problem with my web application. It's packaged like this:

application:
|
+-appclient
|
+-web-client

I have an application-client.xml packaged in my appclient.jar that has an env-entry I'm trying to access via JNDI lookup. But when I try I get a NameNotFoundException with a message that the lookup was looking inside the context of web-client instead of appclient. I am performing the lookup in the application client like this:

and getting this exception:

Am I doing this correctly?
reply
    Bookmark Topic Watch Topic
  • New Topic