Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a problem with my web application. It's packaged like this:


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?
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!