On Tue, 26 Jun 2001 21:20, Kazandjian Erik wrote:
> Stefan,
>
> I don't find the FAQs when I follow the links you gave me. Anyway I have
> been doing some tests with an external DTD file (the one generate by
> AntStructure) and it seems that emacs is accepting the DTD (it shows me all
> attributes I can include etc.) but when I run ant I get :
>
> java.lang.InternalError
>       at com.sun.xml.parser.Parser.parseSystemId(Parser.java:2421)
>       at com.sun.xml.parser.Parser.maybeExternalID(Parser.java:2390)
>       at com.sun.xml.parser.Parser.maybeDoctypeDecl(Parser.java:1100)
>       at com.sun.xml.parser.Parser.parseInternal(Parser.java:481)
>       at com.sun.xml.parser.Parser.parse(Parser.java:284)
>       at javax.xml.parsers.SAXParser.parse(SAXParser.java:155)
>       at org.apache.tools.ant.ProjectHelper.parse(ProjectHelper.java:117)
>       at
> org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:85)
>       at org.apache.tools.ant.Main.runBuild(Main.java:403)
>       at org.apache.tools.ant.Main.main(Main.java:149)
>
> Total time: 1 second
>
> This is what I wrote at the begining of the ANT file
>
> <?xml version="1.0"?>
>   <!DOCTYPE project SYSTEM "/home/erik/square/dtd/ant.dtd">

Looks like a bug in the parser. Try switching it with a newer version of a 
jaxp parser. Another thing you may try is doing

<!DOCTYPE project SYSTEM "file:/home/erik/square/dtd/ant.dtd">

or perhaps just using relative paths to DTD

Cheers,

Pete

*-----------------------------------------------------*
| "Faced with the choice between changing one's mind, |
| and proving that there is no need to do so - almost |
| everyone gets busy on the proof."                   |
|              - John Kenneth Galbraith               |
*-----------------------------------------------------*

Reply via email to