Search code examples
javaglassfish-3

How to change glassfish application server default browser icon?


Can we set a default browser-tab icon for applications running under glassfish server?


Solution

  • Here is the solution:

    Simply add the favicon.ico icon to the docroot folder of glassfish, and restart.

    If it did not work, then, you have to define the 'ico' extension mime-type in your default-web.xml glassfish file, this is done by adding the following code on the file:
    <mime-mapping> <extension>ico</extension> <mime-type>image/vnd.microsoft.icon</mime-type> </mime-mapping>