On Friday 15 February 2002 02:53 am, Peter Donald wrote:
> On Fri, 15 Feb 2002 04:07, Peter Royal wrote:
> > 1) I am using the data source block from cornerstone but it does not work
> > unless I put my JDBC driver in phoenix's lib directory. If I put the jdbc
> > jar only in my SAR, the driver is loaded (Class.forName succeeds), but
> > the pool is unable to find the driver / create connections
>
> okay - that means the pool is using Class.forName() (or similar) which
> fails as that is in parent ClassLoader to driver. The pool should probably
> be using context classloader

Actually it is,

try
{
        Class.forName( driver, true, 
Thread.currentThread().getContextClassLoader());
}
catch (ClassNotFoundException cnfe)
{
        if (getLogger().isWarnEnabled())
        {
                getLogger().warn( "Could not load driver: " + driver, cnfe );
        }
}


I wonder if it should be:

Thread.currentThread().getContextClassLoader().loadClass(driver, true);

I'll see if I get a chance to test that today...

> > 2) I use custom log targets and formatters, I have to put the JAR with
> > those in phoenix's lib directory also.
>
> yep. For the moment ;)
>
> Could you log this as a feature request on Bugzilla so we remember to fix
> it

done.

> > 4) I get some exceptions on shutdown (running via run.sh from a shell
> > prompt)
>
> oops - fixed.

danke :)

> I really need to write some unit tests so can avoid these sorts of errors
> ;)

It usually doesn't reach an annoyance level high enough for that until its 
happened a half dozen times :)
-pete

-- 
peter royal -> [EMAIL PROTECTED]

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to