This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Rust Web Development and have Bastian Gruber on-line!
See this thread for details.
Win a copy of Rust Web Development this week in the Other Languages forum!
  • 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
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

rtf generation servlet doesn't work under SSL

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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,
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic