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 14261] New: - JNDI data source not configured correctly.
Date Tue, 05 Nov 2002 17:01:35 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=14261>.
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=14261

JNDI data source not configured correctly. 

           Summary: JNDI data source not configured correctly.
           Product: Tomcat 4
           Version: 4.1.12
          Platform: Other
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Unknown
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: mmangino@acm.org


I followed the direction on the site http://jakarta.apache.org/tomcat/tomcat-
4.1-doc/jndi-datasource-examples-howto.html and I am unable to get a connection 
to the datasource. I put code in the commons-dbcp code to print what is 
happening: On startup, I see that all of the values are set and a datasource is 
created. When I call lookup in my servlet, I see that only the following 
RefAddr's are passed in. 

Type: description
Content: Storms Connection

Type: scope
Content: Shareable

Type: auth
Content: Container

This means that no values are set in the BasicDataSource class, and when I call 
getConnection, it throws an error because driverClassName is null. 

I am specifying the datasource in the global naming section of server.xml, and 
am requesting it in a self deploying web application.

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


Mime
View raw message