'Apache Tomcat User Guide'에 해당되는 글 5

  1. 2011.02.18 Apache Tomcat User Guide - 3.2) Installation
  2. 2011.02.18 Apache Tomcat User Guide - 3.1) Introduction
  3. 2011.02.18 Apache Tomcat User Guide - 3) First webapp
  4. 2011.02.18 Apache Tomcat User Guide - 2) Setup
  5. 2010.12.23 Apache Tomcat User Guide - 1) Introduction

Apache Tomcat User Guide - 3.2) Installation

JDK
Tomcat 7.0 은 J2SE 6.0 이 필요하다.

Tomcat

Ant

CVS

Apache Tomcat User Guide - 3.1) Introduction

이 문서는 아키텍쳐를 논의하거나 ... 개발 툴에 대한 것을 깊이있게 다루지는 않는다.
여기서는 텍스트 에디터, 커맨드 라인 툴을 사용한다.

http://java.sun.com/products/jsp/
JavaServer Pages (JSP) Specification, Version 2.0.
Specific information on scripting (Chapter 6)
tag extensions (Chapter 7)
packaging JSP pages (Appendix A)

http://java.sun.com/products/servlet/download.html
Servlet API Specification, Version 3.0.
web application directory structure and deployment file (Chapter 9)
methods of mapping request URIs to servlets (Chapter 11)
container managed security (Chapter 12)
syntax of the web.xml Web Application Deployment Descriptor (Chapter 13)

http://java.sun.com/j2ee/blueprints/
Sun BluePrints (tm) Design Guidelines for J2EE.
servlet and JSP design 장은 J2EE 환경이 아니더라도 유용한 내용을 담고 있다.


Apache Tomcat User Guide - 3) First webapp

Craig R. McClanahan 아저씨가 많이 도와줬다.

Apache Tomcat User Guide - 2) Setup

자세한 내용은 RUNNING.txt 을 볼 것.

Windows에서는 기본적으로 서비스로 설치된다.
보안을 위해서는 권한이 제한된 다른 계정으로 서비스를 실행시키는 것이 좋다.

[todo] Windows service HOW-TO
http://tomcat.apache.org/tomcat-7.0-doc/windows-service-howto.html

Unix 에서는 Tomcat 을 commons-daemon 프로젝트의 jsvc 를 이용해서 데몬으로 실행시킬 수 있다.
-user 옵션을 사용해서 데몬 초기화 후 사용자를 변경할 수 있다.
이러면 root 가 아니더라도 80 포트로 Tomcat 을 띄울 수 있다.

Commons-Daemon JAR 파일이 Tomcat 을 실행시키는 런타임 클래스패스에 있어야 한다.
bootstrap.jar manifest 파일 Class-Path 에 Commons-Daemon JAR 파일이 기술되어 있지만 ClassNotFoundException, NoClassDefFoundError 가 발생하면 jsvc 실행시 -cp 옵션에 명시해주면 된다.

Apache Tomcat User Guide - 1) Introduction

Context is a web application

$CATALINA_HOME, $CATALINA_BASE

톰캣 시작시 설정을 읽어들이므로 설정 파일을 수정하면 재시작이 필요함.

3, 4 버전대 server.xml 과 차이가 많이 난다.