Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 33374 invoked from network); 29 Apr 2003 15:19:58 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 29 Apr 2003 15:19:58 -0000 Received: (qmail 25131 invoked by uid 97); 29 Apr 2003 15:21:58 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 25124 invoked from network); 29 Apr 2003 15:21:58 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 29 Apr 2003 15:21:58 -0000 Received: (qmail 37663 invoked by uid 500); 29 Apr 2003 13:59:35 -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 37634 invoked from network); 29 Apr 2003 13:59:34 -0000 Received: from neptune.tecnomen.ie (HELO hurricane.TECNOMEN.IE) (193.120.120.162) by daedalus.apache.org with SMTP; 29 Apr 2003 13:59:34 -0000 Received: from apollo.tecnomen.ie (unverified) by hurricane.TECNOMEN.IE (Content Technologies SMTPRS 4.3.6) with ESMTP id for ; Tue, 29 Apr 2003 14:58:19 +0100 Received: by apollo.tecnomen.ie with Internet Mail Service (5.5.2656.59) id ; Tue, 29 Apr 2003 14:47:23 +0100 Message-ID: <4135D07B3996D1118F3100805F8B0B0E0418AA37@apollo.tecnomen.ie> From: Donie Kelly To: 'Tomcat Users List' Subject: RE: How to debug servlets under tomcat? Date: Tue, 29 Apr 2003 14:47:22 +0100 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 In fairness, this thread is about debugging and not logging. I see a subtle difference. Debugging a servlet locally using an IDE is much more productive. Our solution here is a) install tomcat locally (make sure you can start and run tomcat) b) install eclipse c) Go to Run | Debug... and in the dialog set the main class to org.apache.catalina.startup.Bootstrap d) On next tab of same dialog set the Program arguments to "start" e) On tomcat 4.1.18 you need the following jars in your classpath /bin/bootstrap.jar /common/lib/naming-resources.jar /common/lib/naming-common.jar /common/lib/commons-collections.jar /common/lib/servlet.jar /server/lib/common-beanutils.jar /server/lib/Catalina.jar /server/lib/commons-digester.jar /server/lib/tomcat-util.jar f) Earlier version of tomcat may require a slightly different set of jars. Install them all from the directories bin, common/lib and server/lib if you are unsure. g) Create a project in eclipse and set it's output path to be the WEB-INF/classes directory wherever that is (configure in server.xml) h) Your application should be runable locally without using eclipse. If that is the case then eclipse will have no problem. Running in a production environment is a different ball game and we use a separate official build/install that takes into account the platform other obvious things. We also use log4j for logging in the production environment. That's what it's for. Donie -----Original Message----- From: Shapira, Yoav [mailto:Yoav.Shapira@mpi.com] Sent: 29 April 2003 14:21 To: Tomcat Users List Subject: RE: How to debug servlets under tomcat? Howdy, >Get eclipse and debug the servlets interactively. Using log4j involves >putting log statements in your code and is not ideal. Good luck doing Eclipse in production. Insufficient logging (in either dev or production) is sufficient cause for termination IMHO. Yoav Shapira Millennium ChemInformatics This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, 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 ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.clearswift.com ********************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org