add JDBC driver for MySQL to apache-tomcat-5.5.17



Dudes,
I have tried to add JDBC driver for MySQL to apache-tomcat-5.5.17,but
unsuccesfully.
In the materials i have read , it was adviced to add a Resource tag in
$CATALINA_HOME/conf/server.xml.
Database i want to access is called "staj "
So here are the tags i added to $CATALINA_HOME/conf/server.xml:

<Context path="/staj" docBase="staj"
debug="5" reloadable="true" crossContext="true">
</Context>

<Resource name="jdbc/staj" auth="Container"
type="javax.sql.DataSource"
maxActive="100" maxIdle="30" maxWait="10000"
username="root" password=""
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql:///staj?autoReconnect=true"/>


Could you tell me where i get wrong!?

.



Relevant Pages

  • Re: MySQL JDBC driver - implications for non-GPLed apps
    ... tool that produces reports from the content of the existing database. ... > legitimate to interact with MySQL JDBC drivers via the JDBC interface. ... > GPL license on the driver. ... the application must identify the JDBC driver by its name. ...
    (comp.lang.java.databases)
  • JDBC Mysql Connect Problem
    ... I am trying to deploy a web-app using Tomcat which has simple Java ... beans using JDBC driver for mysql. ... saying "Could not establish connection to ...
    (comp.lang.java.programmer)
  • Re: Sun buys out MySQL
    ... Here we're assuming a getAttributethat returns a class name read from a deployment descriptor at run time. ... This idiom will work with any database system for which a JDBC driver JAR is available at run time, whether obtained from the application vendor or some other source (such as directly from MySQL). ... Every time I've encountered this controversy over whether the GPL restricts certain uses of GPLed JDBC drivers, it hinges on the definition of "linking" to the JDBC driver. ...
    (comp.lang.java.databases)
  • Re: JDBC Mysql Connect Problem
    ... > beans using JDBC driver for mysql. ... > sql tasks as usual. ... > saying "Could not establish connection to ...
    (comp.lang.java.programmer)
  • Re: mysql - JDBC connection problem
    ... that is the correct JDBC driver to use for MySQL. ... There are several MySQL mailing lists at this URL: http://lists.mysql.com/. ... I'm not going to tell you what the archives give as the solution for your ...
    (comp.lang.java.programmer)