No , I`m running under FreeBSD , I found out my problem. I used driver
instead of Driver for mthe class name. I was looking for an error named
MySQL, instead it was showing an unable to find mm.mysql.driver error  (I
forget the exact path to it so I shortened it above) it should have been
Driver.
    So remember, Class Names Start with Uppercase Letters !
Yes , I feel like a dumb ass.

However , instead of using System.err.println to display my errors on caught
exceptions, I'm going to use the PrintWriter out to display my errors on the
Html output. that way no log searching is necessary!

Adrian



----- Original Message -----
From: Kyle Burnett <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 29, 2002 12:20 AM
Subject: Re: MYsql mm driver and Tomcat 4.0.4


> i just spent a few hours with this exact problem - except i was receiving
> errors. here's how i solved it...
>
> assuming you are w2k this will work (else just use the correct unix
syntax)
>
> 1) i put the .jar file in tomcat_home\common\lib
> in my case... c:\tomcat\common\lib\mysql-2.0.13-bin.jar
> 2) i added to my %classpath% the full path the .jar file
>
> i then tested the classpath by compiling a .java file from the command
line.
> then i tested the db connectivity via a .jsp page.
>
> another though: if you are not getting errors maybe the query is just not
> returning any results?
>
> hope it helps,
> Kyle
>
> ----- Original Message -----
> From: "Adrian" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, April 27, 2002 3:48 PM
> Subject: MYsql mm driver and Tomcat 4.0.4
>
>
> > I am using the mm JDBC driver to connect to a mysql from Tomcat. I
> > receive no errors bu also no results. The servlet has privilleges
> > because I can use the mysql client as servlet to connect. The jar file
> > is in my classpath , and I added it to the Tomcat directory under lib/
> > then I tried it under common/lib , and also under server/lib anyone have
> > any ideas as to what I`m doing wrong ? I`ve checked the Tomcat logs for
> > errors to no avail. Any help appreciated. I`m using mm.mysql-2.0.13. I`m
> > trying the examples from chapter 13 in the JSPs Servlets, and MySQL
book.
> >
> > adrian
> >
> >
> > --
> > To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> > For additional commands: <mailto:[EMAIL PROTECTED]>
> > Troubles with the list: <mailto:[EMAIL PROTECTED]>
> >
>


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

Reply via email to