Great !! Now it works.

I had done step 1) and 2).
I had also come to the conclusion that 3) was necessary, and had done that.
I had also done 4)

But it didn't work.

But then I checked http.conf, and there I found the line
(which I myself had added after I installed struts)
AddHandler jk_serv .do

I had added this because the documentation for integration with mod_jserv
states that you should add AddHandler jk_servlet .do

So even though the line makes no sense, it still prevented the
JkMount /..../*.do from having any effect. And I had of course forgot
that I had added it....

Thanks again, and I hope some others can learn from my mistakes.

Regards
Alf Hogemark

[EMAIL PROTECTED] wrote:
>
> To get tomcat integrated with Apache you will need to do the following:
> 
> 1) Make sure you have added your context(s) to server.xml.
> 2) start tomcat
> 3) review the mod_jk.conf-auto file, it should be very close to what you 
> want. I had to add these lines to each context using struts:
> 
> JkMount /mycontext/*.do ajp12
> JkMount /mycontext/pages/security/j_security_check ajp12
> 
> (The second line is only necessary if using form-based security.)
> 
> After editting the file make sure you save it under a different filename (I 
> used mod_jk.config), otherwise it will get overwritten next time you start 
> tomcat.
> 
> 4) Add the "Include <path to tomcat>/conf/mod_jk.config" <- or whatever you 
> called it)  to your httpd.conf file. Restart Apache and you should be up & 
> running!
> 
> HTH,
> 
> Mike
> 
> 

Reply via email to