A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Products
»
Tomcat
Author
apache not forwarding servlet request
felix thomas
Ranch Hand
Joined: Jun 10, 2001
Posts: 89
posted
Jan 06, 2005 06:53:00
0
My server configuration is
OS : RedHat Enterprise Linux (Kernel 2.4.21-20.EL)
Apache : 2.0.46
Tomcat
: 5.0.28
JDK : IBMJava2-141
mod_jk : 2.0.48
contents of workers2.properties
--------8<--------8<--------8<--------8<
[shm]
file=/etc/httpd/logs/shm.file
size=1048576
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
[status:status]
[uri:localhost/jkstatus/*]
group=status:status
[uri:localhost/jsp-examples/*]
worker=ajp13:localhost:8009
[uri:localhost/servlets-examples/*]
worker=ajp13:localhost:8009
[uri:www.mydomain.com/mycontext/*.jsp]
worker=ajp13:localhost:8009
[uri:www.mydomain.com/mydomain/servlet/*]
worker=ajp13:localhost:8009
--------8<--------8<--------8<--------8<
lines in httpd.conf
-------------------
LoadModule jk2_module modules/mod_jk2.so
JkSet config.file "/opt/jakarta-tomcat-5.0.28/conf/workers2.properties"
PROBLEM:
-------
If i access my application using the tomcat (8080) port,
things seem to be working fine.
However, if i use apache (port 80), it seems to forward
JSP
requests perfectly fine, but when forwarding
servlet
request (like
http://<domain>/<context>/servlet/myServlet?
it throws an error
HTTP 404 Not Found
The requested URL /servlets-examples/servlet/HelloWorldExample
was not found on this server.
Any help in the above regards is highly appreciated.
thanks,
felix
I agree. Here's the link:
http://zeroturnaround.com/jrebel/download
subject: apache not forwarding servlet request
Similar Threads
Multi Instance in Tomcat!
Apache log erro!
Tomcat service terminated unexpectedly (Tomcat5.0.28, apache2.0.54 and mod_jk 1.2.5)
IIS5/Tomcat 5.5/workers2.properties
Tomcat 5.0.28 - Apache 2.0.25 using JK2 Config Error
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter