$ ./build.sh
Searching for build.xml ...
Buildfile: /usr/local/jakarta/jakarta-tomcat/build.xml
BUILD FAILED
No JAXP compliant XML parser found. See http://java.sun.com/xml for the
reference implementation.
java.lang.ClassNotFoundException: javax.xml.parsers.SAXParserFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java, Compiled Code)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java, Compiled
Code)
at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java,
Compiled Co
de)
at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.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
$
Now this confuses me somewhat as surely Ant would have failed to build if
there was no findable XML interpreter installed, the jaxp.jar and parser.jar
(from jaxp1.01.zip off Sun) are in /opt/java2-1.2.2/lib along with
/usr/local/jakarta/jakarta-ant/lib (Ant installed them in the latter
itself). All the readme files and docs as been adhered to with the ENV
variables for JAVA_HOME and CLASSPATH set along with /usr/java2/bin being in
the path.
Has anyone got any bright idea's on this or am I just being incredibly
stupid and missing something obvious ?
Cheers
John B
just be sure to get all the paths to the .jar files right, but you see the
point? try...
"John B" <jboo...@NO-SPAM.acadinfo.co.uk> wrote in message
news:aRJZ5.581$T%5.6...@news6-win.server.ntlworld.com...
The CLASSPATH was set to just /opt/java2-1.2.2/lib which is where the XML
parser files were located, ANT seemed to be happy with this, but Tomcat
obviously wasn't, after a bit of headscratching and messing about I set the
CLASSPATH to include the full file path names to the XML stuff along with
the directory on it's own again. Tomcat was happy with this and found the
other files it needed in the directory without them having to be specified
explicitly.
A bit of a pain, but the sort of problem that you only have once !
Regards and cheers...
John B
"Nils O. Selåsdal" <nose...@frisurf.no> wrote in message
news:CgLZ5.428$Ee....@news1.oke.nextra.no...