You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by David Burns <vi...@hotmail.com> on 2001/06/12 03:01:45 UTC

Servlet mapping not working with Apache

My setup:

RH Linux 7.1
Apache 1.3.19
Tomcat 3.2.1
Sun JDK 1.3.1

I'm using mod_jk.conf-auto to hook in the mod_jk connector.

When I access tomcat directly, servlet mapping seem to work.  Via Apache, it 
doesn't.  For example,

http://127.0.0.1:8080/examples/snoop

brings up the snoop servlet.

http://127.0.0.1/examples/snoop

returns a 404.

However,

http://127.0.0.1/examples/servlet/snoop

works.

Any ideas on how to set this right, or at least diagnose it further?  I'd 
rather not be stuck with the old-fashioned /servlet/ style.

Thanks in advance,
David


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com


RE: Servlet mapping not working with Apache

Posted by istvan bereti <is...@kolumbus.fi>.
Did it work for you?
Because I had to turn back to Jserv module because apache was not at all
forwarding the requests for jk module. It handled them itself and nothing
was forwarded.
I used 1.3.14 and 3.2.2 apach vith IBM JDK 1.3

-----Original Message-----
From: Xavier Renaut [mailto:xavier@ideasandassociates.com]
Sent: Tuesday, June 12, 2001 10:28 AM
To: tomcat-user@jakarta.apache.org
Subject: Re: Servlet mapping not working with Apache


On 2001-06-11, at 18:01, David Burns wrote :

|My setup:
|
|RH Linux 7.1
|Apache 1.3.19
|Tomcat 3.2.1
|Sun JDK 1.3.1
|
|I'm using mod_jk.conf-auto to hook in the mod_jk connector.
|
|When I access tomcat directly, servlet mapping seem to work.  Via Apache,
it
|doesn't.  For example,
|
|http://127.0.0.1:8080/examples/snoop
|
|brings up the snoop servlet.
|
|http://127.0.0.1/examples/snoop
|
|returns a 404.
|
|However,
|
|http://127.0.0.1/examples/servlet/snoop
|
|works.
|
|Any ideas on how to set this right, or at least diagnose it further?  I'd
|rather not be stuck with the old-fashioned /servlet/ style.


in your httpd.conf or tomcat.conf, (after the load of the module mod_jk)
insert this


JkMount /examples/snoop ajp12


|
|Thanks in advance,
|David
|
|
|_________________________________________________________________
|Get your FREE download of MSN Explorer at http://explorer.msn.com
|
|

xavier





Re: Servlet mapping not working with Apache

Posted by Xavier Renaut <xa...@ideasandassociates.com>.
On 2001-06-11, at 18:01, David Burns wrote :

|My setup:
|
|RH Linux 7.1
|Apache 1.3.19
|Tomcat 3.2.1
|Sun JDK 1.3.1
|
|I'm using mod_jk.conf-auto to hook in the mod_jk connector.
|
|When I access tomcat directly, servlet mapping seem to work.  Via Apache, it 
|doesn't.  For example,
|
|http://127.0.0.1:8080/examples/snoop
|
|brings up the snoop servlet.
|
|http://127.0.0.1/examples/snoop
|
|returns a 404.
|
|However,
|
|http://127.0.0.1/examples/servlet/snoop
|
|works.
|
|Any ideas on how to set this right, or at least diagnose it further?  I'd 
|rather not be stuck with the old-fashioned /servlet/ style.


in your httpd.conf or tomcat.conf, (after the load of the module mod_jk)
insert this


JkMount /examples/snoop ajp12


|
|Thanks in advance,
|David
|
|
|_________________________________________________________________
|Get your FREE download of MSN Explorer at http://explorer.msn.com
|
|

xavier