Apache Tomcat 3.0 Connection - PowerPoint PPT Presentation

1 / 51
About This Presentation
Title:

Apache Tomcat 3.0 Connection

Description:

Apache + Tomcat Apache Web server, Tomcat Test Tomcat tomcat.bat ... – PowerPoint PPT presentation

Number of Views:184
Avg rating:3.0/5.0
Slides: 52
Provided by: jang152
Category:

less

Transcript and Presenter's Notes

Title: Apache Tomcat 3.0 Connection


1
Apache Tomcat 3.0 Connection
  • ???
  • http//ejavaschool.com.ne.kr

2
Apache Web Server ??
  • Web Server? ??? ????, html, txt, jpg, gif ???? ??
    ???? ???? ?? ??? ??? ? ??? ??? ???? ???? ??? ???.
  • Tomcat? Library load, ???
  • Client Request receive, Servlet ?? ??
  • Servlet ?? Tomcat ? ?? ??
  • Html, gif , jpg , txt ?? ??

3
Tomcat ??
  • JSP Container? jsp??? Apache Web Server? ????
    web browser? ??? ? ?? ?? ??(HTML)?? ?????? ???
    ??? ??.
  • JSP ??? Servlet?? ?? ??.
  • Web Server? ?????? ???? ??? ??? ??? ?? ?? ??? ??
    ?? ???? ??.

4
Apache Tomcat ?? ??
  • ?? ?? ??? Web Server? Apache? ????, JSP
    Container? Tomcat? ???? ?? ?? ??? ???? ?? ????
    ??.
  • ?? ????? ?? ?? ??? ???? ??, J2EE ??? ??? ?? IBM?
    WebSphere? BEA? WebLogic, SUN? sunOne ?? ?? Web
    Application Server? ??? Web application? ??,
    ????.

5
Apache Tomcat? ??
Apache Web Server
Tomcat container
???? Web Browser ?? ?? ??? ?? ??
JSP ??
Txt ??
HTML ??
Servlet ??
??????
6
?? ?? ?? ??
  • ?? ? ??
  • Apache Web server, Tomcat ??
  • ?? ?? Test
  • Tomcat? tomcat.bat ?? j2sdk, Tomcat ?? ??
  • Apache httpd.conf ?? Tomcat? tomcat.conf ?? ??
    ??
  • Tomcat tomcat.conf ?? ?? dll ?? ?? ??
  • ApacheModulesJserve.dll ??- Apache? ??.
  • Tomcat Servelt.jar ?? path ??.
  • ?? Test
  • Apache start ? Tomcat start ? Web browser? ??

7
JSP Development Tools
  • Java Development Kit J2SDK 1.4.0
  • Web Server Apache web server 1.3.0
  • JSP Container Jakarta-Tomcat 3.0
  • Data Base Oracle, IBM DB2
  • Editor Edit

8
J2SDK Setup
  • 1. ?? ?? J2sdk1.4.0 ?? http//java.sun.com/Down
    load6/
  • 2. J2SDK ?? ?? ??
  • SET PATHPATHd\j2sdk1.4.0
  • SET CLASSPATH
  • .d\j2sdk1.4.0\lib\ tools.jard\
    j2sdk1.4.0\classes
  • SET JAVA_HOMEd\j2sdk1.4.0

9
Apache Web Server Setup
  • Download 1.3.0 ?? ?? ?? ?? ??.
  • http//www.apache.org/dist/httpd/binaries/win32/
  • Setup
  • - click , next ?? ?? ?.
  • 4. ????
  • - Apache Web server? ???? ?? Drive? ???? ?? ??.
  • -ex) d\Apache Group\Apache?? ??

10
Testing
  1. Start ?? ? ???? ? Apache Http Server ? Control
    Apache Server ? start
  2. web browser ?? ?? Test http//localhost/,
    http//127.0.0.1/
  3. Stop ?? ? ???? ? Apache Http Server ? Control
    Apache Server ? stop

11
Start , Stop
12
Apache ?? ??
13
Apache Configuration 1
  • 1. C\Apache Group\Apache\conf ???? httpd.conf
    ??? ????? open.
  • 2. ? ??? ?? ??? ?? ??? ????.
  • include "d/jakarta-tomcat-3.2.4/conf/tomcat.con
    f
  • ??? ????? /? ??????.
  • 3. ??? ???? close.

14
Open
15
?? ? ??, ??
16
Apache Configuration 2
  • D\apache\conf\httpd.conf ?? ??
  • Server name ?? ??.
  • http//127.0.0.1 ? ????? http//localhost ? ??.
  • ?? ?? ??? ?? ???.

17
Apache Configuration 2
18
Tomcat Setup
  1. Download 3.1.1 ?? version ?? ?? ??.
    http//jakarta.apache.org/builds/jakarta-tomcat/re
    lease/v3.2.4/bin/ ?? jakarta-tomcat-3.2.4.zip
    down
  2. Setup ???? ?? ?? ?? ?.
  3. d\ drive? ??(Tomcat version ?? ? ?? ?? ??? ???
    ???).

19
Binaries click (1)
20
http//www.apache.org/dist/jakarta/ click (2)
21
jakarta-tomcat/ click (3)
22
release/ click (4)
23
v3.2.4/ click (5)
24
bin/ click (6)
25
jakarta-tomcat-3.2.4.zip click(7)
26
Tomcat 3.0 directory ??
27
? Directory ?? 1
  • bin Tomcat ?? ?? ???? ??
  • classes class path? ??? ???? class?? ???? ??
    ??, ??? ?? ??
  • conf ?? ???? ??
  • - sever.xml ?? ?? ?? ??
  • - web.xml ???? Web ??????? ?? default??? ???

28
2(??)
  • doc ?? ?? ??
  • lib- ?? ??? ??? jar ?? ??
  • src- Tomcat Source ??
  • webapps web ?????? ??, html-Servlet JSP ??
    ???
  • work- JSP? ?? ??? java, class ?? ???

29
Tomcat Configuration
  • Apache? Tomcat ? ?? ??? ?? ?? ??? ? ??? ??. ???
    ?? ? Web Server? version? ??? ??? ???.
  • Tomcat 3 version ? 4 version ? ?? ??? ??? ????
    ??, ????? ?? ????? ?? ??? ??? ???? ?? ????.

30
Tomcat Configuration 1
  • tomcat.bat ??? PATH ?? ??
  • - d\jakarta-tomcat-3.2.4\bin ?? ?? tomcat.bat
    ??? ????? open.
  • - _at_echo off ? ?? ?? ??? ?? ??? ???? ????.
  • set JAVA_HOMEd\j2sdk1.4.0
  • set TOMCAT_HOMEd\jakarta-tomcat-3.2.4
  • - ??? ???? close.
  • ?????? path ???? ?? ?? ?? ????

31
open
32
Edit and Save
33
Tomcat Configuration 2
  • 2. ?? ??? path ?? ??
  • java_homed\j2sdk1.4.0
  • tomcat_homed\jakarta_tomcat-3.2.4
  • ? ? ?? ?? ? ? ?? ??? ?? ?.
  • ???? ??? ????? ???? ?? ???? ?? ?? ???.

34
???? ??
35
Tomcat Modules ?? 2
  • d\jakarta-tomcat-3.2.4\conf - tomcat.conf
  • 8?? ?? ??? ?? ????.
  • LoadModule jserv_module modules/ApacheModuleJ
    Serv.dll
  • ? ????. ? ? ??? ????? ??.
  • ApacheModuleJServ.dll ????? Windows ?????? ?? ??
    ?? ?.
  • LoadModule jserv_modulelibexec/mod_jserv.so
  • ? ?? ? ????. ? ??? ????? ??
  • mod_jserv.so ????? Linux, Unix??? ?? ?? ?? ???.
  • ??? ???? close.

36
open
37
Edit and Save
38
?? ??? ??

  • Apache JServ Configuration
    File

  • Note this file should be appended or included
    into your httpd.conf
  • Tell Apache on win32 to load the Apache JServ
    communication module
  • LoadModule jserv_module modules/ApacheModuleJServ
    .dll
  • Tell Apache on Unix to load the Apache JServ
    communication module
  • For shared object builds only!!!
  • _at_LOAD_OR_NOT_at_LoadModule jserv_module
    _at_LIBEXECDIR_at_/mod_jserv.so
  • LoadModule jserv_module libexec/mod_jserv.so

39
Tomcat class path setting
  • Tomcat? ?? ???? ?? ????? ???? ??? ? ????? ???
    ????? ?? ???? ??.
  • 1. servlet.jar??? ??? ????.
  • d\jakarta-tomcat3.2.4\lib\servlet.jar? ?? ???
    ????.
  • 2. ?? ??? Servlet.jar??? ????
  • d\J2SDK1.4.0\jre\lib\ext directory? ????.
  • ??? 2000 ???? ???? ?? ?? -?

40
Path ?? 1
41
Path ?? 2
42
Path ?? 3
43
Path ?? 4
44
Apache? Tomcat connection
  • http//jakarta.apache.org/builds/jakarta-tomcat/re
    lease/v3.1.1/bin/win32/i386/ ??
  • ApacheModuleJServ.dll ??? ?? ??,
  • D\Apache Group\Apache\Modules Directory? ????.

45
Paste Tomcat.conf ????
46
TESTing ??
  • Apache Web server Starting
  • ?? ? ???? ? Apache Http Server ? Control Apache
    Server ? start
  • d\Jakarta-Tomcat\bin\startup start
  • Web browser ?? ??
  • http//127.0.0.1/examples/ ??
  • http//127.0.0.18080/examples/ ????.
  • ?? ?? ---?

47
http//127.0.0.18080/examples/jsp/index.html
48
http//127.0.0.1/servlet/SnoopServlet
49
Tomcat docBase edit -1
  • ?? lttomcat_homegt\conf\server.xml
  • docBase - ?? servlet? jsp ? ???? ?? ?
  • Path- url ?? ??? dir ???
  • webapps - lttomcat_homegt\ webapps\examples ?????
    ???
  • http//localhost/examples ? path ?? ?? ????.
  • ltContext path"/examples" docBase"webapps/example
    s"
  • crossContext"false" debug"0
  • reloadable"true" gt
  • lt/Contextgt

50
Tomcat docBase edit -2
  • /test/examples dir? ?? ??? ???? ??? ???? docBase
    ? ???? ?.
  • ltContext path"/examples" docBase"/test/examples"
    crossContext"false" debug"0" reloadable"true"
    gt
  • lt/Contextgt

51
3(continued)
  • ??? dir? ??
  • /www/shop dir? ? ??????? ???? URL? shop?? ??.
  • ltContext path"/shop"
  • docBase"/www/shop" debug"0"
    crossContext"false" sreloadable"true" gt
  • lt/Contextgt
Write a Comment
User Comments (0)
About PowerShow.com