Hi Jordi,
The regex you are using -- /(images|css|js|jsp|favicon.ico)/.* --
does not match the path you are trying to serve -- /favicon.ico --
because the favicon path does not end with a / and one or more char as
the regex requires.
So to get this to work you need to update the regex. Based on what
you had before I think the below regex should work.
/(((images|css|js|jsp)/.*)|(favicon\.ico))
hope that helps,
Charlie
On Thu, Sep 10, 2009 at 8:59 PM, Jordi Domingo <noseya_at_hotmail.com> wrote:
>
> Hi again :)
> I cant get favicon.ico to work. It's located at the server root i.e http://myhost/favicon.ico
> I configured jersey to filter all requests:
> <filter-mapping>
> <filter-name>Jersey Filter</filter-name>
> <url-pattern>/*</url-pattern>
> </filter-mapping>
> I tried using something like this
> <init-param>
> <param-name>com.sun.jersey.config.property.WebPageContentRegex</param-name>
> <param-value>/(images|css|js|jsp|favicon.ico)/.*</param-value>
> </init-param>
> but doesnt work.:(
> Im looking for a nice solution to avoid handcoding this.
> Thanks community!
> ________________________________
> Celebramos el 10º aniversario de Messenger. ¡Únete a la fiesta!