I have just started a new web project that DB2 database must be used. I am
using two jars 'db2jcc.jar' and 'db2jcc_licence_cu.jar' to handle db
connections. I have installed them in my repository with commands 'mvn
install:install-file -Dfile=db2jcc.jar -DgroupId=com.ibm.db2
-DartifactId=db2jcc -Dversion=9 -Dpackaging=jar and 'mvn install:install-file
-Dfile=db2jcc_license_cu.jar -DgroupId=com.ibm.db2
-DartifactId=db2jcc_license_cu -Dversion=9 -Dpackaging=jar'. When I started
tests, I get an error like
'[ERROR] SchemaExport - schema export unsuccessful
<com.ibm.db2.jcc.c.SqlExceptio
n: [ibm][db2][jcc][10333][11649] No license was found. An appropriate license fi
le db2jcc_license_*.jar must be provided in the CLASSPATH setting.>com.ibm.db2.j
cc.c.SqlException: [ibm][db2][jcc][10333][11649] No license was found. An approp
riate license file db2jcc_license_*.jar must be provided in the CLASSPATH
setting.
at com.ibm.db2.jcc.c.o.d(o.java:534)
at com.ibm.db2.jcc.c.p.a(p.java:332)
at com.ibm.db2.jcc.c.p.<init>(p.java:404)
at com.ibm.db2.jcc.b.b.<init>(b.java:256)
at com.ibm.db2.jcc.DB2Driver.connect(DB2Driver.java:163)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:140)
at
org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110)
..
...
.....' .
I use Eclipse IDE to develop this project with Maven plugin. I have checked
the name of these jars in Maven2 Dependencies. Their names are db2jcc-9.jar
anad db2jcc_licence-9.jar, respectively. I can not find any support for DB2.
Can anyone help me???
-----------------------------------------------------------------------
Sait
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]