2 Replies Latest reply: Feb 28, 2012 7:22 AM by MatthiasHoys RSS

    favicon.ico 404 error under GlassFish

    MatthiasHoys
      Hello,

      We used to have an image called favicon.ico under the folder /ohs/images with Oracle HTTP Server. This displayed an icon of the website in the URL bar of Internet Explorer. After the migration to GlassFish with the APEX listener, I copied all images (including favicon.ico) to the /docroot/i folder. The APEX images display fine, but the favicon.ico gives a HTTP 404 (not found) error in the access logs. Is this a known problem? I know this is only a very minor problem, but if there is a solution or workaround, it would make me happy :-)

      Thanks,
      Matthias Hoys
        • 1. Re: favicon.ico 404 error under GlassFish
          Udo
          Hello Matthias,

          the favicon.ico often has problems with mime-type mappings. Do you have the appropriate mapping for the mime-type used for your favicon-reference in your default-web.xml ? How do you reference it anyway?

          -Udo
          • 2. Re: favicon.ico 404 error under GlassFish
            MatthiasHoys
            Hi,

            Yes, I have the mapping for .ico files in the default-web.xml file. I don't reference anything, the problem is that Internet Explorer doesn't find the icon when I put it in the /docroot/i/ folder. In the mean time, I found a workaround by copying the favicon files to /docroot/ (so, one folder higher). This seems to do the trick, IE now shows the icon.

            Matthias