Hi Anne Marie
yes I would like to import the import-schema.xml into the turbine-schema.xml
by using an external xml entity reference. so that torque creates the sql
for both parts of the schema. and that is exactly where i get the exception.
the code-snippet below is from the turbine-schema.xml
i think that the problem lies in the reference to the import-schema. maybe
the path of the imported schema file cannot be resolved?
thanks for your help,
stefan
Stefan Ri� ___ /\ __/\ /\___/\ __
Entwicklung \/ \ / \/ \/
\/
mediawave internet solutions GmbH
Tel.: +49 +89 350 190 92
Fax.: +49 +89 350 190 79
[EMAIL PROTECTED]
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 09, 2001 11:12 AM
> To: [EMAIL PROTECTED]
> Subject: RE: XML Entity-Refernces
>
>
> Hi Stefan,
>
> you are trying to import "import-schema.xml" but get a null pointer
> exception for "turbine-schema.sql". So either there is a typo somewhere or
> the problem lies in another place than you think. Or what do you say?
>
> /Anne Marie
>
> -----Original Message-----
> From: Stefan Ri� [mailto:[EMAIL PROTECTED]]
> Sent: 9. august 2001 10:57
> To: Turbine-User@Jakarta. Apache. Org
> Subject: XML Entity-Refernces
>
>
> Hi.
>
> I would like to split our database-schema into smaller parts for better
> overview.
> Since the schema is basically an XML-file, I thought it should be possible
> to use an external entity reference - like so:
>
> ------------------------------------------------------------
> <?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
> <!DOCTYPE database SYSTEM
> "http://jakarta.apache.org/turbine/dtd/database.dtd" [
> <!ENTITY import SYSTEM "import-schema.xml">
> ]>
>
> <database>
> &import;
> ------------------------------------------------------------
>
> the import-schema.xml is in the same directory as the main db schema.
> I also removed the xml and database tags from the
> import-schema.xml so that
> there are only table elements in it.
> this should work as far as i know my xml.
> but I get ...
> ------------------------------------------------------------
> /share/public/pub/user/sriss/mmi/projects/mmitorque/src/sql/turbin
> e-schema.s
> ql
> java.lang.NullPointerException:
> at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:969)
> at
> org.apache.turbine.torque.engine.database.transform.XmlToAppData.p
> arseFile(X
> mlToAppData.java:152)
> at
> org.apache.turbine.torque.TorqueSQLTask.initControlContext(TorqueS
> QLTask.jav
> a:154)
> at org.apache.velocity.texen.ant.TexenTask.execute(TexenTask.java)
> at org.apache.tools.ant.Target.execute(Target.java:153)
> at org.apache.tools.ant.Project.runTarget(Project.java:898)
> at org.apache.tools.ant.Project.executeTarget(Project.java:536)
> at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:213)
> at
> org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:103)
> at org.apache.tools.ant.Target.execute(Target.java:153)
> at org.apache.tools.ant.Project.runTarget(Project.java:898)
> at org.apache.tools.ant.Project.executeTarget(Project.java:536)
> at org.apache.tools.ant.Project.executeTargets(Project.java:510)
> at org.apache.tools.ant.Main.runBuild(Main.java:421)
> at org.apache.tools.ant.Main.main(Main.java:149)
> ------------------------------------------------------------
>
> any ideas? thanx.
> stefan
>
>
> ---------------------------------------------------------------------
> 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]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]