Solved

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

Posted on 2010-11-25
2
829 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
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

770 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