ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kehoe <ke...@fortuity.com>
Subject ant fails, SAXParserFactory not found
Date Sat, 10 Jun 2000 01:11:38 GMT
With a recent nightly build of ant (6/7), when I try to run ant I get 
the error:
java.lang.ClassNotFoundException: javax.xml.parsers.SAXParserFactory
         at java.net.URLClassLoader$1.run(URLClassLoader.java, Compiled Code)

I have jaxp.jar in my classpath (below):

$ env
TOMCAT_HOME=/usr/local/tomcat
JAVA_HOME=/usr/local/jdk1.2.2
CLASSPATH=/usr/local/tomcat/lib/jaxp.jar:/usr/local/tomcat/lib/parser. 
jar:/usr/local/tomcat/lib/activation.jar:/usr/local/tomcat/lib/mail.ja 
r/:/usr/local/tomcat/lib/gnu-regexp.jar:/usr/loca
l/tomcat/lib/servlet.jar

The jar files appear to be accessible:

$ ls -lg /usr/local/tomcat/lib/
total 976
-rw-r--r--   1 kehoe    kehoe      118562 Jun  8 03:45 ant.jar
-rw-rw-r--   1 kehoe    kehoe      193943 Apr 18 12:56 jasper.jar
-rw-r--r--   1 kehoe    kehoe        5618 Jun  8 18:00 jaxp.jar
-rw-r--r--   1 kehoe    kehoe      136130 Jun  8 18:08 parser.jar
-rw-rw-r--   1 kehoe    kehoe       40809 Apr 18 12:56 servlet.jar
drwxrwxr-x   3 kehoe    kehoe        4096 Apr 18 12:56 test/
-rw-rw-r--   1 kehoe    kehoe      474266 Apr 18 12:56 webserver.jar

I try to run from a build.sh script:

$ cat build.sh
#! /bin/sh
CP=$TOMCAT_HOME/lib/ant.jar
java -classpath $CP:$CLASSPATH org.apache.tools.ant.Main 
-Dtomcat.home=$TOMCAT_HOME "$@"

This is Red Hat Linux release 6.1.

Daniel
kehoe@fortuity.com

Mime
View raw message