DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24545>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24545 DataSourceRealm cannot see JNDI DataSource defined within a Context Summary: DataSourceRealm cannot see JNDI DataSource defined within a Context Product: Tomcat 4 Version: 4.1.29 Platform: PC URL: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm- howto.html#DataSourceRealm OS/Version: Linux Status: NEW Severity: Normal Priority: Other Component: Catalina:Modules AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] When defining a Realm withing a Context (in an xml fragment in the webapps directory), I can only seem to use a JNDI DataSource defined in the GlobalNamingResources section of server.xml. If a Resource and ResourceParams section are defined withing the Context where I use the DataSourceRealm, JNDI lookups fail. DataSourceRealm cannot find them. I believe this to be a defect in the way that DataSourceRealms.open() is written. It uses ServerFactory.getServer() to get the Server object and it's global naming context. It seems like there should be a way to get a more "local" JNDI naming context where the webapp-Context-defined Resource will be visible. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]