I tried adding the <link ...> element, but that didn't help. As soon as I was authenticated, I was presented with the favicon.ico as my first page.
I removed the <link ...> element and altered my security constraint to match the following url patterns:
<url-pattern>*.html</url-pattern>
<url-pattern>*.class</url-pattern>
<url-pattern>*.jsp</url-pattern>
Once I did that, my problem with the favicon.ico went away, and the icon even appeared in the address field of my browser as it should.
I had set up my security constraint to be something like this originally when the site was being accessed as
http://localhost:8080/myContext However I encountered a problem with my authentication form, which was a .jsp file. If I entered the URL as
http://localhost:8080/myContext, I was challenged to authenticate, and everything worked fine. However, if I entered the URL as
http://localhost:8080/myContext/ with a closing slash, I would authenticate, and then I would be presented the login.jsp form again. And if I filled it out a second time, I got a 404 error saying j_security_check was not available. That was worrying me, so I fiddled with the serurity-constraint element some more. But regardless, I always had the same difficulty if the URL was entered with a closing slash.
Now that I'm trying out the web app as ROOT, it doesn't seem to matter whether there is a trailing slash in the address, which is a relief.
Thank you for your help.
Deb
[ January 24, 2008: Message edited by: deb platt ]