Build the tomcat6 source code reading environment

Source: Internet
Author: User

Objective: To use myeclipse8.5 to read the Tomcat 6 source code.

Step 1: Integrate the svn Plugin in myeclipse8.5.

Step 2: Use the check out code in the address http://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunkas a Java Project

This SVN address can be found from the apache-tomcat-6.0.41-src/building.txt.

Step 3: configure the Java/RES/test directory as the source code directory.

Step 4: handle jar package dependency errors

1) Servlet/JSP and other environment Dependencies

2) Ant environment dependency

3) dependencies of Tomcat extension environments such as WebService

4) junit4 environment dependency

 

Step 5: The result is as follows:

 

This makes it easy to use the shortcut keys/code prompts of the excellent eclipse tool to highlight/and other functions to view and modify the code.

Tomcat is such a popular servlet container. I believe that by learning her source code, it will certainly benefit a lot in terms of architecture design understanding or specific encoding, such as HTTP protocol parsing.

 

Appendix 1: There are some fixme tips on Tomcat source code, which is really open-source

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.