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 29141] New: - JNDI Datasource HOW-TO server.xml config example doesn't work
Date Fri, 21 May 2004 15:31:34 GMT
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: tomcat-dev@jakarta.apache.org
        ReportedBy: cdevarenne@yahoo.com


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: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message