File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
Other Open Source APIs
PDF Download not working in Production.
Yogendra Singh Butola
Joined: Sep 28, 2011
Dec 17, 2012 04:07:39
In my Spring MVC based application, I've implemented a
viewer functionality. This functionality is working in DEV,
, and STAGE, however it's not working in production.
Following are the details.
1 In web.xml the
is separately defined as :
2. Servlet code
httpSession = request.getSession();
byte pdfAsByteArray = (byte) httpSession.getAttribute("pdfObject");
response.setHeader("Content-disposition", "attachment; filename=document.pdf");
os = response.getOutputStream();
This works in DEV, TEST, and STAGE, however in Production it's not working.
Following is the URL for production:
it works in production if change the URL to
and given the exact name of the server along with the port number.
Any help will be highly appreciated.
author & internet detective
Joined: May 26, 2003
Dec 22, 2012 08:52:41
Does qa use https? If not, your problem is the https setup. If so, what is different between the two.
There isn't really enough information here to be able to suggestion solutions.
OCA 8 book
How To Ask Questions The Smart Way
Blogging on Certs:
SCEA Part 1
Part 2 & 3
Core Spring 3
TOGAF part 1
I agree. Here's the link:
subject: PDF Download not working in Production.
hibernate 4 and spring 3.1.2 issue with LocalSessionFactoryBuilder
Simple JPA application on TOMEE
JSF 2.0 MyConverter.getAsObject(...) how to get a handle on the backing bean
Getting MethodMissingException on trying to run groovy class
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015