1. JDK SE 다운로드 : http://java.sun.com
2. apache tomcat 다운로드 : http://tomcat.apache.org
3. 환경변수 설정
CLASSPATH=".;D:\Tomcat\lib\servlet-api.jar"
JAVA_HOME="C:\Program Files\Java\jdk1.6.0_21"
CATALINA_HOME="Tomcat 설치경로"
PATH=""%JAVA_HOME%\bin <= 기존 경로의 맨앞에 추가"
4. web.xml 편집 (Servlet 사용 풀어주기)
{TomcatHome}\conf\web.xml 수정 (126line 주석 해제)
<servlet>
<servlet-name>invoker</servlet-name>
<servlet-class>
org.apache.catalina.servlets.InvokerServlet
</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet-name>invoker</servlet-name>
<servlet-class>
org.apache.catalina.servlets.InvokerServlet
</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
{TomcatHome}\conf\web.xml 수정 (386라인 주석해제)
<servlet-mapping>
<servlet-name>invoker</servlet-name>
<url-pattern>/servlet/*</url-pattern>
</servlet-mapping>
<servlet-name>invoker</servlet-name>
<url-pattern>/servlet/*</url-pattern>
</servlet-mapping>
4. context.xml 편집
{TomcatHome}\conf\context.xml 수정 (19line 주석 해제)
<Context reloadable="true" privileged="true">
5. server.xml 편집 (69 line)
<Connector port="80" ...
6. 프로젝트 폴더 생성
7. WEB-INF 폴더 생성 : {프로젝트폴더}\WEB-INF
8. ROOT.xml 생성
{TomcatHome}\conf\Catalina\localhost\ROOT.xml 생성
<?xml version='1.0' encoding='utf-8'?>
<Context displayName="Welcome to Tomcat" docBase="{프로젝트폴더경로}" workDir="{프로젝트폴더경로}\work" reloadable="true"/>
<Context displayName="Welcome to Tomcat" docBase="{프로젝트폴더경로}" workDir="{프로젝트폴더경로}\work" reloadable="true"/>
9. web.xml 복사
{TomcatHome}\webapps\ROOT\WEB-INF\web.xml => {프로젝트폴더경로}\WEB-INF 폴더로 복사
10. 다음 세 파일을 아래 경로에 복사
servlet-api.jar, jsp-api.jar, el-api.jar
C:\Program Files\Java\jdk1.6.0_21\jre\lib\ext