My fault ;-( Thank you ! I changed the server.xml and placed the host tags correctly within the "Tomcat-Apache" part :
Then tomcat4 stop tomcat4 start apache stop apache start and ... the problem still persists. Unbelievable but true. The same 404 status. I'm so sorry, --Mark ----- Original Message ----- From: <[EMAIL PROTECTED]> To: "Hostmaster of the day" <[EMAIL PROTECTED]> Sent: Wednesday, March 13, 2002 4:02 PM Subject: Re: Apache Tomcat/4.0.3 - HTTP Status 404 - /servlet/SnoopServlet is not available. > > I just checked your server.xml that you attached. The <Host.../> tags are > present within the <Service name="Tomcat-Standalone">. You need to put them > within the <Service name="Tomcat-Apache"> tag since you have associated > the <Connector className > ="org.apache.catalina.connector.warp.WarpConnector".../> with > Tomcat-Apache. > So just cut and paste the Host tags from the Tomcat-Standalone to > Tomcat-Apache. > > ****************************************** > > So eventually your server.xml will read like this: > > <Service name="Tomcat-Apache"> > > <Connector className="org.apache.catalina.connector.warp.WarpConnector" > port="8008" minProcessors="5" maxProcessors="75" > enableLookups="true" appBase="webapps" > acceptCount="10" debug="0"/> > > <!-- Replace "localhost" with what your Apache "ServerName" is set to > --> > <Engine className="org.apache.catalina.connector.warp.WarpEngine" > name="Apache" debug="0"> > > <!-- Global logger unless overridden at lower levels --> > <Logger className="org.apache.catalina.logger.FileLogger" > prefix="apache_log." suffix=".txt" > timestamp="true"/> > > <!-- Because this Realm is here, an instance will be shared globally > --> > <Realm className="org.apache.catalina.realm.MemoryRealm" /> > > <!-- Roshan - Here's where your Host tags will go..... --> > <Host name="domain.com"> > <Context path="" docBase="/var/www/host2/html" reloadable="true" debug > ="0"/> > </Host> > <!-- You may not require this. I'll leave it to you to decide. But I've > commented it out. > <Host name="111.111.111.0"> > <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> > <!-- You may not require this. I'll leave it to you to decide. But I've > commented it out. > <Host name="222.222.222.0"> > <Context path="" docBase="/var/www/host3/html" reloadable="true" debug > ="0"/> > </Host> > --> > </Engine> > > </Service> > > </Server> > > ****************************************** > > Thanks. > RS > > > > > > Hostmaster of the day <[EMAIL PROTECTED]> on 03/13/2002 08:35:56 AM > > To: [EMAIL PROTECTED] > cc: > > Subject: Apache Tomcat/4.0.3 - HTTP Status 404 - /servlet/SnoopServlet is > not available. > > > Here they are : > > a) httpd.conf got the following entries : > > LoadModule webapp_module modules/mod_webapp.so > AddModule mod_webapp.c > > <IfModule mod_webapp.c> > WebAppConnection warpConnection warp localhost:8008 > WebAppDeploy ROOT warpConnection /tomcat/ > WebAppDeploy examples warpConnection /examples/ > </IfModule> > > vhost.conf : > > <VirtualHost 100.100.100.100> > ServerName domain.com > DocumentRoot /var/www/host2/html > User host2user > Group users > ScriptAlias /cgi-bin/ /var/www/host2/html/cgi-bin/ > WebAppConnection conn warp localhost:8008 > WebAppDeploy /var/www/host2/html/ conn / > php_admin_value open_basedir /var/www/host2 > php_admin_value upload_tmp_dir /var/www/host2/phptmp > CustomLog /var/www/host2/log/access_log > </VirtualHost> > > b) I'm using the standard web.xml file of the Tomcat4.0.3 > distribution. I changed nothing. > > c) please find the server.xml file attached as server.txt > > Is it necessary to create a webapps directory within > a virtual host directory ? > > It would be the greatest day in my life if this error could > be found and fixed. I never have had so much trouble. > > Thanks, > --Mark > > > > > Line 2 looks ok to me. If you could send in the virtual host section of > the > > httpd.conf, the Host/Context part of your server.xml, and the > appropriate > > part of your web.xml then maybe someone could figure out the problem. > > > > RS > > > > > > > > Hostmaster of the day <[EMAIL PROTECTED]> on 03/12/2002 01:36:22 > PM > > > > Please respond to "Tomcat Users List" <[EMAIL PROTECTED]> > > > > To: [EMAIL PROTECTED] > > cc: > > > > Subject: pache Tomcat/4.0.3 - HTTP Status 404 - /servlet/SnoopServlet is > > not available. > > > > You are welcome ! > > > > Yes I have : > > > > WebAppConnection conn warp localhost:8008 > > WebAppDeploy /var/www/host2/html/ conn / > > > > Could line 2 be the error ? > > > > --Mark > > > > > > > > OK let's try once again :-) Apologize for the previous dumb email. > > > Anyway, maybe a stupid question :-) but have you configured your > > virtual > > > host in the httpd.conf. Something like this > > > > > > <VirtualHost 100.100.100.100> > > > ServerAdmin [EMAIL PROTECTED] > > > DocumentRoot /var/www/host2/html > > > ServerName domain.com > > > WebAppConnection conn warp localhost:8008 > > > WebAppDeploy _ conn / > > > ErrorLog logs/domain.com-error_log > > > CustomLog logs/domain.com-access_log common > > > </VirtualHost> > > > > > > And your server.xml (atleast for domain.com): > > > <Host name="domain.com"> > > > <Context path="" docBase="/var/www/host2/html" reloadable="true" > > debug > > > ="0"/> > > > </Host> > > > > > > > > > Hope this helps. > > > RS > > > > > > > > > > > > > > > > > > Hostmaster of the day <[EMAIL PROTECTED]> on 03/12/2002 > > 11:35:23 AM > > > > > > Please respond to "Tomcat Users List" > > <[EMAIL PROTECTED]> > > > > > > To: [EMAIL PROTECTED] > > > cc: > > > > > > 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: > > <mailto:[EMAIL PROTECTED]> > > > For additional commands: > > <mailto:[EMAIL PROTECTED]> > > > Troubles with the list: > > <mailto:[EMAIL PROTECTED]> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > To unsubscribe: > > <mailto:[EMAIL PROTECTED]> > > > For additional commands: > > <mailto:[EMAIL PROTECTED]> > > > Troubles with the list: > > <mailto:[EMAIL PROTECTED]> > > > > > > > > > -- > > To unsubscribe: <mailto:[EMAIL PROTECTED]> > > For additional commands: <mailto:[EMAIL PROTECTED]> > > Troubles with the list: <mailto:[EMAIL PROTECTED]> > > > > > > > > > > > > > > > > > > > > -- > > To unsubscribe: <mailto:[EMAIL PROTECTED]> > > For additional commands: <mailto:[EMAIL PROTECTED]> > > Troubles with the list: <mailto:[EMAIL PROTECTED]> > > > > > > > -- > To unsubscribe: <mailto:[EMAIL PROTECTED]> > For additional commands: <mailto:[EMAIL PROTECTED]> > Troubles with the list: <mailto:[EMAIL PROTECTED]> > ****server.txt (16107 bytes) has been removed from this note. > ****server.txt (16107 bytes) has been removed from this note. > > > > -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
