db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Naveen Murthy" <nmur...@datalinx.net>
Subject RE: Antwort: RE: using Ant based Torque generator while going thro a HTTP PROXY
Date Mon, 16 Jan 2006 17:44:16 GMT
>From the below , it looks like the Dtd url may be hardcoded inside torque-sql  taskdef

class.

I tried changing the <!DOCTYPE  but the taskdef still tries to go to db.apache.org
to resolve.



sql-classpath:
     [echo] loading templates from classpath
[torque-sql] Using contextProperties file: E:\programs\torque-3.2\torque-gen-3.2
\build.properties
[torque-sql] Using classpath
[torque-sql] Generating to file E:\programs\torque-3.2\torque-gen-3.2\src\sql\re
port.stocksdb.sql.generation
[torque-sql] Jan 16, 2006 12:36:05 PM org.apache.torque.engine.database.transfor
m.XmlToAppData parseFile
[torque-sql] INFO: Parsing file: 'id-table-schema.xml'
[torque-sql] Jan 16, 2006 12:36:05 PM org.apache.torque.engine.database.transfor
m.DTDResolver resolveEntity
[torque-sql] INFO: Resolver: used 'http://db.apache.org/torque/dtd/database_3_2.
dtd'

BUILD FAILED
file:E:/programs/torque-3.2/torque-gen-3.2/build-torque.xml:141: org.apache.torq
ue.engine.EngineException: java.net.UnknownHostException: db.apache.org


-----Original Message-----
From: Thomas Fischer [mailto:fischer@seitenbau.net]
Sent: Mon 1/16/2006 11:39 AM
To: Apache Torque Users List
Subject: Antwort: RE: using Ant based Torque generator while going thro a HTTP PROXY
 




"Naveen Murthy" <nmurthy@datalinx.net> schrieb am 16.01.2006 17:24:12:

> hello;
>
> 1. i do see the database.dtd in my torque-gen-3.2.jar; still for some
reason
> it tries to reach internet for db.apache.org

Please make sure you use the exact doctype
<!DOCTYPE database SYSTEM
"http://db.apache.org/torque/dtd/database_3_2.dtd">

> It would be good it never tries to reach out for something.

The other alternative is to fail every time an unknown dtd is used. I
consider trying to reach the internet more user-friendly than to fail
completetly.

    Thomas



Mime
View raw message