aspose file tools*
The moose likes Servlets and the fly likes Apache not forwarding servlets request to Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Apache not forwarding servlets request to Tomcat" Watch "Apache not forwarding servlets request to Tomcat" New topic
Author

Apache not forwarding servlets request to Tomcat

Kaju Singh
Greenhorn

Joined: Jul 30, 2001
Posts: 10
Hi,
I am using Apache 1.3.20 and Tomcat-3.3-b1 for executing servlets/jsp's. Till yesterday everything was working properly. But now Apache is not forwarding the /servlet requests to Tomcat for processing. I am able to start both of them properly.
APACHE->
/home/rajeshk/download/apache/bin> apachectl start
[Tue Aug 28 16:29:35 2001] [alert] httpd: Could not determine the server's fully qualified domain name, using 172.25.80.125 for ServerName
apachectl start: httpd started
TOMCAT->
/home/rajeshk/download/jakarta-tomcat-3.3-b1/bin> Tomcat: setAttribute home=./..
2001-08-28 16:28:45 - ContextXmlReader: Context config=$TOMCAT_HOME/conf/apps-127.0.0.1.xml
2001-08-28 16:28:45 - ContextXmlReader: Context config=$TOMCAT_HOME/conf/apps-examples.xml
2001-08-28 16:28:45 - ContextXmlReader: Context config=$TOMCAT_HOME/conf/apps-admin.xml
2001-08-28 16:28:45 - AutoWebApp: Already loaded: DEFAULT:/admin
2001-08-28 16:28:45 - AutoWebApp: Already loaded: DEFAULT:/examples
2001-08-28 16:28:45 - AutoWebApp: Already loaded: DEFAULT:/
2001-08-28 16:28:45 - AutoWebApp: Already loaded: DEFAULT:/project
2001-08-28 16:28:45 - ContextManager: Adding DEFAULT:/examples
2001-08-28 16:28:45 - ContextManager: Adding DEFAULT:/ROOT
2001-08-28 16:28:45 - ContextManager: Adding DEFAULT:/project
2001-08-28 16:28:45 - ContextManager: Adding DEFAULT:/test
2001-08-28 16:28:45 - ContextManager: Adding DEFAULT:/examples
2001-08-28 16:28:45 - ContextManager: Adding DEFAULT:/admin
2001-08-28 16:28:46 - ApacheConfig: Generating apache mod_jk config = /home/rajeshk/download/jakarta-tomcat-3.3-b1/conf/auto/mod_jk.conf
2001-08-28 16:28:46 - ApacheConfig: mod_jk location: libexec/mod_jk.so
2001-08-28 16:28:46 - ApacheConfig: Make sure it is installed corectly or set the config location
2001-08-28 16:28:46 - ApacheConfig: Using <ApacheConfig modJk="PATH_TO_MOD_JK.SO_OR_DLL" />
2001-08-28 16:28:46 - ApacheConfig: Ignoring root context in mount-all mode
2001-08-28 16:28:46 - ContextManager: Init time 1738
2001-08-28 16:28:46 - Http10Interceptor: Starting on 8080
2001-08-28 16:28:46 - Ajp12Interceptor: Starting on 8008
2001-08-28 16:28:46 - Ajp13Interceptor: Starting on 8009
2001-08-28 16:28:46 - ContextManager: Startup 103
__________________________________________________________
Can somebody help me with this.
Just to add to this-> yesterday I got this error in Tomcat standard error output:
BAD packet 18245
In: : [B@caee16 4/21540
47 45 54 20 00 00 00 00 00 00 00 00 00 00 00 00 | GET.............
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
2001-08-27 17:37:22 - Ajp13Interceptor: Processing connection org.apache.tomcat.util.net.TcpConnection@d5089c - java.lang.ArrayIndexOutOfBoundsException: 8192
at org.apache.tomcat.modules.server.Ajp13Packet.hexLine(Compiled Code)
at org.apache.tomcat.modules.server.Ajp13Packet.dump(Compiled Code)
at org.apache.tomcat.modules.server.Ajp13Packet.checkIn(Compiled Code)
at org.apache.tomcat.modules.server.Ajp13.receive(Compiled Code)
at org.apache.tomcat.modules.server.Ajp13.receiveNextRequest(Compiled Code)
at org.apache.tomcat.modules.server.Ajp13Request.receiveNextRequest(Compiled Code)
at org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Compiled Code)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Compiled Code)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Compiled Code)
at java.lang.Thread.run(Thread.java:479)
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16240
    
  21

About the only thing I can suggest is to ask if you are restarting Apache AFTER you restart Tomcat. Apache opens a tcp/ip pipeline and if Tomcat goes down and back up, Apache is supposed to have to be restarted so it connect to the new Tomcat's sockets.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
Don't get me started about those stupid light bulbs.
 
subject: Apache not forwarding servlets request to Tomcat