Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 78076 invoked from network); 16 Jun 2000 13:23:55 -0000 Received: from mail.responsenetworks.com (HELO amber.responsenetworks.com) (216.0.120.134) by locus.apache.org with SMTP; 16 Jun 2000 13:23:55 -0000 Received: by mail.responsenetworks.com with Internet Mail Service (5.5.2232.9) id ; Fri, 16 Jun 2000 09:23:16 -0400 Message-ID: From: Ken Baltz To: "'tomcat-user@jakarta.apache.org'" Subject: RE: servlet cannot find depending JAR file Date: Fri, 16 Jun 2000 09:23:10 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2232.9) Content-Type: text/plain; charset="windows-1252" X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N I'm surprised the way you have it doesn't work. However, there is a "correct" place for .jar files. This is in the WEB-INF/lib directory of your web app. Any jar files found in this directory get added to the classpath for that web app. jakarta-tomcat/lib should be reserved for things needed to start Tomcat, I believe. K.C. > -----Original Message----- > From: H.vanderLinden@MI.UNIMAAS.NL > [mailto:H.vanderLinden@MI.UNIMAAS.NL] > Sent: Friday, June 16, 2000 8:24 AM > To: tomcat-user@jakarta.apache.org > Subject: servlet cannot find depending JAR file > > > Hello, > > if this is not the correct place, please tell me where I > should post this > question. > > Situation: > > 1. I've developed some XML + XSL files using saxon by Michael > Kay. This > works. > 2. I've developed a simple JSP that sends these files in the > correct format > to Michael's SaxonServlet. I've used > Tomcat with the Sun JDK 1.2.2 on a Windows 98 PC. This works too. > 3. I have a Redhat 6.2 Linux machine (Intel platform) > installed with Apache > and Tomcat running. > 4. Apache correctly handles my standard HTML files. > 5. Tomcat correctly handles all example JSP's and example servlets. > 6. Tomcat also correctly handles a simple JSP I wrote myself > (and put in the > examples directory). > > Problem: > My JSP (step 2) starts the SaxonServlet, but that one finishes with > 'NoClassDefFound' org/icl/saxon/. This is > stored in saxon.jar > which I added to the jakarta-tomcat/lib directory. Saxon.jar > also shows up in the classpath displayed by startup.sh of > tomcat. Saxon.jar > depends on a file called 'ParserManager.properties' file > which should be in > a directory on the classpath. So I put it in a separate > directory under lib > (jakarta-tomcat/lib/test) which I added to the classpath. > > When I call the SaxonServlet with parameters right from the > 'commandline' of > my browser (IE5) I get the same error. > > According to Michael Kay the problem is in the classpath. So, > can anyone > tell me where I should store the saxon.jar file? > > Thanks in advance. > > Bye, > > Helma van der Linden > Medical Informatics > h.vanderlinden@mi.unimaas.nl > > -------------------------------------------------------------- > ------------ > To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org > For additional commmands, email: tomcat-user-help@jakarta.apache.org >