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)[EMAIL PROTECTED]&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");'
The Castor Project http://www.castor.org/
Apache Geronimo http://geronimo.apache.org/
