Actually, I'm beginning to think this is a Tomcat bug - even though I'm not
getting much action in the Tomcat user's mailing list.
I replied something similar to Dave Ferguson via this list, but that reply
doesn't seem to have gone through. Consider the following code:
//On a SSL servlet...
class Test {
doGet (HttpServletRequest request,
HttpServletResponse response)
throws IOException,
ServletException {
//Here's ALL it takes to generate the error...
response.setContentType("application/pdf");
}
}
No PDF content, no servlet errors, nothing. Heck, the servlet example
doesn't even _do_ anything. Just "Please let me send you PDF"- and up pops
the error. Interestingly enough, the final PDF content (in the real
servlet) _looks_ exactly the same on the client end regardless of whether I
select yes or no in the dialog box.
I think I'm going to roll up my sleeves and see if I can't find the bug in
Tomcat. I have a development box that has Apache web server running my SSL,
and the exact same servlet doesn't have any problems there. Yet, when I run
the servlet on a box where Tomcat is standalone, and Tomcat provides SSL,
the servlet has problems. I think Tomcat is sending the header in clear
text on the SSL page.
<=======================>
Chris Parker
Programmer/Analyst
Health Care Services Division
California Youth Authority
----- Original Message -----
From: Sameer Karkhanis <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, December 10, 2002 12:34 AM
Subject: [iText-questions] Re: CROSS-POST https and iText
>
> hi Chris ......
>
> You probably might have checked this but i think the problem could be that
> the servlet itself might not be invoked. I got the same error when I was
in
> the early stages of development. Suugest that u try to print out a simple
> HTML by the same servlet and see the results.
>
> Alternatively .....try logging the error in some log file. this is very
> helpful in diagnosis of the problem.
>
> Chris wrote......
>
> Greetings all,
>
> First off, I know this is a blatant cross-post (and I apologize), but I'm
> not getting any action in the Tomcat User's List, and since this
> specifically regards PDF content, I'm hoping someone has solved this
> problem.
>
> I have a servlet that dynamically generates PDF content using iText, and
> serves that content out to a user's browser. However, in order to tell
the
> user's browser to expect PDF content, I first have to set the content
type.
> Assuming the servlet is responding via SSL, when I call this code:
> > response.setContentType("application/pdf");
>
> I get this error:
> > "This page contains both secure and nonsecure items."
>
> FWIW, I whipped up a quick servlet that contains ONLY that one line of
> code,
> and I got the error message. So it's certainly not anything in my code.
>
> Any thoughts?
> Sameer Karkhanis,
> GE-Corporate Web CBD
> Desk - 132
> 3rd Floor,ODC
> SEEPZ
> Tel: 8291680-1341
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions