File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Application client reading servlet's JNDI context instead of its own Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Application client reading servlet Watch "Application client reading servlet New topic
Author

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

Rob Micah
Ranch Hand

Joined: Aug 30, 2011
Posts: 89
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?
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Application client reading servlet's JNDI context instead of its own
 
Similar Threads
Geting exeption in JNDI
Lookup strings question
JNDI - Bind two applications
DB JNDI lookup WAS 4.0
Basic JNDI caching questions.