Hi,
  Got it working eventually by the way, for anyone that is interested. 
This is using mod_jk to communicate with a tomcat that is *not* listening 
on port 8080.

      web.xml:
           <web-app>
               <servlet>
                  <servlet-name>ShoppingBasket</servlet-name>
 
<servlet-class>com.mysite.utils.shopping.basket</servlet-class>
               </servlet>
               <servlet-mapping>
                  <url-pattern>/basket</url-pattern>
                  <servlet-name>ShoppingBasket</servlet-name>
               </servlet-mapping>
           </web-app>

      and in httpd.conf for the virtual host:
           JkMount /servlet/* ajp13
           JkMount /*.jsp ajp13
           JkMount /basket ajp13
           JkMount /basket/* ajp13

  (Example is made up but closely mirrors that of a customer who was having 
trouble, and now appears to be happy)

  The last two entries are necessary so that apache knows to forward them 
to tomcat, otherwise tomcat never sees them and also so that:
           http://domain/basket
  And
           http://domain/basket/whatever or http://domain/basket?

  Type urls work correctly.

  It was a struggle but I got there, thanks for the help and comments along 
the way.  Am I unique in having to do this?  Are most of you guys not using 
mod_jk or have I botched my configuration elsewhere?

TIA
   Paul

Reply via email to