Batch
1. web application
Which web application can run on the Tomcat?
- Web application has a WEB-INF folder
- WEB-INF
- lib
- web.xml
- classes
2. by Manager
To use a Manager
2_1 . http://localhost:8080/
- If you get a error, You will change your port number(server.xml)
2_2. Access to Manager App
- Have to config a login id/pw
- /CONF/tomcat-users.xml
- add a
<role rolename="manager-gui"/>
<user username="admin" password="admin" roles="manager-gui"/>
2_3. WAR file to deploy
- window : jar cvf sample.war ./sample
2_4. Click a sample file that was maded
2_5. Check a wepapps folder
3. webapps DIR
- Copy and Paste
4. context.xml
4_1. path
- CATALINA_HOME/conf/context.xml
- CATALINA_HOME/conf/[enfinename]/[hostname]/context.xml.default
- CATALINA_HOME/conf/[enfinename]/[hostname]/[webapp].xml
4_2. example
a. webapplication
- WebApplication was located in ROOT
- C:\Program Files\Apache Software Foundation\apache-tomcat-7.0.69-windows-x64
b. sample.xml
- C:\Program Files\Apache Software Foundation\apache-tomcat-7.0.69-windows-x64\apache-tomcat-7.0.69\conf\Catalina\localhost
- sampe.xml
<?xml version="1.0" encoding="UTF-8"?>
<Context path="sample" docBase="C:\Program Files\Apache Software Foundation\apache-tomcat-7.0.69-windows-x64\sample" debug="0"
reloadable="true" crossContext="true" privileged="true"/>
- path = localhost:8080/sample
- docBase = location that was located in webapplication
'WAS > Tomcat' 카테고리의 다른 글
[Tomcat] 6. Interwork DB (0) | 2016.04.24 |
---|---|
[Tomcat] 5. Batch - Parallel deployment (0) | 2016.04.24 |
[Tomcat] 3. Config (0) | 2016.04.21 |
[Tomcat] 2. Set up a native lib (0) | 2016.04.21 |
[Tomcat] 1. Why do we use a tomcat? (0) | 2016.04.21 |