tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "baumans pascal" <bauma...@hotmail.com>
Subject Re: how does apache pickup tomcat servlet mapping
Date Tue, 27 Mar 2001 06:26:03 GMT
I think you should try the '*' char before what you want to redirect :

<url-pattern>*promosite.app</url-pattern>

>From: Abayomi Ayodele <yomi@blueyonder.co.uk>
>Reply-To: tomcat-user@jakarta.apache.org
>To: tomcat-user@jakarta.apache.org
>Subject: how does apache pickup tomcat servlet mapping
>Date: Mon, 26 Mar 2001 17:22:27 +0100
>
>Please help,
>
>I'v got a servlet url mapping that apache is not redirecting to tomcat.
>My web.xml looks like this
>
><?xml version="1.0" encoding="ISO-8859-1"?>
>
><!DOCTYPE web-app
>     PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
>     "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
>
><web-app>
>
>   <display-name>Promosite Application</display-name>
>  <!-- PromoServlet is used for granting access to the app -->
>   <servlet>
>         <!-- Name of servlet. -->
>     <servlet-name>PromoServlet</servlet-name>
>
>     <!-- Class that implements servlet. -->
>     <servlet-class>com.telewest.promo.PromoServlet</servlet-class>
>
>   </servlet>
>
><servlet-mapping>
>     <servlet-name>PromoServlet</servlet-name>
>     <url-pattern>/promosite.app</url-pattern>
>   </servlet-mapping>
></web-app>
>
>I will expect a request like http://host/app_context/promosite.app to be
>mapped to PromoServlet but I get a error 404
>The requested URL /promo-dev/promosite.app was not found on this server
>
>the apache error logs looks like this
>[Mon Mar 26 17:20:11 2001] [error] [client 194.117.142.249] File does
>not exist:
>/usr/local/jakarta-tomcat-3.2.1/webapps/promo-dev/promosite.app
>
>It looks like apache is looking for a static file instead of passing the
>request to servlet.
>
>Please, what am I doing wrong???
>
>Regards
>
>
>
>--
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>Abayomi Ayodele
>Internet Systems Engineer
>Cable Internet
>Genesis Business Park
>Albert Drive
>Woking
>Surrey
>GU21 5RW
>
>Tel:    (+44) 01483 587095
>Mobile: (+44) 07967754196
>Fax:    (+44) 01483 251810
>Email:  yomi@cableinet.net
>
>
>

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


Mime
View raw message