db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wang, Kevin" <KW...@TMRS.org>
Subject RE: java.net.MalformedURLException - newbie - resolved
Date Wed, 14 May 2003 16:59:53 GMT
I downloaded 3.0 version to replace 3.1 alpha and got the same exception.
Fortunately, 3.0 version reveals that it WAS a problem with DTD being not
accessible by the Resolver behind the firewall.

Here is how I resolved the problem, following a hint from "Using a Proxy"
thread in the mail archive:
1. download dtds required and save under <torque-home>/dtd/
2. change reference to dtd as <!DOCTYPE database SYSTEM
"./dtd/database.dtd">

Now everything works as expected.

Thanks,
Kevin


-----Original Message-----
From: Naveen Viswanatha [mailto:naveen@iceburst.com]
Sent: Wednesday, May 14, 2003 11:03 AM
To: 'Turbine Torque Users List'
Subject: RE: java.net.MalformedURLException - newbie



Can the DTD URL in the 'id-table-schema.xml' file be resolved from your
system (i.e. are you connected to the internet) ?

Naveen



-----Original Message-----
From: Wang, Kevin [mailto:KWang@TMRS.org]
Sent: Wednesday, May 14, 2003 9:03 AM
To: 'torque-user@db.apache.org'
Subject: java.net.MalformedURLException - newbie


Hi,

I'm just getting started with Torque, following the online tutorials. At
step 3, I got a java.net.MalformedURLException, aparently during the parsing
of 'id-table-schema.xml' (attached). 

Any help is appreciated.
Thanks,
Kevin

Console logs...

[torque-sql] Using contextProperties file:
C:\jakarta\torque-gen-3.1-alpha1\build.properties
[torque-sql] Generating to file
C:\jakarta\torque-gen-3.1-alpha1\src\sql\report.bookstore.sql.generation
[torque-sql] Parsing file: 'bookstore-schema.xml'
[torque-sql] log4j:WARN No appenders could be found for logger
(org.apache.torque.engine.database.transform.DTDResolver)
.
[torque-sql] log4j:WARN Please initialize the log4j system properly.
[torque-sql] Parsing file: 'id-table-schema.xml'
[torque-sql] java.net.MalformedURLException
[torque-sql]    at java.net.URL.<init>(URL.java:613)
[torque-sql]    at java.net.URL.<init>(URL.java:476)
[torque-sql]    at java.net.URL.<init>(URL.java:425)
[torque-sql]    at
org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
[torque-sql]    at
org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source)
[torque-sql]    at
org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
[torque-sql]    at
org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown
Source)
[torque-sql]    at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
[torque-sql]    at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
[torque-sql]    at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
[torque-sql]    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
[torque-sql]    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
[torque-sql]    at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
[torque-sql]    at
org.apache.torque.engine.database.transform.XmlToAppData.parseFile(XmlToAppD
ata.java:191)
[torque-sql]    at
org.apache.torque.task.TorqueDataModelTask.initControlContext(TorqueDataMode
lTask.java:334)

----------------------------------------
 'id-table-schema.xml':

<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<!DOCTYPE database SYSTEM
"http://jakarta.apache.org/turbine/dtd/database.dtd">

<database name="bookstore">
  <table name="ID_TABLE" idMethod="idbroker">
    <column name="ID_TABLE_ID" required="true" primaryKey="true"
type="INTEGER"/>
    <column name="TABLE_NAME" required="true" size="255" type="VARCHAR"/>
    <column name="NEXT_ID" type="INTEGER"/>
    <column name="QUANTITY" type="INTEGER"/>

    <unique>
      <unique-column name="TABLE_NAME"/>
    </unique>

  </table>
</database>



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org

Mime
View raw message