tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 24723] - JNDI Datasource HOWTO instructions incorrect - Name jdbc is not bound in this Context
Date Sat, 15 Nov 2003 16:35:53 GMT
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=24723>.
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=24723

JNDI Datasource HOWTO instructions incorrect - Name jdbc is not bound in this Context





------- Additional Comments From minfrin@sharp.fm  2003-11-15 16:35 -------
Success at last.

Turns out the HOWTO documentation is incomplete and incorrect.

- The HOWTO claims that the <resource> section should go under the context. This
does not work - a Google search has revealed a number of people with this
problem, and there is at least one bug report open.

The correct place (as in "the place where it works") to put <resources> is in
the <GlobalNamingResources> section, which goes under <Server>.

A further problem with the HOWTO is consistency with regards to datasource
naming. Under the postgres section, the datasource is first named
"jdbc/postgres", then it is named "jdbc/mydb" under web.xml. This is confusing
to first time users.

In order to get Realms to work, the realm must refer to the datasource as
defined in the <globalnamingresources> section, not a datasource as renamed
using <resourcelink>. This is not made clear in the HOWTO.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message