Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 15328 invoked from network); 20 Jun 2003 14:14:15 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 20 Jun 2003 14:14:15 -0000 Received: (qmail 29630 invoked by uid 97); 20 Jun 2003 14:16:35 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 29622 invoked from network); 20 Jun 2003 14:16:35 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 20 Jun 2003 14:16:35 -0000 Received: (qmail 13850 invoked by uid 500); 20 Jun 2003 14:13:58 -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 13827 invoked from network); 20 Jun 2003 14:13:58 -0000 Received: from unknown (HELO mustang.mpi.com) (63.244.250.132) by daedalus.apache.org with SMTP; 20 Jun 2003 14:13:58 -0000 Received: from lightning.mpi.com (lightning.mpi.com [63.244.252.11]) by mustang.mpi.com (Switch-2.2.6/Switch-2.2.6) with ESMTP id h5KEDuh24969 for ; Fri, 20 Jun 2003 10:13:56 -0400 (EDT) Received: from SF-VS1.corp.mpi.com (sf-be1.mpi.com [10.10.100.56]) by lightning.mpi.com (Switch-3.0.4/Switch-3.0.0) with ESMTP id h5KEDonm020105 for ; Fri, 20 Jun 2003 10:13:57 -0400 (EDT) Received: from US-VS1.corp.mpi.com ([199.93.195.21]) by SF-VS1.corp.mpi.com with Microsoft SMTPSVC(5.0.2195.5329); Fri, 20 Jun 2003 07:13:49 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: configuration Date: Fri, 20 Jun 2003 10:13:48 -0400 Message-ID: <9C5166762F311146951505C6790A9CF834645E@US-VS1.corp.mpi.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: configuration Thread-Index: AcM3NAcn5BHYguiuSVGDQC5ZOy+RtwAAX3vA From: "Shapira, Yoav" To: "Tomcat Users List" X-OriginalArrivalTime: 20 Jun 2003 14:13:49.0936 (UTC) FILETIME=[2BD09F00:01C33736] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Howdy, >2 questions: >- I usually copy/paste all the library .jar files into my jdk/lib and= >choose not to overwrite (tools.jar). Then I can compile servlets w/o= >problem. This is one of those shortcuts that, while apparently harmless, can cause nightmarish headaches. For example, if you override the XML API= s with a bad version. Don't do the above. Use ant. Keep the JDK as it is, keep the tomcat libraries as they are. The source organization, build processes, etc,= are described here: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html >- I'd like to just drop a servlet into a directory, restart the servi= ce and >test servlets. I drop them into one of the /class directories on 4.0= and >this works. 5.0 and 4.1 have about a half dozen "class" directories = in >different locations. I've tried dropping the same servlet on 4.1 in all of >them but it still won't load. Create a "test" or "temp" (or whatever you want to call it) webapp. Create a WEB-INF directory under that webapp, and copy a plain web.xml= (e.g. the one from $CATALINA_HOME/webapps/ROOT) into the WEB-INF directory. Create a classes directory under WEB-INF. That's where you'll copy your compiled servlets. Comment in the invoker servlet mapping in $CATALINA_HOME/conf/web.xml.= Make sure you context is marked as reloadable in server.xml. Then you'll be able to access servlets as http://yourhost:yourport/test/servlet/[servletClassName] (Where test is your webapp name). And don't use tomcat 5 unless you're sure you want it: it's alpha. Yoav Shapira This e-mail, including any attachments, is a confidential business com= munication, and may contain information that is confidential, propriet= ary and/or privileged. This e-mail is intended only for the individua= l(s) to whom it is addressed, and may not be saved, copied, printed, d= isclosed or used by anyone else. If you are not the(an) intended reci= pient, please immediately delete this e-mail from your computer system= and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org