Thank you, this worked!
However, now, the next line of code gives me problems:
Connection C = DriverManager.getConnection("jdbc:mysql://localhost/tob",
"user", "pass");Gives me the error : javax.servlet.ServletException: Invalid authorization specification: Access denied for user: '[EMAIL PROTECTED]' (Using password: YES) When I run mysql --user=user -p with the same user/pass as in the getConnection() method, everything works fine. -thanx, ryan ----- Original Message ----- From: "Dominik Jednoralski" <[EMAIL PROTECTED]> To: "Tomcat User Help" <[EMAIL PROTECTED]> Sent: Tuesday, September 24, 2002 12:34 AM Subject: AW: JDBC problem > tomcat ignores the classpath setting. place the .jar file in > > $TOMCAT_HOME/webapps/root/web-inf/lib > > i hope that'll work > dominik > > -----Urspr�ngliche Nachricht----- > Von: Ryan [mailto:[EMAIL PROTECTED]] > Gesendet: Mittwoch, 25. September 2002 09:32 > An: [EMAIL PROTECTED] > Betreff: JDBC problem > > > I just downloaded the latest mySQL JDBC driver and have placed the directory > that the jar extracts into the CLASSPATH. > > I am trying to load the driver with this line: > Class.forName("org.gjt.mm.mysql.Driver").newInstance(); > > All I have done is set the CLASSPATH and restart tomcat. > Is there anything else that needs to be done? > > -ryan > "The Original X-tra Strength Non-Aspirin Caplets" > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
