File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Replacing the Tomcat favicon Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Replacing the Tomcat favicon" Watch "Replacing the Tomcat favicon" New topic
Author

Replacing the Tomcat favicon

Roger F. Gay
Ranch Hand

Joined: Feb 16, 2007
Posts: 349
Not working for me. I've tried replacing the favicon.ico in ROOT and even put a link in the index.htm page there. IN addition, I've deleted all the other Tomcat images in ROOT. When I copy my favicon into that directory, Windows shows it as the Tomcat icon instead of mine (in explorer, pictures mode). When I click on it to display (Windows image viewer), it confirms that it's my icon. When I display the website, it shows the Tomcat icon on the tab.


Correlation does not prove causality.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15641
    
  15

This is probably just part of the suffering you are going through by attempting to supplant the default root application. There is no "Tomcat" favicon. Each webapp deployed in Tomcat can have its own favicon.ico, which should be located in the root of the deployed WAR (for the default context "/", that's TOMCAT_HOME/webapps/ROOT).

Incidentally, I'm not a big fan of replacing the default webapp. Since you cannot securely run Tomcat without a proxy in front of it (such as Apache HTTPD), and since such proxies can take a virtualhost and transparently re-route its requests to any context and port they want, I deploy my webapps as non-default apps.


Customer surveys are for companies who didn't pay proper attention to begin with.
Roger F. Gay
Ranch Hand

Joined: Feb 16, 2007
Posts: 349
Tim Holloway wrote:This is probably just part of the suffering you are going through by attempting to supplant the default root application. There is no "Tomcat" favicon. Each webapp deployed in Tomcat can have its own favicon.ico, which should be located in the root of the deployed WAR (for the default context "/", that's TOMCAT_HOME/webapps/ROOT).

Incidentally, I'm not a big fan of replacing the default webapp. Since you cannot securely run Tomcat without a proxy in front of it (such as Apache HTTPD), and since such proxies can take a virtualhost and transparently re-route its requests to any context and port they want, I deploy my webapps as non-default apps.


Perhaps someday, I'll know what all that means. But I do know that there is a Tomcat flavicon. If you install Tomcat and simply pull up the installed ROOT, you'll see it. It's that little lion or tiger kind of thing ... ok, maybe it's supposed to be a tomcat.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15641
    
  15

Roger F. Gay wrote:
Perhaps someday, I'll know what all that means. But I do know that there is a Tomcat flavicon. If you install Tomcat and simply pull up the installed ROOT, you'll see it. It's that little lion or tiger kind of thing ... ok, maybe it's supposed to be a tomcat.


It's a Tomcat. But that's not the Tomcat server's favicon, it's the favicon of the ROOT webapp.

Roger F. Gay
Ranch Hand

Joined: Feb 16, 2007
Posts: 349
Tim Holloway wrote:
Roger F. Gay wrote:
Perhaps someday, I'll know what all that means. But I do know that there is a Tomcat flavicon. If you install Tomcat and simply pull up the installed ROOT, you'll see it. It's that little lion or tiger kind of thing ... ok, maybe it's supposed to be a tomcat.


It's a Tomcat. But that's not the Tomcat server's favicon, it's the favicon of the ROOT webapp.



Yep. I finally figured that out. Just set up an app under ROOT for the first time.
I had struggled earlier with getting an app under development to use its flavicon ... and it was just in a webapps subdirectory of its own.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Replacing the Tomcat favicon
 
Similar Threads
favicon
favicon
how to keep the favicon ?
how to get favicon
favicon icon configuration in tomcat 6