Apache Software Foundation | Jakarta Project | Apache Tomcat
FAQ about building mod_webapp

${warp.home}/build.xml:169: Cannot find the Apache Xalan XSLT processor
The xalan.jar file is missing in ${ant.home}/lib.
Dowload it from xml.apache.org:
[user@host] ~ $ wget http://xml.apache.org/dist/xalan-j/xalan-j_2_3_1-bin.tar.gz
[user@host] ~ $ gzip -dc xalan-j_2_3_1-bin.tar.gz | tar xvf -
Xalan 2.3.1 was the lastest xalan version available when writting the document. tar must be a gnu tar. And it probably accept the option z.
Extract it and copy it in ${ant.home}/lib
[user@host] ~ $ cp ${xalan.home}/bin/xalan.jar ${ant.home}/lib

java.lang.NoClassDefFoundError: org/w3c/dom/traversal/NodeIterator
The xerces files are missing (xerces.jar or xercesImpl.jar and xmlParserAPIs.jar). xercesImpl.jar and xmlParserAPIs.jar are for xerces-2.x Download the xerces files and copy them in $ant.home/lib. The
[user@host] ~ $ wget http://xml.apache.org/dist/xerces-j/Xerces-J-bin.2.0.1.tar.gz
[user@host] ~ $ gzip -dc Xerces-J-bin.2.0.1.tar.gz | tar xvf -
[user@host] ~ $ cp ${xerces.home}/xercesImpl.jar ${ant.home}/bin
[user@host] ~ $ cp ${xerces.home}/xmlParserAPIs.jar ${ant.home}/bin
Xerces 2.0.1 was the lastest xerces version available when writting the document.

/export/home/apache20/jakarta-tomcat-connectors/webapp/build.xml:197: javax.xml.transform.TransformerException: Unknown error in XPath
The ant-optional.jar file is missing. Download a ant-optional.jar corresponding to the ant version you use. For example for ant1.4.1:
[user@host] ~ $ cd ${ant.home}/lib
[user@host] ~ $ wget http://jakarta.apache.org/builds/jakarta-ant/release/v1.4.1/bin/jakarta-ant-1.4.1-optional.jar
[user@host] ~ $ mv jakarta-ant-1.4.1-optional.jar optional.jar