Can anybody reproduce the bug I'm getting in Tomcat 6.0.29, or is it just me?
I'm trying to access a DataSource via JNDI from a ServletContextListener. I find that my InitialContext has no bindings at all in the ServletContextListener.contextInitialized() method. It makes no difference whether I declare the DataSource in META-INF/context.xml or in conf/server.xml (with a ResourceLink in META-INF/context.xml). A Bugzilla bug was filed for this behavior under Tomcat 7, and the bug was patched. https://issues.apache.org/bugzilla/show_bug.cgi?id=49132 That bug report includes a bare-bones Eclipse project that exhibited the error under Tomcat 7. When I deploy that project on Tomcat 6.0.29, I get the same behavior that was reported under Tomcat 7, consistent with my original DataSource problem. I reported my experience in Bugzilla but it was rejected. https://issues.apache.org/bugzilla/show_bug.cgi?id=49673 Perhaps I've configured something wrong - does anybody else get the same behavior with the Eclipse project "tomcat7-web-test" under Tomcat 6.0.29? Or is there something wrong with the posted project? --Steve