Hello,

I looked in the archive, but I could not find anything on my problem.

I get this message when I try to connect to my database without setting the 
connection-class in the xml file:

DEBUG   10162   [TestPool] (): factory created class was null so a new instance could 
not be created. org.apache.avalon.excalibur.datasource.NoValidConnectionException: No 
valid JdbcConnection class available at 
org.apache.avalon.excalibur.datasource.JdbcConnectionFactory.newInstance(JdbcConnectionFactory.java:183)

I don't have a Jdbc3Connection in my avalon-excalibur-4.1.jar but it looks like that 
is the default class which JdbcConnectionFactory is looking for:

if ( null == className )
            {
                try
                {
                    java.lang.reflect.Method meth = 
m_firstConnection.getClass().getMethod("getHoldability", new Class[] {});
                    className = 
"org.apache.avalon.excalibur.datasource.Jdbc3Connection";
                }
                catch (Exception e)
                {
                    className = 
"org.apache.avalon.excalibur.datasource.JdbcConnection";
                }
            }

When I set the connection-class option to 
org.apache.avalon.excalibur.datasource.JdbcConnection it works well.

So I'm wondering if I'm missing something because it never goes into the catch clause 
to get the JdbcConnection even though I don't have the Jdbc3Connecetion in my jar.

Sorry if this point was already discussed; if so, please redirect me to the place 
where I can find an explanation.

Thanks

Franck





Reply via email to