DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=29141>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=29141 JNDI Datasource HOW-TO server.xml config example doesn't work Summary: JNDI Datasource HOW-TO server.xml config example doesn't work Product: Tomcat 4 Version: 4.1.17 Platform: All OS/Version: All Status: NEW Severity: Enhancement Priority: Other Component: Webapps:Documentation AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] After reading and trying the JNDI Datasource HOW-TO and reading lots of posts on the tomcat-user mailing list, I was able to get things to work (in my case for postgres). From the high number of posts on the tomcat-user mailing list it seems that amending the info in the HOW-TO would help. Here is what I found. In the HOW-TO for the server.xml configuration it tells you to configure your datasource as follows: "Add this in between the </Context> tag of the examples context and the </Host> tag closing the localhost definition." Well this did not work for me, I could not get the datasource. After reading posts on the tomcat-user mailing list, I put the datasource configuration information within the <GlobalNamingResources> section of server.xml. Under my web app context I put a ResourceLink that looks like this: <ResourceLink name="jdbc/TestDB" global="jdbc/TestDB" type="javax.sql.DataSource"/> It worked. I experienced the same thing with Tomcat 5.0.19 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]