dev@glassfish.java.net

Re: favico.ico not found in StaticResourcesAdapter

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Fri, 14 Mar 2008 10:09:09 -0400

Hi Pramod,

Pramod Gopinath wrote:
> Hi Jeanfrancois
> Had spoken to you on this 2 days back, but did not get around to
> sending the code diffs.
> Saw this issue on the dev alias today. Will forward my diffs to
> dev_at_grizzly.dev.java.net for the changes that I am using on my setup.

Thanks. The issue is with grizzly standalone, we need to let the log
level to info as there is no access logging/server.log file, but with
v3, all the 404/not found resources might not be printed on the screen :-)

A+

-- Jeanfrancois


>
> Thanks
> Pramod
>
> Jeanfrancois Arcand wrote:
>> Hi,
>>
>> will be fixed next time we integrate Grizzly...
>>
>> A+
>>
>> -- Jeanfrancois
>>
>> Ken Paulsen wrote:
>>>
>>> I think the problem is that web browsers request that file every
>>> request. This message belongs in the access log, it doesn't need to
>>> be INFO in the server.log.
>>>
>>> Ken
>>>
>>> Lloyd L Chambers wrote:
>>>> Could whoever is responsible for this log message please consider
>>>> whether it's necessary as "INFO"?
>>>>
>>>> Mar 13, 2008 3:32:05 PM com.sun.grizzly.tcp.StaticResourcesAdapter
>>>> service
>>>> INFO: File not found /v3/run/domains/domain1/docroot/favicon.ico
>>>>
>>>>
>>>> It occurs every hit. I don't think the world needs to know if
>>>> 'favicon.ico' is there or not.
>>>>
>>>> The code seems to be in StaticResourcesAdapter:
>>>>
>>>> if (!resource.exists()) {
>>>> SelectorThread.logger().log(Level.INFO,"File not found " + resource);
>>>> res.setStatus(404);
>>>> return;
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> ---
>>>> Lloyd L Chambers
>>>> lloyd.chambers_at_sun.com
>>>> Sun Microsystems, Inc
>>>>
>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>