Hi,=0A=A0=0AThanks to all who answered my previous post regarding running T=
omcat with IIS7.=0A=A0=0AI am still quite confused about the whole thing, s=
o I think I should try to =0Aforget about IIS for the time being, and conce=
ntrate first on how to get Tomcat =0Aservice to serve a java website sittin=
g physically outside of Tomcat's installed =0Afolder.=0A=A0=0ABTW, platform=
is Windows 2008 R2 64bit.=0ATomcat installed is 5.5.32. (In my previous qu=
estion I installed 6.0.30 but I =0Anow realised when the website was runnin=
g on Linux, my manager was using 5.5.23 =0Aand now I can only find 5.5.32 t=
o download. I hope it makes no difference).=0A=A0=0A=A0=0AFor example, Tomc=
at service is installed on: (... means some more sub folders or =0Afiles wi=
thin):=0AC:\Tomcat\=0A=A0=0AAnd the subfolders under this folder are:=0AC:\=
tomcat\bin\...=A0=A0 (contains tomcat5.exe, tomcat5w.exe, and 3 .jar files)=
=0AC:\tomcat\common\...=0AC:\tomcat\conf\...=A0=A0 (contains catalina.polic=
y, catalina.properties, =0Acontext.xml, logging.properties, server.xml, ser=
ver-minimal.xml, =0Atomcat-users.xml, web.xml)=0AC:\Tomcat\conf\Catalina\=
=0AC:\Tomcat\conf\Catalina\localhost=0AC:\tomcat\logs=0AC:\tomcat\server=0A=
C:\Tomcat\server\classes\=0AC:\Tomcat\server\lib\...=A0=A0 (many .jar files=
in there, e.g. catalina.jar)=0AC:\Tomcat\server\webapps\...=0AC:\tomcat\sh=
ared\...=0AC:\tomcat\temp=0AC:\tomcat\webapps\ROOT\...=0AC:\tomcat\work=0A=
=A0=0AMy Java web application is placed in:=0AC:\WebApp1\=0A=A0=0AWith subf=
olders:=0AC:\WebApp1\bin\...=A0=A0 (contains tomcat5.exe and tomcat5w.exe a=
nd many .sh and =0A.bat files as we previously start this site using the st=
artup.bat before I =0Ainstalled the Tomcat service)=0AC:\WebApp1\common\...=
=0AC:\WebApp1\conf\...=A0=A0 (contains catalina.policy, catalina.properties=
, =0Acontext.xml, logging.properties, server.xml, server-minimal.xml, =0Ato=
mcat-users.xml, web.xml specifically used by this website)=0AC:\WebApp1\con=
f\Catalina\=0AC:\WebApp1\logs\=0AC:\WebApp1\server\=0AC:\WebApp1\server\lib=
\...=A0=A0 (many .jar files in there, e.g. catalina.jar)=0AC:\WebApp1\share=
d\...=0AC:\WebApp1\sslcerts\...=A0=A0 (SSL certificates in here)=0AC:\WebAp=
p1\webapps\ROOT\...=A0=A0 (This is the root of the website. E.g. default.js=
p =0Asits in here)=0AC:\WebApp1\webapps\ROOT\WEB-INF\classes\...=A0=A0 (The=
java classes we created to be =0Aused for the website to interact with bac=
k-end database)=0AC:\WebApp1\webapps\ROOT\WEB-INF\lib\...=A0=A0 (some 3rd p=
arty .jar files =0Aspecifically used by this website)=0AC:\WebApp1\webapps\=
ROOT\WEB-INF\web.xml=A0=A0 (contains the listener definition, =0Apoints to =
the listener class, so that when this site starts the listener class =0Acan=
perform some initialisation tasks)=0AC:\WebApp1\work=0A=A0=0A=A0=0AQuestio=
n:=0A1. How should I configure Tomcat service so that it serves the WebApp1=
website? =0AWhich file in which folder to modify?=0A2. When Tomcat starts =
WebApp1 website, which set of configuration files is it =0Ausing? (Those in=
C:\tomcat\conf\ or those in C:\WebApp1\conf\?)=0A3. If I am to add another=
website to the same server, say C:\WebApp2, with exact =0Afolder structure=
as WebApp1, how should I configure Tomcat service so that it =0Aserves bot=
h WebApp1 and WebApp2?=0A4. The two sites will use different IP addresses. =
For example WebApp1 is =0A43.88.12.123, and WebApp2 is 43.88.12.133. How do=
I tell Tomcat which IP belongs =0Ato which website?=0A=A0=0A=A0=0AAgain, y=
our input is very much appreciated.=0A=A0=0ABest regards=0AConway
|