Solved

Tomcat seems to throw 404 errors every second request when accessing dynamically generated files

Posted on 2010-11-25
2
855 Views
Last Modified: 2012-05-10
We have set up an environment in which exists 2 web servers.

Server 1 - Tomcat Server serving a Java host application.
Server 2 - IIS web server serving a proprietary application via web services

The issue we're having is as follows:

When a specific call is made to a particular web method on Server 2 it generates an html file and associated images on a shared drive. This in itself works fine.

This shared drive is permanently mapped as a virtual directory in Tomcat on Server 1, so that images related to the html page can be retrieved via Server 1 rather than requiring direct access to Server 2.

When the first request is made to retrieve the images, the html and images show fine.
However on subsequent requests Tomcat throws a 404. It then takes a few seconds to untangle itself, then 1 further request will work, followed by a string of 404s.

The individual http requests are completely independent requests for different urls (as the files being requested are dynamically generated with different names each time), and logging shows these files do exist on the drive before Tomcat requests the file to read and stream back.

We believe the problem lies with Tomcat although it's possible something else is going on.
Caching is disabled on the virtual directory.

Any help would be very much appreciated.
0
Comment
Question by:capsoftuk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 27

Accepted Solution

by:
BigRat earned 500 total points
ID: 34256038
I presume that the images are being created by IIS and are to be retrieved by Apache/TomCat?

It would seem to me that the directory pages of the image directory is being buffered in TomCat or the platform on which it runs. Thus it will randomly give a "file not found" response.

Are the platforms the same, or is this a Linux/Windows environment?
0
 

Author Closing Comment

by:capsoftuk
ID: 37313881
Solved otherwise
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Suggested Courses

622 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question