Yes all the classes are in the correct place I sent another email saying
that I solved the problem by putting the db2java.jar ONLY in TOMCAT_HOME\lib
instead of WEB-INF lib for each webapp.  This takes care of the problem.
The other think Ought to mention is that they both work fine seperately as
long as it's the webapp loaded before the other one.

-brian

Might i try moving the jar to WEB-INF\classes instead of WEB-INF\lib ?


----- Original Message -----
From: "Brett Knights" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 04, 2001 9:12 AM
Subject: RE: Driver fails to load on two webapps


> Are all the sql related class files for each webapp in the respective
> webapps lib or classes directories?
>
> If not you might try that. (And if it works please report back.)
>
> HTH
>
> > -----Original Message-----
> > From: Brian Richards [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, October 03, 2001 9:54 PM
> > To: [EMAIL PROTECTED]
> > Subject: Driver fails to load on two webapps
> >
> >
> > Ok I am running two applications that use the IBM DB2
> > appdriver to connect
> > to two different databases.  The problem is this when i start
> > up tomcat only
> > one of the applications can access the database.  The first
> > one to have a
> > request made wins and the other app gets a No Suitable Driver
> > exception.
> > They both work independtly as long as it's the first one
> > requested.  My
> > theory is that the Class.forName(driver) being called twice is mucking
> > things up the code at fault is:
> >
>
>
>
>

Reply via email to