A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCA Java SE 8 Programmer I Study Guide 1Z0-808
this week in the
tomcat JNDI bug????
Joined: Jun 12, 2004
Apr 07, 2005 11:00:00
i use JNDI to read some configuration variables... but problem is
that sometimes it works but sometimes it does not (without reconfiguring
in between). I use 5.5.7 on
1.5.0_02 (and I tried this on
Windows and Linux).
Here is definition in application's web.xml file:
I try to read it with:
Context initCtx = new
Context envCtx = (Context) initCtx.lookup("java:comp/env");
uri = (
sometimes it is ok... but sometimes I got next message:
Name java:comp is not bound in this Context
I do not know if this is some misconfiguration or what?
subject: tomcat JNDI bug????
Lookup strings question
getInitParameter with a MessageDrivenBean
Issue w/ accesing file from a Servlet
Difference between resource-ref and env-entry
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015