commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "yau" <alp...@vip.163.com>
Subject java.lang.IncompatibleClassChangeError: BasicDataSource
Date Mon, 08 Jun 2009 07:44:10 GMT
Hi,

I have a function return a DataSource, like:
DataSource setupDataSource(String dbName) {
  BasicDataSource ds = new BasicDataSource();
  ...
  return ds;
}

But, when I run the program, I got an exception:

Caused by: java.lang.IncompatibleClassChangeError: Class org.apache.commons.dbcp.BasicDataSource
does not implement the requested interface javax.sql.DataSource

What wrong?


Yau.
Mime
View raw message