Thanks for all those that relpied to this thread but I think that I've just 
answered my own question.

I was putting the following in httpd.conf

LoadModule    jk_module  libexec/mod_jk.so
AddModule     mod_jk.c

I wrote my own mod_jk.conf-local file and included the Load and Add Module 
directives in that, instead of the httpd.conf file. Then things seemed to 
work OK.
I'm not sure why this happened, it even says to put the load and add module 
directives in the httpd.conf file in the documentation. Hmmmmmmn!

If anyone can explain why this should happen please let me know

Cheers

Jeremy

>From: "Jeremy Staines" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: Apache Won't Redirect Servlet Requests to Tomcat
>Date: Fri, 03 Aug 2001 10:48:00 +0000
>
>The thing is if I put /examples/servlets in the url then apache should know
>that the request should use ajp12 and therefore be directed to tomcat?
>
>I thought that the following lines in the mod_jk.conf-auto tell apcahe 
>that?
>#
># The following line mounts all JSP files and the /servlet/ uri to tomcat
>#
>JkMount /examples/servlet/* ajp12
>
>>From: Dmitri Colebatch <[EMAIL PROTECTED]>
>>Reply-To: [EMAIL PROTECTED]
>>To: [EMAIL PROTECTED]
>>Subject: Re: Apache Won't Redirect Servlet Requests to Tomcat
>>Date: Fri, 03 Aug 2001 20:46:57 +1000
>>
>>/servlets contains normal flat html from memory, its just a directory in
>>the webapps/examples dir if you have a look - it wont be accessable from
>>apache unless its inside apache's docroot.
>>
>>So you're including the mod_jk.conf-auto in httpd.conf, you've restarted
>>apache?
>>
>>Have you changed any of the normal config, or are we talking a straight
>>out of the box install?
>>
>>cheers
>>dim
>>
>>
>>Jeremy Staines wrote:
>> >
>> > Do I need to do this for servlets surely they should be intercepted,
>> > as set in server.xml?
>> >
>> > I used to run jserv and things worked fine with the same document root
>>in
>> > place.
>> >
>> > Jeremy
>> > >From: Peter Hrastnik <[EMAIL PROTECTED]>
>> > >Reply-To: [EMAIL PROTECTED]
>> > >To: [EMAIL PROTECTED]
>> > >Subject: Re: Apache Won't Redirect Servlet Requests to Tomcat
>> > >Date: Fri, 03 Aug 2001 11:37:33 +0200
>> > >
>> > >Did you check the DocumentRoot of Apache in the httpd.conf file? It 
>>has
>> > >to be set so that apache can access the requested file also.
>> > >
>> > >Bye,
>> > >       Peter.
>> > >
>> > >--
>> > >Mag. Peter Hrastnik
>> > >tele.ring Telekom Service GmbH
>> > >A-1030 Wien, Hainburgerstr. 33
>> > >Tel.: +43/1/931012/3277, Mobil: +43/650/6503277
>> > >
>> > >
>> > >Jeremy Staines wrote:
>> > > >
>> > > > I've seen this problem posted and answered many times but I still
>>cannot
>> > >get
>> > > > the problem solved.
>> > > >
>> > > > I am running Tomcat 3.2.3 on Apache 1.3.12, OS Linux Redhat 6.2.
>>Adapter
>> > >=
>> > > > mod_jk-noeapi.so. When I start apache i get the following in the
>>error
>> > >log
>> > > >
>> > > > [Fri Aug  3 10:19:43 2001] [notice] Apache/1.3.12 Ben-SSL/1.39
>>(Unix)
>> > >mod_jk
>> > > > configured -- resuming normal operations
>> > > >
>> > > > When I access
>>http://localhost:8080/examples/servlet/HelloWorldExample
>> > > > things are fine but when I don't specify the port number the URL is
>>not
>> > > > found.
>> > > >
>> > > > I think I have read all the docs issued with tomcat.
>> > > >
>> > > > I've also, included the mod_jk.conf-auto in httpd.conf
>> > > > I've also altered the relevant parts in workers.properties (see
>>below)
>> > > >
>> > > > Does anyone have any ideas what can be going wrong?
>> > > >
>> > > > Thanks in advance
>> > > >
>> > > > Jeremy
>> > > >
>> > > > #
>> > > > # $Header:
>> >



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

Reply via email to