Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Tomcat - Compilation problems...

0 views
Skip to first unread message

John B

unread,
Dec 13, 2000, 7:21:31 AM12/13/00
to
I'm having problems getting Jakarta Tomcat to build under UnixWare 7.1.1
with JDK 1.2.2, I have installed Jakarta Ant fine, but Tomcat refuses to
build under the same log in session, etc. with the following error:

$ ./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


Nils O. Selåsdal

unread,
Dec 13, 2000, 8:59:06 AM12/13/00
to
Well, is it in the classpath??
try tying something like this:(in the directory where build.xml resides)
java -cp lib/jaxp.jar:lib/parser.jar:lib/ant.jar:$JAVA_HOME/lib/tools.jar:
org.apache.tools.ant.Main

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...

John B

unread,
Dec 14, 2000, 8:06:52 AM12/14/00
to
Cheers,

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...

0 new messages