The ANT classloader places all in-proc tasks in a special "isolation" mode 
where only java.* and javax.* classes are visible to tasks. So, anything 
starting with "sun." is not accessible, even though it is in the bootstrap 
rt.jar or what have you.

Perhaps someone from the dev team can confirm or refute this and explain 
why this is done. I fail to see the advantages.

Vlad.



Please respond to "Ant Users List" <[EMAIL PROTECTED]>
To:     "'Ant Users List'" <[EMAIL PROTECTED]>
cc: 

Subject:        RE: Sql task ignoring classpath


Thanks but I need the JDBC:ODBC bridge "sun.jdbc.odbc.JbdcOdbcDriver" in
rt.jar, not the Oracle drivers.. I have also tried putting the rt.jar in
ant/lib with no luck..

-----Original Message-----
From: Phil Surette [mailto:[EMAIL PROTECTED]]
Sent: 08 February 2002 17:52
To: 'Ant Users List'
Subject: RE: Sql task ignoring classpath


You need to rename classes12.zip to classes12.jar and
put it in ant's lib directory. At least that works for
me.

-----Original Message-----
From: Euan Guttridge [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 08, 2002 12:47 PM
To: '[EMAIL PROTECTED]'
Subject: Sql task ignoring classpath


Hi,

Ant seems to be refusing to recognise my system classpath (W2K). I am 
using
a jdbc:odbc driver in an SQL task, the driver is in the system classpath,
tested and confirmed. Even with the optional classpath attribute in the 
SQL
task I still get the not found error:


D:\build_folder\ux_dev02\ant_buildfiles\dev2_to_staging2.xml:26: Class Not
Found
: JDBC driver sun.jdbc.odbc.JbdcOdbcDriver could not be loaded


<target name="sql">
<sql
driver="sun.jdbc.odbc.JbdcOdbcDriver"
url="jdbc:odbc:label_db"
userid=""
password=""
>
select * from *;
<classpath>
<pathelement location="d:\jdk_1.2.2\jre\lib\rt.jar"/>
</classpath>
</sql>
</target>


Thanks..

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

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

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





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

Reply via email to