Tomcat 8 Source Code Analysis[1] Code Preparation
2015-10-02 17:23
736 查看
1. make sure you have installed Java JDK and Eclipse.
2. check out source code from tomcat svn, see (http://tomcat.apache.org/svn.html) for detail info
3. I check out a tag (TOMCAT_8_0_24) into workspace, in the root dir of which, there is a build.xml for ant build
![](https://img-blog.csdn.net/20151002172649527?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
4. execute it will download dependent jar files into a default dir (set in build.properties) for building project,
5. after building successfully(prompt in console), all class files, and resources files are deployed in output dir under root.
6. for start up tomcat, you need pass some parameters and set system properties, you can get this by studying bat file(TOMCAT_8_0_24\output\build\bin\startup.bat,catalina.bat)
7. select Bootstrap.java, and debug as java application, here is my configuration for debugging.
![](https://img-blog.csdn.net/20151005194106914?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
![](https://img-blog.csdn.net/20151005194130666?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
Here is an official doc for building tomcat (http://tomcat.apache.org/tomcat-8.0-doc/building.html)
2. check out source code from tomcat svn, see (http://tomcat.apache.org/svn.html) for detail info
3. I check out a tag (TOMCAT_8_0_24) into workspace, in the root dir of which, there is a build.xml for ant build
4. execute it will download dependent jar files into a default dir (set in build.properties) for building project,
5. after building successfully(prompt in console), all class files, and resources files are deployed in output dir under root.
6. for start up tomcat, you need pass some parameters and set system properties, you can get this by studying bat file(TOMCAT_8_0_24\output\build\bin\startup.bat,catalina.bat)
7. select Bootstrap.java, and debug as java application, here is my configuration for debugging.
Here is an official doc for building tomcat (http://tomcat.apache.org/tomcat-8.0-doc/building.html)
相关文章推荐
- web应用配置的logback,为什么在tomcat下没日志文件出现
- 如何用tomcat配置虚拟目录,方法要详细明了
- 《深入剖析Tomcat》阅读(一)
- Tomcat中的JSTL配置与使用
- Tomcat一直显示the catalina_home enviroment variable is not defined correctly
- tomcat启动startup.bat一闪而过 显示错误日志
- Tomcat启动startup.bat闪退和JRE_HOME错误
- apache2.2+tomcat实现负载均衡
- tomcat8配置全局数据源
- Tomcat 多实例
- 配置 Apache tomcat 实现负载均衡
- JaEE问题之Tomcat配置成功,但是无法访问localhost
- centos7系统下安装配置jdk、tomcat教程
- tomcat配置
- Apache+Tomcat集群配置+session共享
- ubuntu安装eclipse tomcat的参考网址
- apache和tomcat,各自优势和整合互补
- 关于Tomcat的安装
- Linux-CentOS的tomcat配置和web项目部署
- Server Tomcat v7.0 Server at localhost was unable to start within 45 seconds