• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

rtf generation servlet doesn't work under SSL

 
Praka Sube
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Exactly what steps did you take to "turn on" SSL?
Can you address any resource on the server with https?
Bill
 
Praka Sube
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic