I seem to be having an odd problem getting access to a JNDI resource in
a servlet init() function under Tomcat 4.1.12.  There is a similar bug
listed for 4.1.7 (#10948) as well as other bugs like 14461 and 14367. 
My problem is that init() is getting called, and it can get the
InitialContext().  It can't, however, access a JNDI database definition.
 I use the init() method to populate some static data with a call to the
servlet allowing it to be updated if we make a database change (that is
fairly rare, but could happen).  The strange thing is that the servlet
works just fine if I call it (accessed via doGet()).  The data access
code is exactly the same in the two methods (init(), doGet()).  The
init() function worked fine under 4.0.3.

Does anyone do anything like this?  My guess is that the environment
context isn't yet populated when the init() function is called--which
seems like a bug.  Anyone have any ideas?

Other specs:  Solaris, JDK1.3.1_01

Thanks,
Joel


Joel Sather
email: [EMAIL PROTECTED]
phone: 651-649-5789

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>

Reply via email to