You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Jarmo Joensuu <j_...@yahoo.com> on 2003/11/27 12:02:58 UTC
[users@httpd] Apache not forwarding to Tomcat
Hi all,
I have this problem that my Apache 2.0.47 server does not forward any requests to my Tomcat 4.1 server (both running locally on my Thinkpad with W2K Pro). I am using mod_jk_1.2.5_2.0.47.dll for the ajp13 protocol.
To be more specific, if I open a browser on my computer and enter the url
http://localhost/examples/jsp/index.html
into the address field, I get the error:
404 Not Found
The requested URL /examples/jsp/index.html was not found on this server.
Apache/2.0.47 (Win32) mod_jk/1.2.0 Server at localhost Port 80
I also get the following error in the Apache error.log log:
[Thu Nov 27 12:15:53 2003] [error] [client 127.0.0.1] File does not exist: C:/Apache/Apache2/htdocs/examples
which indicates that Apache does not route the request to Tomcat.
MORE DETAILS:
1. the examples folder is installed to C:\Tomcat\Tomcat-4.1\webapps\examples and
2. I have included the following line in the httpd.conf file:
include "C:/Tomcat/Tomcat-4.1/conf/auto/mod_jk.conf"
3. I have checked that the directories defined in the "localhost:/examples" section in the C:\Tomcat\Tomcat-4.1\conf\auto\mod_jk.conf file are valid, and that the file also contains the following lines:
<IfModule !mod_jk.c>
LoadModule jk_module c:/apache/Apache2/modules/mod_jk.dll
</IfModule>
JkWorkersFile "C:/Tomcat/Tomcat-4.1/conf/jk/workers.properties"
4. I have checked that the directories defined in the C:\Tomcat\Tomcat-4.1\conf\jk\workers.properties file are valid.
5. I have checked that the directories defined in the <!-- Tomcat Examples Context --> in C:\Tomcat\Tomcat-4.1\conf\server.xml are valid.
6. If I enter http://localhost:8080/examples/jsp/index.html into the browsers address field, the page opens without problems.
---
I have checked and re-checked my settings but feel quite lost at this point. I am wondering whether my jk module (or some other part of the setup) is listening / communicating on the wrong port...but which port would then be correct? My Tomcat stderr.log states that: "ajp13 listening on /0.0.0.0:8009", but how do I know if I should change that to something else?
Assistance on resolving this would be very appreciated...
thanks,
Jarmo
---------------------------------
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
[users@httpd] Re: Apache not forwarding to Tomcat
Posted by Jarmo Joensuu <j_...@yahoo.com>.
ok, there could be something in this...because when I looked at my workers.properties file, I noticed that in the beginning of the file there is the line:
# $Revision: 1.3.2.2 $
this is actually rather embarrassing, but that (likely) means that the file is for the 1.3.x version. Maybe I should check the syntax?
br,
JJ
P.S: the following files:
-httpd.conf.txt
-server.xml.txt
-mod_jk.conf.txt
-workers.properties.txt
are now available at http://www.angelfire.com/falcon/jjoensuu/
Ivan Venuti <i....@caribel.pisa.it> wrote:
maybe you have a wrong workers.properties.
I know that the syntax is changed between Apache 1.3.X and Apache 2
Try also the list about Tomcat
-- Ivan
---------------------------------
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
[users@httpd] R: [users@httpd] Apache not forwarding to Tomcat
Posted by Ivan Venuti <i....@caribel.pisa.it>.
maybe you have a wrong workers.properties.
I know that the syntax is changed between Apache 1.3.X and Apache 2
Try also the list about Tomcat
-- Ivan