Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Replacing the Tomcat favicon

 
Roger F. Gay
Ranch Hand
Posts: 408
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18152
52
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Roger F. Gay
Ranch Hand
Posts: 408
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18152
52
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 408
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic