Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7961511
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T05:03:29+00:00 2026-06-04T05:03:29+00:00

I have a REST-like web service that is deployed on Tomcat. There is no

  • 0

I have a REST-like web service that is deployed on Tomcat. There is no HTML in my servlet response; it’s XML. I’d like to use my own favicon.ico instead of the Tomcat default.

If I place the file at webapps/myWebApp/favicon.ico, it doesn’t load. I still get the Tomcat default. Going to http://localhost/myWebApp/favicon.ico shows that the file is indeed in place.

If I replace the file at webapps/ROOT/favicon.ico, then I get my new favicon. This isn’t ideal because I’d like to package the favicon.ico in my war file and ideally wouldn’t want other web apps to use my favicon.ico anyways.

Is there a better way to get my new favicon recognized?

For the record, I’m using Tomcat 7 and between each test, I restart Tomcat, clear my browser cache, and restart my browser.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T05:03:31+00:00Added an answer on June 4, 2026 at 5:03 am

    That’s not how “favicon” works: you either have to specify the URL of the favorite-icon to use (using <link rel=”shortcut icon” href=”http://example.com/myicon.ico” />) or put your favicon.ico file into the root of the server.

    http://en.wikipedia.org/wiki/Favicon#Accessibility

    So, since you are serving XML, you only have the one option.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a REST web service that returns an xml result like this: -
I have a REST web service that I would like to take a URL
I have a REST web service that returns a javax.ws.rs.core.Response entity. When I run
I have written a REST web service with Jersey Server (that totally rocks !).
I have written a service that I would like expose both via rest and
I have a WCF REST web service that is hosted via a service route
I have Camel route that I would like to expose as a REST Web
I have a REST web service that returns a structure containing an array of
Greetings, I have a Cuke test that is testing a rest web service w/
We have a ReST Web Service that uses POST - to insert data into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.