tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aurélien Allienne" <allie...@gmail.com>
Subject Re: ClassNotFoundException: org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory
Date Thu, 26 Apr 2007 13:37:36 GMT
After search with google, i found this :

https://www.pkrinternet.com/taskjitsu/task/3482;jsessionid=89D92BC4AA0598216A90754B8129264E#note7089

I change the conf.d/tomcat-5.5 for add :

JAVA_OPTS="-
Djavax.sql.DataSource.Factory=org.apache.commons.dbcp.BasicDataSourceFactory
"

Now I have a new error :


 DEBUG http-8080-Processor25 org.hibernate.util.JDBCExceptionReporter -
Cannot open connection [???]
 org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class '
com.mysql.jdbc.Driver'
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(
BasicDataSource.java:766)
        at org.apache.commons.dbcp.BasicDataSource.getConnection(
BasicDataSource.java:540)
        at
org.hibernate.connection.DatasourceConnectionProvider.getConnection(
DatasourceConnectionProvider.java:69)
        at org.hibernate.jdbc.ConnectionManager.openConnection(
ConnectionManager.java:360)
        at org.hibernate.jdbc.ConnectionManager.getConnection(
ConnectionManager.java:122)
        at org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:125)
        at org.hibernate.transaction.JDBCTransaction.begin(
JDBCTransaction.java:57)


Why I can open connection? And why I have [???] In the log?

I have jdbc-mysql.jar in common/lib...

Thanks for your help

Allienne Aurélien

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message