hd84335 hd84335 - 5 months ago 38x
Java Question

How to change glassfish application server default browser icon?

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


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>