I develop with JBuilder 4 Pro which has support for Tomcat 3, but not Tomcat 4. So I did a little digging and discovered the class org.apache.catalina.startup.Embedded. Download the source and look at the main() method in this class. It will show you how to use the Embedded class to run Tomcat from within another class. I wrote my own TomcatRunner class which employs the Embedded class to run Tomcat 4.0.3 much in the same way as Embedded.main() except customized for my application. All you need to do is put TOMCAT_HOME/bin/bootstrap.jar and TOMCAT_HOME/server/lib/catalina.jar in your classpath. Then just run your enclosing class in your debugger. It beats the heck out of trying to customize my IDE to use TC4.
Jeff ----- Original Message ----- From: "Trenton D. Adams" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Sent: Wednesday, June 12, 2002 12:12 PM Subject: Debugging > Where could I get information on debugging a web application under > tomcat? Is there a way of doing it or do you have to just do a whole > bunch of printing to the tomcat screen or web page? > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
