Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I am using Tomcat 6 to serve both static content and dynamic content. For some reason, from time to time, I see that images are broken.

It usually happens when I copy and paste the image URL to the browser. When I refresh the image appears. The server has zero load on it.

Has anyone encountered such issue with Tomcat?

share|improve this question
2  
One possibility is that you accessed the image URLs when they were not available (server not up, still working on setup, etc.), and the browser cached the response. Refreshing then bypasses the cache and gets the now available image. –  kaliatech May 15 '12 at 14:16
add comment

migrated from stackoverflow.com May 16 '12 at 14:05

This question came from our site for professional and enthusiast programmers.

1 Answer

When a Tomcat 6 server is freshly started, or when a web app is dynamically loaded, the content is not accessible for a number of seconds.

I sometimes see this type of problem on my development server around the time when I am restart the web app.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.