Hello,
after trying to run an Ant task (with -v option) on a Windows XP Prof. SP2
OS containing a statement according to following pattern:
<sql driver="${db.driver}" url="${db.url}" userid="${db.user}"
password="${db.password}" classpath="${db.lib}">
<transaction src="${db.dir}/sqlfile1.sql" />
<transaction src="${db.dir}/sqlfile2.sql" />
...
</sql>
Ant hang up after following output (meaning Ant seems to be still running,
but no further message is returned):
[sql] connecting to jdbc:db2://localhost:50000/XYZ
[sql] Loading com.ibm.db2.jcc.DB2Driver using AntClassLoader with
classpath mylibdir\db2jcc.jar;mylibdir\db2jcc_license_cu.jar
It's no problem to connect to the (local) database (DB2/NT 9.1.4) and to run
the SQL files manually in the DB2 command console or with an SQL editor
using the same JDBC connection and DB2 driver; the SQL statements of the
files are executed successfully.
The DB2 connection and login parameters as well as the driver classpath of
the Ant script are correct.
The DB2 driver, used, is com.ibm.db2.jcc.DB2Driver of db2jcc.jar (2096050
B); the DB2Driver.class file has 10605 B and is dated to 2007-09-28 11:42.
The Ant jars, used, are bsf.jar (175.348 B) and bsh-1.3.0.jar (242.154 B),
created by Ant 1.4.1. There is no firewall blocking ports.
What may be the reason for this hang-up?
How can this problem be avoided/resolved?
Thanks for all good hints.
th_wm
--
View this message in context:
http://www.nabble.com/Ant-hangs-up-while-loading-com.ibm.db2.jcc.DB2Driver-using-AntClassLoader-tp18142361p18142361.html
Sent from the Ant - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]