From forrest-dev-return-4889-apmail-xml-forrest-dev-archive=xml.apache.org@xml.apache.org Sat Feb 15 01:24:35 2003 Return-Path: Delivered-To: apmail-xml-forrest-dev-archive@xml.apache.org Received: (qmail 71005 invoked by uid 500); 15 Feb 2003 01:24:34 -0000 Mailing-List: contact forrest-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: forrest-dev@xml.apache.org Delivered-To: mailing list forrest-dev@xml.apache.org Received: (qmail 70996 invoked from network); 15 Feb 2003 01:24:34 -0000 Received: from grunt24.ihug.com.au (203.109.249.144) by daedalus.apache.org with SMTP; 15 Feb 2003 01:24:34 -0000 Received: from p403-apx1.syd.ihug.com.au (expresso.localdomain) [203.173.141.149] by grunt24.ihug.com.au with esmtp (Exim 3.35 #1 (Debian)) id 18jr4J-0000Xi-00; Sat, 15 Feb 2003 12:24:40 +1100 Received: from jeff by expresso.localdomain with local (Exim 3.35 #1 (Debian)) id 18jr4W-000193-00 for ; Sat, 15 Feb 2003 12:24:52 +1100 Date: Sat, 15 Feb 2003 12:24:52 +1100 From: Jeff Turner To: forrest-dev@xml.apache.org Subject: Re: forrest webapp install fails for 0.4 release Message-ID: <20030215012452.GA3841@expresso.localdomain> Mail-Followup-To: forrest-dev@xml.apache.org References: <3E4D2728.8070609@nceas.ucsb.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3E4D2728.8070609@nceas.ucsb.edu> User-Agent: Mutt/1.4i X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Fri, Feb 14, 2003 at 08:28:08AM -0900, Matt Jones wrote: > Hi, > > I just downloaded forrest 0.4 and tried to install the webapp on a clean > machine. After running 'forrest webapp' and configuring it in Tomcat > 3.3.1a, I tried to access the webapp and got a ClassNotFoundException > for a xerces class. > > It turns out that neither the xml-apis.jar nor the xercesImpl.jar were > copied over to the webapp/WEB-INF/lib directory. Looking at the forrest > build file, it seems that these files are not copied if one is using > jdk1.4+. I am using jdk1.4.1_01 on linux. By manually copying those > two jars across from forrest, the webapp then worked flawlessly. > > Is there another way I should have fixed this? Can the webapp target be > patched to copy these jar files as well, even under jdk1.4+? If > jdk1.4.1 is supposed to contain a copy of these jars already, do you > have any ideas as to why weren't they found on my classpath? JDK 1.4 comes with the Crimson XML parser, and an old buggy version of Xalan. Forrest requires Xerces (some XNI stuff) and a more recent version of Xalan. With Tomcat 3.x, this can be achieved by setting: export TOMCAT_OPTS=-Djava.endorsed.dirs=$FORREST_HOME/lib/endorsed Or (I think) copying the $FORREST_HOME/lib/endorsed/*.jar files into $JAVA_HOME/jre/lib/endorsed HTH, --Jeff > Thanks, > Matt >