> The answer to this is always the same, the class is not where your
> application is looking.  So, that is the correct answer.  Without knowing
> more about your situation, it is hard to tell what that means.  Find out
> where the application is looking for the driver.  The driver is not
> there.  Put it there.  Case closed.  That is my experience over and over
> and over, etc.  Hope this is not too clever and is meant to be helpful.
>
> At 09:05 PM 1/25/02 +0000, you wrote:
> >Hello list,
> >
> >is there anyone, who has an idea or can explain me the following
situation:
> >
> >My JSP-file imports a self-written class named 'Connect'. This class
> >should connect to DB2 with using IBM-app-driver. If I start this
> >application, I get a ClassNotFoundException because of the driver.
> >
> >I have tried, to copy the driver to the local directory and the
> >WEB-INF\classes\-directory. Then Tomcat says: Can't find bundle for base
> >name...
> >
> >
> >BUT:
> >My pure java-program 'Connect.java' on the same computer can connect to
> >DB2 without problems. It uses the same driver as the Tomcat-Application.
> >
> >
> >
> >Is it possible, that Tomcat doesn't use the same CLASSPATH as the system?
> >And if, how can I say Tomcat, where he can find the driver?

Bug 5881 seems similar to this problem.
The problems was caused because the DB2 driver used was JDBC 1.0 compliant.
Tomcat needs a JDBC 2.0 driver and the driver included in DB 2 7.2 SP5
(maybe another version would be ok too) would fix the problem.

Remy


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to