• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Devaka Cooray
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
Bartenders:

apache not forwarding servlet request

 
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 don't always make ads but when I do they're tiny
Paul Wheaton's 16th Kickstarter: Gardening playing cards for gardeners and homesteaders
https://coderanch.com/t/889615/Paul-Wheaton-Kickstarter-Gardening-playing
reply
    Bookmark Topic Watch Topic
  • New Topic