You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "PELOQUIN,JEFFREY (Non-HP-Boise,ex1)" <je...@non.hp.com> on 2002/03/12 18:49:25 UTC

RE: Apache Tomcat/4.0.3 - HTTP Status 404 - /servlet/SnoopServlet is not available.

Could this ol' lack of trailing / problem

Have you tried http://www.domain.com/servlet/SnoopServlet/

-----Original Message-----
From: Hostmaster of the day [mailto:hostmaster@deltaphon.net]
Sent: Tuesday, March 12, 2002 10:35 AM
To: tomcat-user@jakarta.apache.org
Subject: Apache Tomcat/4.0.3 - HTTP Status 404 - /servlet/SnoopServlet
is not available.


Hello ... 

I'm writing again asking again for some help.

In the meanwhile I changed from mod_jk to mod_webapps
but I still receive the same error message. The logs in
/var/tomcat4/logs/. are looking pretty good.

http://localhost:8080 is working great.
Tomcat 4.0.3 is working great.
Apache 1.3.20 is working great.

But http://IP-address/servlet/SnoopServlet
or http://www.domain.com/servlet/SnoopServlet
not at all ! Status 404 = description 
The requested resource (/servlet/SnoopServlet) is not available.

It is there ... definetely - uurgh

Please don't let me down. I'll loose my job if
I'm unable to fix that stupid problem.

Thanks,
Mark Wollner

<---

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>

--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>