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