tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ben short" <...@benshort.co.uk>
Subject Re: Servlet Mappings
Date Mon, 30 Oct 2006 15:31:09 GMT
Yes I really have a error subdir under the images directory.

this is what i see in the access log.

192.168.6.185 - - [30/Oct/2006:15:16:51 +0000] "GET
/images/error/logo.gif HTTP/1.1" 404 1018
192.168.6.185 - - [30/Oct/2006:15:16:51 +0000] "GET /favicon.ico HTTP/1.1" 302 -
192.168.6.185 - - [30/Oct/2006:15:16:51 +0000] "GET /favicon.ico HTTP/1.1" 302 -

I try moving the logo.gif to under images directory but no joy.

My webapp is deployed as ROOT.

If I chop all of the mappings out of the web.xml the image is displayed.

With

<servlet-mapping>
      <servlet-name>default</servlet-name>
      <url-pattern>/images</url-pattern>
    </servlet-mapping>

alone in the web.xml the image is dispalyed.

With

<servlet-mapping>
      <servlet-name>default</servlet-name>
      <url-pattern>/images/*</url-pattern>
    </servlet-mapping>

alone in the web.xml the image is not dispalyed.

I have the cache turned off on my browser.

How strange.

Ben

On 10/30/06, Caldarale, Charles R <Chuck.Caldarale@unisys.com> wrote:
> > From: jamin.short@gmail.com [mailto:jamin.short@gmail.com]
> > Subject: Re: Servlet Mappings
> >
> > I changed the mapping to as follows but no joy. Although the problem
> > seems to of changed slightly. When I try to request an images
> > http://myhost/images/error/logo.gif i get a 404. I have double checked
> > and the image is definatly in the correct location.
>
> You really have an error subdirectory under images?  What happens if you
> try to get an image that's directly in the images directory?  What is
> the directory structure of your webapp?  What do the logs show?  You
> might want to turn on the AccessLogValve to see what's really being
> requested.
>
>  - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail
> and its attachments from all computers.
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message