\Favicon.ico error in Jboss 7.1.1 - jboss

I want to access my application without context root in JBoss 7.1.1
I have renamed application as ROOT.war and deployed it and
updated stadalone.xml
from
to
Am able to access the login page of my application, but moment I enter credentials and login I get "HTTP Status 404 - /favicon.ico".
I don't know where am going wrong. once i remove /favicon from URL and reload it, everything works normal. Please help me to resolve this problem.

Favicon stands for "Favorites Icon". It's the little icon beside your site's name in the favorites list, before the URL in the address bar and bookmarks folder and as a bookmarked website on the desktop in some operating systems.
The Favicon.ico shows as 404 means is that people with browsers that use favicon (Internet Explorer 5.0 +, Firefox, Opera and a most others) are visiting your site.
While seeing a 404 in your log files usually means that a visitor got the dreaded "404 Page Not Found" error, in this case it doesn't. All it means is that the default icon was shown instead of a custom one.
To get your Favicon to show there are 2 different ways to do this:
This is the easiest to do and it will show your icon no matter what page your visitor adds to their favorites. Simply upload your new icon to the main directory of your site, ie. www.example.com/favicon.ico
If you don't have access to your root directory (if your on a free server for example) or it you want a different favicon for certain pages, add this to the <head> of your html. (You can name your favicon whatever you'd like with this method)
<link rel="shortcut icon" href="/folder-name/logo.ico">
Or if you prefer to use the full URL:
<link rel="shortcut icon" href="http://example.com/favicon.ico">
Note:
If you upload a new Favicon, be sure to clear your cache for the new icon to show up.

Related

opencart favicons not showing up, if redirected the admin cannot log in

as suggested in the title, the site is working properly, but if i access it with the www. the favicons are not showing up, if i access the site without the www. the favicons show up fine. I tried redirecting all the users to the site without the www. with the help of the .httaccess file, but then the admin can't log in, the admin works only throught the www.site. I tried to change the config.php file, but with no luck
I fixed it myself eventually.
needed to put this line inside the .htaccess file:
Header set Access-Control-Allow-Origin "*"
Hope this helps someone.
Replace the favicon icon link in head of the html pages of your site with the following. Also the path of icon file should start with www -
<link rel="icon" href="your_path_to_icon_file" type="image/x-icon">

How to show favicon in subdomain xml file

I have a subdomain feeds.domain.com, The root Directory for this subdomain is in main domain(/public_html/feeds/), I
I have placed favicon in root(/public_html/) and subdomain root(/public_html/feeds/) directory.
Now favicon is not displayed in browser for xml files that are in subdomain, xml files in other directory are showing favicon though.
Why browser is not picking favicon for xml from subdomain.
Example url where favicon not showing is feeds.domain.com/all/index.xml
Example url where favicon showing is www.domain.com/feeds/all/index.xml, (this is sub domain directory showing favicon when accessed directly from domain)
If I enter url feeds.domain.com/favicon.ico browser displays favicon.
Please see and suggest any possible way to do this.
Thanks.
I got it solved, I deleted all browser history and cleared browser cache now it is showing favicon, I hope this helps others too with same issue.
Thanks.

Links in fb canvas apps not working in IE

I created a canvas facebook app. The app itself was made in html and consisted of multiple different pages, the first page linking to the next, and so on... (links were assembled as simple html a tags with target="_self")
Everything seemed to be working fine in FF, Safari, Chrome, but not when we were testing in IE. It seems that redirecting within an iframe works different in IE, and it showed in the url of the browser:
When testing in FF,..., the url of the startpage would be apps.facebook.com/our-namespace, and after linking to the next page, this url in the browser would always remain that same apps.facebook.com/our-namespace.
When testing in IE, the url of the startpage would also be apps.facebook.com/our-namespace, but as soon as you hit one of the links, the url in the browser would change to apps.facebook.com/our-namespage/the-page-we-re-linking-to.php, not taking the target="_self" into account. When clicking on a comparable link again, the app would redirect to the start screen...
I spent hours trying to find an answer, I saw that changin IE's security settings would make it work:
in IE: go to Tools --> Internet Options --> Security --> Internet Zone --> Custom Level --> Miscellaneous --> Launch programs and files in an IFRAME. and make sure it is set to enabled
But this is not an acceptable solution as IE is configure different by default.
I found the solution was (in php) to add the following line to your code:
<?
header("p3p: CP=\"ALL DSP COR PSAa PSDa OUR NOR ONL UNI COM NAV\"");
?>
Problem solved! This should be in the facebook developer docs!!

webkit .appcache file caches dynamic page

The main page of my mobile web app is a .jsp page. My app requires login (Google App Engine), so there is a Log In button when the user is not logged in and a Log Out button when the user is logged in, all handled by code on the .jsp page.
I load a lot of JS code on the page, so I used a .appcache file to cache that. Unfortunatelly, even though I added my .jsp page to the Network area, the page is being cached in a funny way, ignoring the content server from the server. That means that my Log Out button shows when users are Logged Out and vice-versa.
I tried to add no-cache directives as meta tags, but they are all being ignored.
Ideas?
According to dive into HTML5, the page that references the manifest is automatically included in the manifest.
http://diveintohtml5.ep.io/offline.html
Q: Do I need to list my HTML pages in my cache manifest?
A: Yes and no. If your entire web application is contained in a single page, just make sure that page points to the cache manifest using the manifest attribute. When you navigate to an HTML page with a manifest attribute, the page itself is assumed to be part of the web application, so you don’t need to list it in the manifest file itself. However, if your web application spans multiple pages, you should list all of the HTML pages in the manifest file, otherwise the browser would not know that there are other HTML pages that need to be downloaded and cached.
I have a similar issue, and I think I will end up loading the contents of the page via AJAX.
Caching in appCache is a two stage process: first the cache manifest is checked (in this case, as the page is loading), then if the content of it has changed, that content is reloaded. However, in your case, by that time, the stale page is already loaded and displayed.
The easiest fix would be to specifically exclude the page (but not the .js) from the appCache, so that only the js is cached, and not the page. I sounds like you might have figured that out, as you are trying to do it by putting the page in the network area. Check that that exclusion is correct, as that sounds like the problem, and that html cache attributes are being set correctly on that page.

Favicon shows incorrect image

I have a page which was copied from another site and modified. I am referring to a favicon in my new site. When I view the page it's showing the correct favicon, but when view the source it's showing the favicon for the older site.
What could be the problem?
Favicon caching in browsers is virtually impossible to control. Even if you clear your cache, the browser probably won't clear favicons until a random time in the future it feels like doing so.
New users of your site will see the new favicon. Old users will eventually see the new icon.