aspose file tools*
The moose likes Servlets and the fly likes rtf generation servlet doesn't  work under SSL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "rtf generation servlet doesn Watch "rtf generation servlet doesn New topic
Author

rtf generation servlet doesn't work under SSL

Praka Sube
Greenhorn

Joined: Nov 10, 2004
Posts: 3
Dear Ranchers,

We have following code that generates rtf file and writes to the browser. This works fine (like a charm) without SSL. With SSL turned on, however, we receive following error message:

"Internet Explorer can not open 'URL' on webserverhost. Internet Explorer
was not able to open this Internet site. The requested site is either
unavailable or cannot be found. Please try again later."

Any pointers on how to make this work with SSL?


----------- --------------
.../* Headers */

ServletOutputStream out = resp.getOutputStream ();
resp.setContentType("application/msword");
resp.setHeader("Content-disposition", "attachment; filename=" +
resumevo.getResumeName() + ".rtf" );

/* Resume type */
String xslFO = "resume-functional.xsl";
String resumeType = (String)req.getParameter("resumeType");

if (resumeType != null && resumeType.equalsIgnoreCase("Chronological")) {
xslFO = "resume-cronological.xsl";
} else {
xslFO = "resume-functional.xsl";
}

xslFO = getServletContext().getRealPath("/WEB-INF/XSL/" + xslFO);

/* XML */
CreateXML createResumeXML = new CreateXML();
String letterXML = createResumeXML.makeResume(resumevo);

try {
RTFGen.createResumeRtf(letterXML, xslFO, out);
} catch (Exception e1) {
throw new ServletException(e1);
}

...
----------

Thanks,
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12836
    
    5
Exactly what steps did you take to "turn on" SSL?
Can you address any resource on the server with https?
Bill
Praka Sube
Greenhorn

Joined: Nov 10, 2004
Posts: 3
Bill,

To turn on SSL, we purchased a Server Certificate from Verisign and installed it on the IIS web server. Then, changed config of IIS for the web site to require SSL for commucation.
Praka Sube
Greenhorn

Joined: Nov 10, 2004
Posts: 3
Originally posted by Praka Sube:
Bill,

To turn on SSL, we purchased a Server Certificate from Verisign and installed it on the IIS web server. Then, changed config of IIS for the web site to require SSL for commucation.


And yes, we can access all other resources on the server without an problem under SSL.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12836
    
    5
So your configuration is IIS for static pages and what for a servlet/jsp engine? Tomcat? Which version of Tomcat?
Which version of Windows? Which version of IIS?
How did you configure the IIS to servlet engine connection?
Is there any indication that IIS is even trying to talk to the servlet when a SSL request comes in?
Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: rtf generation servlet doesn't work under SSL