Hello,

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

regards
Leon

2009/6/8 yau <[email protected]>:
> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to