tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allistair Crossley" <>
Subject init 1 jndi pool fine, init 2 jndi pool not fine (with logging)
Date Tue, 27 Jan 2004 09:41:08 GMT
Hi All,

You may recall I posted that I solved this problem some time ago...I was trying to reference
my JNDI pool in the init() method directly and I was getting "Cannot create JDBC driver of
class ''" errors. I moved that out into the classes themselves and it was going so well. But
I have spotted that problem again in my logged. It may have been there all along as my application
continues to work, but I do not like erroneous messages coming out in my logging - it makes
me nervous!

Check out the following logging taken just after I start TC 5.0.18. My servlet that called
this stuff does not have a load-on-startup but it still decides to initalise TWICE. The odd
thing about this from my POV is that the first INIT is fine .. you can see that a PoolableConnection
gets created and the NavigationManager can get on with its job. Now look at the second INIT
which decides to not find a PoolableConnection because of something to do with a null JDBC

Now I'm no rocket scientist but this strikes me as bizarre. And I would just like to mention
that there is nothing wrong at all with my JNDI reference in the server.xml. I promise you

So on this assumption that it is not the server.xml (because my application works and all
my other pools work) why on earth am I getting

1. 2 initialisations for a non load-on-startup servlet
2. Cannot create JDBC driver of class '' when clearly the first init had no problem!

2004-01-27 09:29:55,917 DEBUG
Source) : xml root set
2004-01-27 09:29:56,870 DEBUG
Source) : connection=org.apache.commons.dbcp.PoolableConnection@e99681 
2004-01-27 09:29:56,870 DEBUG
Source) : time before discover 1075195796870 2004-01-27 09:30:06,027 DEBUG
Source) : time after discover 1075195806027 2004-01-27 09:30:06,042 DEBUG
Source) : free memory after init: 1951728
2004-01-27 09:30:06,042 DEBUG Source)
: NavigationManager Initialised. 

2019824 2004-01-27 09:30:17,089 DEBUG
Source) : xml root set
2004-01-27 09:30:17,105 ERROR
Source) : failed to initialise navigation: Cannot create JDBC driver of class '' for connect
URL 'null' 
2004-01-27 09:30:17,121 DEBUG
Source) : free memory after init: 1496320 
2004-01-27 09:30:17,121 DEBUG Source)
: NavigationManager Initialised.

Thanks! ADC

QAS Ltd.
Developers of QuickAddress Software
<a href=""></a>
Registered in England: No 2582055
Registered in Australia: No 082 851 474

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message