tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donie Kelly <>
Subject RE: How to debug servlets under tomcat?
Date Tue, 29 Apr 2003 13:47:22 GMT
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

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
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
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. 


-----Original Message-----
From: Shapira, Yoav []
Sent: 29 April 2003 14:21
To: Tomcat Users List
Subject: RE: How to debug servlets under tomcat?


>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:
For additional commands, e-mail:

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.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message