Hello Stephane Bailliez,

I have the same problem reported with bug 9840:
http://issues.apache.org/bugzilla/show_bug.cgi?id=9840

I am using ant 1.5.4.
I have written an own AntTask which uses a class connecting to the dbms.
I need to create an AntClassloader as imput for the sql class in the ant task class. But in any case my ant task runs twice in an antseesion Ii see this exeption:

[sqlproc] java.sql.SQLException: java.lang.UnsatisfiedLinkError: Native Librar y C:\Program Files\IBM\SQLLIB\BIN\db2jdbc.dll already loaded in another classloa
der
 [sqlproc]     at COM.ibm.db2.jdbc.app.DB2Driver.<init>(Unknown Source)
[sqlproc] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [sqlproc] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:80) [sqlproc] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java(Compiled Code))
...

I think the fix for this bug is in the JDBCTask.java.
Can you help me to get a ssolution using AntClassLoader in my task and avoiding this exception?
Thanls a lot.

Kind Regards
Marlis




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to