Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 92411 invoked from network); 8 Oct 2002 12:35:51 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 8 Oct 2002 12:35:51 -0000 Received: (qmail 12459 invoked by uid 97); 8 Oct 2002 12:36:14 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 12443 invoked by uid 97); 8 Oct 2002 12:36:14 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 12431 invoked by uid 98); 8 Oct 2002 12:36:13 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-ID: <399E1F52E73BD41194A800D0B74A08AB01E4DC12@skipper.cincom.com> From: "Cox, Charlie" To: 'Tomcat Users List' Subject: RE: Classpath and Aliases on Tomcat 4 Date: Tue, 8 Oct 2002 08:34:38 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2656.59) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N tomcat does not use the classpath. your classes must go under /tomcat/common/lib or within your context. you can try soft links, but they are disabled in 4.1.x by default. for your static files, just create a directory under your context - then you can access it as a subdir in your url. you also need to rename your .zip files that contatin classes to .jar Charlie > -----Original Message----- > From: Matthew Smith [mailto:matthew.smith@brio.com] > Sent: Tuesday, October 08, 2002 2:23 AM > To: Tomcat Users List (E-mail) > Subject: Classpath and Aliases on Tomcat 4 > > > G'Day, > > I hope I'm not about to rehash an old subject here. I couldn't find a > satisfactory answer in the mail archives. > > I have a web-based application that is not designed as a > webapp. It has a > single servlet as its interface to the world. This servlet, > and all of its > supporting classes, are in a directory on the file system. > Some of the > classes are unpackaged, while most of them are in JAR or ZIP > files. It also > relies on another directory on the file system for images. I > am trying to > configure a webapp to use this application. > > I need to know how to do two things: Add elements to the > classpath from > elsewhere on the file system; and add a static directory to a > web app (as in > the Alias command in the Apache web server). Currently, I > have created a > seperate web app for the static files and just pointed its > base directory at > the images directory. I was hoping for a better way (other > than to use IIS > or Apache). The classpath issue is more difficult. > > I was able to accomplish this in Tomcat 3 by passing the > -Dorg.apache.tomcat.apps.classpath="xxx" system property in > the tomcat.bat > file. Tomcat 4 (Catalina) doesn't seem to know about this > property. I > tried adding the path directly to Tomcat's classpath, but it > seems that in > that case, the wrong class loader is used: I get a > NoClassDefFoundError on > HttpServlet. > > Any suggestions anyone? All help muchly appreciated. > > Thanks, > Matt > > -- > To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: