commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leon Rosenberg <rosenberg.l...@googlemail.com>
Subject Re: java.lang.IncompatibleClassChangeError: BasicDataSource
Date Mon, 08 Jun 2009 07:48:45 GMT
Hello,

Apparently your code is compiled with another version as used at runtime.

regards
Leon

2009/6/8 yau <alphax@vip.163.com>:
> 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.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message