You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by Bruce Snyder <fe...@frii.com> on 2004/11/25 02:47:47 UTC

IBM Universal JDBC driver... not licensed for connectivity to Derby

I'm trying to connect to Derby using the db2jcc.jar file and the 
com.ibm.db2.jcc.DB2Driver JDBC driver and I'm receiving the following 
error:

com.ibm.db2.jcc.c.SqlException: The verison of the IBM Universal JDBC 
driver in use is not licensed for connectivity to Apache Derby Databases.

The db2jcc.jar came with the download? Why am I getting this error and 
how do I get around it?

Bruce
-- 
perl -e 'print 
unpack("u30","<0G)U8V4\@4VYY9&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");'

The Castor Project
http://www.castor.org/

Apache Geronimo
http://geronimo.apache.org/

Re: IBM Universal JDBC driver... not licensed for connectivity to Derby

Posted by Bruce Snyder <fe...@frii.com>.
Emmanuel Cecchet wrote:

>> I'm trying to connect to Derby using the db2jcc.jar file and the 
>> com.ibm.db2.jcc.DB2Driver JDBC driver and I'm receiving the following 
>> error:
>>
>> com.ibm.db2.jcc.c.SqlException: The verison of the IBM Universal JDBC 
>> driver in use is not licensed for connectivity to Apache Derby Databases.
>>
>> The db2jcc.jar came with the download? Why am I getting this error and 
>> how do I get around it?
> 
> 
> I had the same issue with C-JDBC because of the db2jcc_license_c.jar 
> that must also be found in the classpath. In C-JDBC we use a separate 
> classloader for every single backend and our classloading does not allow 
> yet to load a single driver from multiple jar files. The temporary 
> workaround was either to unjar everything or to add the 
> db2jcc_license_c.jar class files into db2jcc.jar.

Thanks again, Emmanuel. I just included the 
com/ibm/db2/jcc/licenses/DB2J.class in the db2jcc.jar file and I got 
past the error.

> Another solution is to use C-JDBC for remote access to Derby ;-)

Nice plug for C-JDBC ;-)!

Bruce
-- 
perl -e 'print 
unpack("u30","<0G)U8V4\@4VYY9&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");'

The Castor Project
http://www.castor.org/

Apache Geronimo
http://geronimo.apache.org/

Re: IBM Universal JDBC driver... not licensed for connectivity to Derby

Posted by Emmanuel Cecchet <Em...@inrialpes.fr>.
Hi Bruce,

> I'm trying to connect to Derby using the db2jcc.jar file and the 
> com.ibm.db2.jcc.DB2Driver JDBC driver and I'm receiving the following 
> error:
>
> com.ibm.db2.jcc.c.SqlException: The verison of the IBM Universal JDBC 
> driver in use is not licensed for connectivity to Apache Derby Databases.
>
> The db2jcc.jar came with the download? Why am I getting this error and 
> how do I get around it?

I had the same issue with C-JDBC because of the db2jcc_license_c.jar 
that must also be found in the classpath. In C-JDBC we use a separate 
classloader for every single backend and our classloading does not allow 
yet to load a single driver from multiple jar files. The temporary 
workaround was either to unjar everything or to add the 
db2jcc_license_c.jar class files into db2jcc.jar.
Another solution is to use C-JDBC for remote access to Derby ;-)

Emmanuel