How do I debug a Dynamic Web Project using the Tomcat bootstrap?
Author: Deron Eriksson
Description: This tutorial describes how to use the Tomcat bootstrap jar to debug an Eclipse dynamic web project
Tutorial created using: Windows XP || JDK 1.6.0_02 || Eclipse Web Tools Platform 2.0 (Eclipse 3.3.0) || Tomcat 5.5.20
(Continued from page 1)
After creating TestServlet, we can see that several errors exist in the project in the TestServlet class since classes like HttpServletRequest and HttpServletResponse can't be found. To fix this, let's add the TomcatSW libraries to the project's build path.
In the 'dynamic-web-test' project's properties, we can go to 'Java Build Path' and go to the Libraries tab and click Add Variable. We can select CATALINA_HOME and then click Extend.
For simplicity, I selected all of the various Tomcat jarW files and added them to the project's libraries.
After doing so, the errors in the TestServlet class disappeared.
(Continued on page 3)