For Tomcat, use classes12.zip & tyrex-0.9.7.0.jar which are kept under Tomcat/common/lib
Its better to use tyrex i.e Tomcat through its JNDI, otherwise it gives a problem getting connection.
To use tyrex, your code should be
/* This method is called by the Store to a get a DB connection. */...