You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Andrea Pessotto <pe...@libero.it> on 2001/11/13 13:41:17 UTC
Help configuring Tomcat4.01 and Apache1.3.20 to run servlets
Hi community,
I have some problems running servlets on my PC under Apache...
This is my configuration:
a.. I use Windows2000
b.. I have installed (installer .exe) JDK1.3 in C:\Programmi\jdk1.3
c.. I have installed (installer .exe) Apache 1.3.20 in C:\Programmi\Apache
d.. I have installed (installer .exe) Tomcat 4.0.1 in C:\Programmi\Tomcat
e.. I have setted the environment variables with the system control panel
JAVA_HOME=C:\Programmi\jdk1.3
CATALINA_HOME=C:\Programmi\Tomcat
f.. I have installed the mod_webapp.so module in the apache C:\Programmi\Apache\modules modules directory
g.. I have inserted in httpd.conf the following lines...
LoadModule webapp_module modules/mod_webapp.so
AddModule mod_webapp.c
h.. My app is located in the Tomcat webapps directory, under a folder called SVS generated by SVS.war (which is in webapps folder)
i.. I have added the following lines in httpd.conf
WebAppConnection conn warp localhost:8008
WebAppDeploy SVS conn /SVS
WebAppInfo /webapp-info
j.. and changed the following lines
DocumentRoot "C:/Programmi/Tomcat/webapps/SVS"
.
.
.
<Directory "C:/Programmi/Tomcat/webapps/SVS">
k.. I have added the following lines in server.xml
<!-- Tomcat SVS Context -->
<Context path="/SVS" docBase="SVS" debug="0" reloadable="true"/>
l.. I start Tomcat first, then Apache...
m.. If i load the application with the Tomacat port (8080) (http://localhost:8080/SVS/index.html) all works fine, servlets included
n.. If i load the application with the Apache port (80) (http://localhost/), servlets don't work at all and i get an HTTP 404 error
o.. Watching web infos I obtain:
WebApp Library Configuration
Host sbilf.diegm.uniud.it:80
Application Name
Root URL Path
Local Deployment Path
Configuration Details
Connection
Deployed "_INFO_"
"/webapp-info/"
No local deployment path
No configuration iformation
"_INFO_" (details)
TRUE
Application Name
Root URL Path
Local Deployment Path
Configuration Details
Connection
Deployed "SVS"
"/SVS/"
"C:\Programmi\Tomcat\webapps\SVS"
"Application ID: 0"
"conn" (details)
TRUE
Connections
Connection Name
Connection Parameters
Provider
Configuration Details "_INFO_"
""
"info"
No configuration iformation
Connection Name
Connection Parameters
Provider
Configuration Details "conn"
"localhost:8008"
"warp"
"Host: sbilf.diegm.uniud.it Port:8008 Address:127.0.0.1 (Connected) Server ID: 105383986"
Can someone help me please?
Thanks!
-----------------------------------------------------------------
Andrea Pessotto
Via Casasola, 6
33097 Spilimbergo, PN
ITALY
Mail: pessotto.andrea@libero.it
-----------------------------------------------------------------