• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Not able to download a PDF from load balancer site

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Bartender
Posts: 2856
10
Firefox Browser Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
k kumarp
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The issue got resolved with the setting 'Cache-Contro' to 'private' in httpd.conf

Thanks
KP
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic