• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Replacing the Tomcat favicon

 
Ranch Hand
Posts: 409
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Saloon Keeper
Posts: 27752
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 409
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 27752
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 409
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Watchya got in that poodle gun? Anything for me? Or this tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic