tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrian" <athi...@charter.net>
Subject Using PrintWriter instead of System.err for Errors (Was mm.mysql Driver)
Date Mon, 29 Apr 2002 17:07:00 GMT
    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 <kyleburnett@att.net>
To: <athiele@charter.net>
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" <athiele@charter.net>
> To: <tomcat-user@jakarta.apache.org>
> 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:tomcat-user-unsubscribe@jakarta.apache.org>
> > For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> > Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> >
>


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message