Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2010-11-25
2
Medium Priority
?
875 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 1500 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

Simplify Your Workload with One Tool

How do you combat today’s intelligent hacker while managing multiple domains and platforms? By simplifying your workload with one tool. With Lunarpages hosting through Plesk Onyx, you can:

Automate SSL generation and installation with two clicks
Experience total server control

Question has a verified solution.

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

Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

730 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