ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Barnhill" <bbarn...@twcny.rr.com>
Subject Request for Help building with Head co from CVS
Date Sun, 21 May 2000 00:23:36 GMT
I reall need some help. I just checked out the head version
of jakarta-ant and built it according to instructions, but
when I try to use it on a simple test servlet I get
    Exception in thread "main"
javax.xml.parsers.FactoryConfigurationError:
        com.sun.xml.parser.SAXParserFactoryImpl

The full exception frame is below.


D:\home\wab\sandbox\mycode\HelloServlet>ant
Bad command or file name
Buildfile: build.xml
Exception in thread "main"
javax.xml.parsers.FactoryConfigurationError: com.sun.
xml.parser.SAXParserFactoryImpl
        at
javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFact
ory.java:
84)
        at
org.apache.tools.ant.ProjectHelper.getParserFactory(ProjectH
elper.jav
a:513)
        at
org.apache.tools.ant.ProjectHelper.parse(ProjectHelper.java:
102)
        at org.apache.tools.ant.Main.runBuild(Main.java,
Compiled Code)
        at org.apache.tools.ant.Main.main(Main.java,
Compiled Code)
Bad command or file name
D:\home\wab\sandbox\mycode\HelloServlet>

I really hope someone can help, as I've never contributed to
an open-source project before, but I would like to start
with Ant.  There are three ideas I'd like to implement
(comments appreciated):

    1. availablelist, a task similar to available that
            .. attributes are classes, resources, files, and
property.
            .. attributes are comma separated lists of
equivalent attributes in available task
            .. unlike available classes,resources,and files
are not mutually exclusive, you can up to all three
            .. If all items in all three lists (or however
many lists are specified 1-3) are available, then property
is yes.
     2. Regexp string replacement for macros, similar to
what's seen in BsdMake and elsewhere.
            .. A property of sources is set to
"a.java,b.java,c.java" then
            $(sources:\.java,\.class) evals to
"a.class,b.class,c.class"
     3.  target attributes iffiles, ifresources, ifclasses
that are a combination of if and availablelist  above, and
            address #1 on TODO list.

I am running jdk1.2.2 on a Win98 machine.

The following is the output from set so you can see what my
environment.

TMP=C:\WINDOWS\TEMP
TEMP=C:\WINDOWS\TEMP
PROMPT=$p$g
winbootdir=C:\WINDOWS
COMSPEC=C:\WINDOWS\COMMAND.COM
BLASTER=A220 I5 D1 H5 P330  T6
windir=C:\WINDOWS
TOMCAT_HOME=D:\bin\jakarta-tomcat
CTCM=C:\WINDOWS
CTSYN=C:\WINDOWS
JSDTHOME=d:\BIN\JSDT20
JSDT_SERVER=localhost
JAVA_HOME=d:\bin\jdk1.2.2
HOME=d:\home\wab
ANT_HOME=d:\test\ant
JAXPHOME=C:\Program Files\JavaSoft\Jaxp1.0.1
WINDIR=C:\windows
LOGNAME=wab
CVSROOT=:local:d:\home\cvs
MSDEVDIR=D:\PROGRA~1\MICROS~2\COMMON\msdev98
MSVCDIR=D:\PROGRA~1\MICROS~2\VC98
PATH=D:\PROGRA~1\MICROS~2\COMMON\MSDEV98\BIN;D:\PROGRA~1\MIC
ROS~2\VC98\BIN;D:\PROGRA~1\MICROS~2\COMMON\TOOLS\WIN95;D:\PR
OGRA~1\MICROS~2\COMMON\TOOLS;C:\WINDOWS\SYSTEM;C:\WINDOWS;C:
\WINDOWS\COMMAND;C:\CVS;D:\BIN\JDK12~1.2\BIN;;C:\PERL\BIN;C:
\WINDOWS;C:\WINDOWS\COMMAND;C:\CVS;D:\BIN\JDK12~1.2\BIN;;C:\
PROGRA~1\MTS;C:\BIN;C:\BINW;D:\TEST\ANT\BIN
INCLUDE=D:\PROGRA~1\MICROS~2\VC98\ATL\INCLUDE;D:\PROGRA~1\MI
CROS~2\VC98\INCLUDE;D:\PROGRA~1\MICROS~2\VC98\MFC\INCLUDE;
LIB=D:\PROGRA~1\MICROS~2\VC98\LIB;D:\PROGRA~1\MICROS~2\VC98\
MFC\LIB;
CLASSPATH=d:\test\ant\lib\ant.jar;d:\test\ant\lib\xml.jar;d:
\bin\jdk1.2.2\lib\tools.jar;;D:\bin\jakarta-tools\javac.jar;
D:\BIN\JSDT20\LIB\JSDT.JAR;D:\BIN\JMF20\LIB\JMF.JAR;D:\BIN\J
MF20\LIB\SOUND.JAR;D:\bin\jakarta-tools\moo.jar;D:\bin\jakar
ta-tools\projectx-tr2.jar;D:\bin\jakarta-tools\servlet-2.2.0
.jar
CMDLINE=java -Dant.home="d:\test\ant"
org.apache.tools.ant.Main



Mime
View raw message