-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

John,

John Pedersen wrote:
| Cannot create JDBC driver of class '' for connect URL 'null'

This comes up quite often. Unfortunately, any number of bad
configuration options can result in this message.

|    <Resource name="compatMYSQL" auth="Container"
type="javax.sql.DataSource"

The resource name is usually of the form "jdbc/compatMYSQL".

|     factory="org.apache.commons.dbcp.BasicDataSourceFactory"

You should not need to specify this, though it shouldn't hurt.

| This arrangement works on my local machine, but it throws the error on my
| hosting server ( private JVM, Tomcat 6, on *nix *Virtual* Private
*Server )

Where is mysql-connector-x.y.z.jar installed on your local server? On
the hosting server? Make sure that your JDBC library exists only in a
single place on the server. For our projects, we put it in common/lib
(on TC 5.5... I think it's just /lib for TC 6).

| To fix it, I had to delete *META-INF/context.xml, and put the context info
| in server.xml ( which the Tomcat documentation recommends NOT doing).

Yeah, put it back into context.xml... it should work if everything else
is okay.

| After spending so long resolving this, I am curious as to why it happened.

These things usually get resolved when the configuration is re-written.
Some little tiny thing was typo'd or mis-copied or whatever and the
re-write fixes everything. Nobody keeps the old config and bothers to do
a diff, so the exact cause usually remains a mystery. :)

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgrJGsACgkQ9CaO5/Lv0PDq7ACguIqHUxG921HyIQmNl/DFE1l7
q1cAnixURkbRUBwWj1dDtksjoqDb7lP+
=I1i2
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to