Ok, I have found two possible reasons
1) I have found a misplaced 3_1 dtd in the id-schema.xml file which comes
with the 3.2 generator. This might have caused the initial problem. I
fixed it in svn.
2) if you do not specify a dtd at all, it looks like as if Torque tries to
use the current dtd but gets it over the net instead of using the built-in
dtd. No idea what this is good for, but it seems that this is what you get
in the run you quoted below.
Please try to use the following doctype in all of your schema.xml files:
<!DOCTYPE database SYSTEM "http://db.apache.org/torque/dtd/database_3_2.dtd">
and tell us if that made the problem go away.
Thomas
On Mon, 16 Jan 2006, Naveen Murthy wrote:
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:[EMAIL PROTECTED]
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" <[EMAIL PROTECTED]> 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
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]