Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@apache.org Received: (qmail 42438 invoked from network); 7 Nov 2002 19:09:59 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 7 Nov 2002 19:09:59 -0000 Received: (qmail 11571 invoked by uid 97); 7 Nov 2002 19:10:48 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-dev@jakarta.apache.org Received: (qmail 11553 invoked by uid 97); 7 Nov 2002 19:10:47 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 11539 invoked by uid 50); 7 Nov 2002 19:10:47 -0000 Date: 7 Nov 2002 19:10:47 -0000 Message-ID: <20021107191047.11538.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: tomcat-dev@jakarta.apache.org Cc: Subject: DO NOT REPLY [Bug 14261] - JNDI data source not configured correctly. X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . 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. ------- Additional Comments From mmangino@acm.org 2002-11-07 19:10 ------- I have the configuration information in the Global naming section. Upon startup, I see the following RefAddrs passed in to the BasicDataSourceFactory code: INFO: Initializing Coyote HTTP/1.1 on port 9080 In code! Type: scope Content: Shareable Type: auth Content: Container Type: url Content: jdbc:oracle:thin:@east2:1521:DWMSDEV Type: maxIdle Content: 2 Type: maxActive Content: 5 Type: maxWait Content: -1 Type: driverClassName Content: oracle.jdbc.driver.OracleDriver Type: removeAbandoned Content: true Type: username Content: s154480 Type: factory Content: org.apache.commons.dbcp.BasicDataSourceFactory Type: logAbandoned Content: true Type: password Content: mjm2278 ra=Type: driverClassName Content: oracle.jdbc.driver.OracleDriver The following entry is from within the BasicDataSource code. DriverClassName=oracle.jdbc.driver.OracleDriver When I actually visit the first page that uses the data source, I see the BasicDataSourceFactory called with the following refaddrs: In code! Type: description Content: Storms Connection Type: scope Content: Shareable Type: auth Content: Application This last line shows that BasicDataSource does not get the DriverClass, because there is no refaddr for that parameter. Essentially, when the application tries to use the datasource, it can't find the object that was already created, and the BasicDataSourceFactory does not get the parameters specified in the global naming section, so the BasicDataSource that is created is unusable. I find quite a few references to this problem on the web. It appears to be somewhat common. I am willing to help debug in any way I can. This has pretty much stopped my development. Mike ra=null -- To unsubscribe, e-mail: For additional commands, e-mail: