You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Hostmaster of the day <ho...@deltaphon.net> on 2002/03/11 13:36:09 UTC
Apache Tomcat/4.0.3 - HTTP Status 404 - /servlet/SnoopServlet is
not available.
Hi there !
The installation of Tomcat 4.0.3 either as RPM or tar.gz
is a very easy job. But only for the serverhost.
During the past three days I tried to implement two
virtual hosts into Tomcat-Apache without any success.
Error message :
Apache Tomcat/4.0.3 - HTTP Status 404 -
/servlet/SnoopServlet is not available.
I'm using mod_jk and AJP 13 on Port 8009.
The server.xml file got the following entries :
-->
<Host name="domain.com">
<Context path="" docBase="/var/www/host2/html" reloadable="true"
debug="0"/>
</Host>
<Host name="100.100.100.100 <= the static IP-address of domain">
<Context path="" docBase="/var/www/host2/html" reloadable="true"
debug="0"/>
</Host>
<Host name="domain2.com">
<Context path="" docBase="/var/www/host3/html" reloadable="true"
debug="0"/>
</Host>
<Host name="200.200.200.200 <= the static IP-address of domain2">
<Context path="" docBase="/var/www/host3/html" reloadable="true"
debug="0"/>
</Host>
mod_jk.conf :
<IfModule mod_jk.c>
JkWorkersFile /etc/httpd/conf/workers.properties
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel error
# Root context mounts for Tomcat
#
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
JkMount /examples/* ajp13
workers.properties :
workers.tomcat_home=/var/tomcat4
workers.java_home=/usr/java/jdk1.3.1_02
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
httpd.conf :
LoadModule jk_module modules/mod_jk.so
AddModule mod_jk.c
<IfModule mod_jk.c>
Include /etc/httpd/conf/mod_jk.conf
</IfModule>
# Setup Tomcat
<Location ~ ".*/WEB-INF/">
AllowOverride None
deny from all
</Location>
I created in each virtual host directory
WEB-INF
WEB-INF/classes
WEB-INF/lib
and copied the web.xml to
WEB-INF/web.xml
The SnoopServlet.class is located here :
/var/www/host2/html/WEB-INF/classes/SnoopServlet.class
It's not running. I have no success :-(
What's my fault ?
I would say Tomcat cannot allocate the servlet instance for path
/servlet/SnoopServlet
Why ?
Thank you,
Mark Wollner
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>