Creating a Web Application with Ant and Tomcat 4
Subject:   solution to database connection problem
Date:   2003-06-12 03:57:36
From:   anonymous2

I experienced similar problems in connecting to the database as mentioned by others. After changing to another version of the mysql connector it works fine! It could very well be the combination with the MySql version.

This one does not work:

This one does work:

This file is to be placed in common/lib as mentioned.

OS: Win2000Pro EN
Tomcat: 4.1.24
Ant: 1.5.3-1
MySQL: 4.1.0-alpha-max-debug

One more detail: after 'create database public' a 'use public' command is necessary. Mysql automatically changes the name of the database to lower case.

Good article, thanks a lot!

Jan-Willem Arnold