Thank you Antoine. Googling around I figured it out.

I had to specify ANT_OPTS=-Djava.net.preferIPv4Stack=true. It's
apparently a problem with the JVM when you have both IPv4 and IPv6
active. Once I set that property everything worked as expected.

Rick


--
Rick Genter
Principal Engineer
Silverlink Communications

-----Original Message-----
From: Antoine Levy-Lambert [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 07, 2005 3:06 PM
To: Ant Users List
Subject: Re: Error establishing socket from <sql> task?

Hello Rick,

I am not sure what this is.
Try to set the jars of the mssql driver in the CLASSPATH env var before
starting ant. Maybe this helps.
Try also to find out if there are bugs reported against this driver
under linux independently of ant ?
Maybe try to make a HelloWorldJDBC program running without ant under
Linux with the same connection params
to see if the error is reproducable. If it is, then it could be a
Microsoft problem, or less probably a JDK/JRE problem.
If you do not get the error with HelloWorldJDBC, then it could be an ant
bug, or a build file issue.
Find out if the MSSQL driver can be made to make a debug log, maybe with
some -D properties ?
Cheers,
Antoine

Rick Genter wrote:

>I'm trying to bring up our app suite on Linux (Fedora Core 4). One of
>the earliest apps uses the <sql> task in its build script to initialize
>the database we use. We call <sql> like this:
>
>        <sql driver="com.microsoft.jdbc.sqlserver.SQLServerDriver"
>             classpathref="jdbc.driver.path"
> 
>url="jdbc:microsoft:sqlserver://${test.db.host}:1433;DatabaseName=maste
r
>;ProgramName=Object API Test"
>             userid="${test.db.userid}"
>             password="${test.db.password}"
>             src="${sql.master}/Data/sql_sysmessages.sql"
>             delimiter="GO"/>
>
>  
>


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


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

Reply via email to