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.





------- Additional Comments From [EMAIL PROTECTED]  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:   <mailto:tomcat-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@;jakarta.apache.org>

Reply via email to