db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wang, Kevin" <KW...@TMRS.org>
Subject java.net.MalformedURLException - newbie
Date Wed, 14 May 2003 16:02:51 GMT
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>



Mime
View raw message