Are there additional error messages in the logs? Sometimes the logs
have more error information that will help you solve this problem.

Check if you have properly nested the Context tag under the Host tag
either in server.xml or   if a separate Context xml file is used then
it should be associated with the Host tag.

I remember seeing another error with MySQL connection and it required
an additional JAR file aspectjrt.jar (comes with the MySQL disto) in
addition to mysql-connector-java-5.0.5-bin.jar , adding the
aspectjrt.jar JAR fixed some errors, sorry I don't remember what the
errors were.

-Rashmi

On 3/29/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
I have a webapp running under tomcat 5.5 with no problem.

When I try to run my webapp with tomcat 6.0, I have an classnotfound error for
the mysql driver.

Of course, i have try to put the mysql driver jar file in /tomcat 6/lib folder,
in my webapp web-inf/lib folder, in both folders... I always have this error
with tomcat 6.
But it works perfect with tomcat 5.5...

Here is the error :


29 mars 2007 17:02:41 org.apache.catalina.realm.DataSourceRealm open
GRAVE: Exception performing authentication
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class
'com.mysql.jdbc.Driver'
        at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:766)
        at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
        at
org.apache.catalina.realm.DataSourceRealm.open(DataSourceRealm.java:403)
        at
org.apache.catalina.realm.DataSourceRealm.authenticate(DataSourceRealm.java:283)
        at
org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:258)
        at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:417)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
        at
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:866)
        at
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:716)
        at
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1498)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:760)
        ... 13 more

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



---------------------------------------------------------------------
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