ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy XueWen Qin <a...@cisco.com>
Subject Re: build.xml include problem
Date Tue, 10 Oct 2000 22:28:16 GMT
Thanks. Now the files can be included, but the 
Ant's can't find JAXP compliant parser, the parser
IS in the Classpath!

error message:
------------------
BUILD FAILED

No JAXP compliant XML parser found. See http://java.sun.com/xml for the
reference implementation.
java.lang.NoClassDefFoundError:
org/apache/tools/ant/taskdefs/ExecuteStreamHandler
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java, Compiled Code)
        at org.apache.tools.ant.taskdefs.Taskdef.init(Taskdef.java,
Compiled Code)
        at
org.apache.tools.ant.ProjectHelper$TaskHandler.init(ProjectHelper.java,
Compiled Code)
        at
org.apache.tools.ant.ProjectHelper$ProjectHandler.handleTaskdef(ProjectHelper.java,
Compiled Code)
        at
org.apache.tools.ant.ProjectHelper$ProjectHandler.startElement(ProjectHelper.java,
Compiled Code)
        at com.sun.xml.parser.Parser.maybeElement(Parser.java, Compiled
Code)
        at com.sun.xml.parser.Parser.content(Parser.java, Compiled Code)
        at com.sun.xml.parser.Parser.maybeElement(Parser.java, Compiled
Code)
        at com.sun.xml.parser.Parser.parseInternal(Parser.java, Compiled
Code)
        at com.sun.xml.parser.Parser.parse(Parser.java, Compiled Code)
        at org.apache.tools.ant.ProjectHelper.parse(ProjectHelper.java,
Compiled Code)
        at
org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java,
Compiled Code)
        at org.apache.tools.ant.Main.runBuild(Main.java, Compiled Code)
        at org.apache.tools.ant.Main.main(Main.java, Compiled Code)

Total time: 0 seconds
-------------------------

/andy

On Tue, 10 Oct 2000, Kurt Mahan wrote:

> Date: Tue, 10 Oct 2000 16:07:48 -0600 (MDT)
> From: Kurt Mahan <kmahan@xmission.com>
> Reply-To: ant-user@jakarta.apache.org
> To: ant-user@jakarta.apache.org
> Subject: Re: build.xml include problem
> 
> Gotta have the line read:
> 
> 	<!ENTITY factory SYSTEM "file:./factory.xml">
> 
> This is because that "file:" can be other things too (like "http:")
> 
> Kurt
> 
> > 
> > I'm trying to include another xml file in the 
> > build.xml, the ant1.1 keep giving error messages,
> > but the ant of sep. 29 nightly builds is OK with 
> > this, does anybody have some idea of why ?
> > ----------
> > build.xml
> > ---------
> > <?xml version="1.0" standalone="no"?>
> > <!DOCTYPE DOCUMENT [
> >   <!ENTITY factory SYSTEM "factory.xml">
> >   <!ENTITY job SYSTEM "job.xml">
> >   <!ENTITY machine SYSTEM "machine.xml">
> > ]>
> > 
> > <project name="BUILD" default="CompleteBuild" basedir="." >
> >   &machine;
> >   &factory;
> >   &job;
> > </project >
> > --------------
> > Error message is:
> > ---------------
> > build.xml:3: Relative URI "factory.xml"; can not be resolved without a
> > document URI.
> > 
> > 
> > Thanks
> > Andy
> > 
> > 
> 
> 


Mime
View raw message