| Author |
Not able to download a PDF from load balancer site
|
k kumarp
Greenhorn
Joined: Dec 10, 2009
Posts: 3
|
|
We have a web application deployed in Tomcat 4.1. When we try to download a PDF from the load balancer site, we are getting the error in Adobe reader 9 as "There was an error opening this document. The file cannot be found".
This problem occurs only in Load balancer sites. When we try to download the PDF from direct link, it works.
And this problem occurs only in Adobe Reader 9. If we use the Adobe Reader 8, 7 with load balancer links, the PDF gets displayed.
The combination, Load balancer site + Adobe Reader 9 is the only problem.
Not sure the problem is with some load balancer settings related to cache or Reader 9 plugins.
Please let me know if somebody knows the solution. Is this problem can be resolved by setting some specific Headers in response object?
Note : option 'Display PDF in browser' in Internet explorer is disabled.
~ Kiran
|
 |
Amit Ghorpade
Bartender
Joined: Jun 06, 2007
Posts: 2552
|
|
Welcome to Javaranch k kumarp
If the "Display PDF in browser" is disabled then is the PDF file downloaded to your machine?
Anyways this does not seem to be a servlet question, moving to General Computing.
|
SCJP, SCWCD.
|Asking Good Questions|
|
 |
k kumarp
Greenhorn
Joined: Dec 10, 2009
Posts: 3
|
|
Hello Amit,
If the option 'Display PDF in browser' is disabled i.e, if we expect to display the PDF in Adobe Reader 9 then it doesn't work.
If the option 'Display PDF in browser' is enabled, the file gets displayed well.
I believe this is related to servlets only...
~KP
|
 |
k kumarp
Greenhorn
Joined: Dec 10, 2009
Posts: 3
|
|
The issue got resolved with the setting 'Cache-Contro' to 'private' in httpd.conf
Thanks
KP
|
 |
 |
|
|
subject: Not able to download a PDF from load balancer site
|
|
|