wood burning stoves 2.0*
The moose likes Tomcat and the fly likes apache not forwarding servlet request Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "apache not forwarding servlet request" Watch "apache not forwarding servlet request" New topic
Author

apache not forwarding servlet request

felix thomas
Ranch Hand

Joined: Jun 10, 2001
Posts: 89
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
 
Consider Paul's rocket mass heater.
 
subject: apache not forwarding servlet request
 
Similar Threads
Tomcat service terminated unexpectedly (Tomcat5.0.28, apache2.0.54 and mod_jk 1.2.5)
Apache log erro!
IIS5/Tomcat 5.5/workers2.properties
Tomcat 5.0.28 - Apache 2.0.25 using JK2 Config Error
Multi Instance in Tomcat!