Problem with external-graphic and https-url

2003-08-20 Thread Pasi Kallioniemi
Hello all,
I'm using fop 0.20.4 to render pdf documents through servlets. In my xsl-fo
file there is an external-graphic link to our servlet (run under tomcat).
And when requested the servlet responses through servletstream with an
dynamically created image (.png-format).

I have also relative link external-graphics in the xsl-fo file. For the
relative link images i have set the fop basedir using
org.apache.fop.configuration.Configuration.put(baseDir, file:+
context.getRealPath(/)); - The basedir is now set to:
c:\jakarta-tomcat-4.0.1\webapps\AppIntelli\defaultroot\.

The xsl:fo file is following for the images-part:

fo:block text-align=center
fo:external-graphic height=0.37in width=1.4in src=images/logo.jpg/
/fo:block

fo:block font-family=sans-serif font-size=10pt text-align=center
fo:external-graphic
src=https://localhost:8085/doc/image.png?t=1061380245238amp;q=7amp;p=1/
/fo:block

All goes well (the local and dynamic images are rendered correctly) as long
as the dynamically created link is under http:// But now when we have
set our server under SSL-certificate so the secure connection url starts
with https://... the following error appears:

[ERROR] Error while creating area : Error while recovering Image
Informations
(file:c:/jakarta-tomcat-4.0.1/webapps/AppIntelli/defaultroot//doc/image.png?
t=1061380245238q=7p=1) :
c:\jakarta-tomcat-4.0.1\webapps\AppIntelli\defaultroot\doc\image.png (The
system cannot find the file specified)

The link in the xsl:fo
https://localhost:8085/doc/image.png?t=1061380245238amp;q=7amp;p=1 should
be mapped to our servlet and not into the file system! The mapping goes all
right when it's an http, but not with https. The shouldn't be an tomcat
problem as I can access the dynamic link through browser and see the image
correctly.

I have read in the archives something that if FOP doesn't succeed to get
image through the given url, it tries through using basedir-variable. Is
this really correct? Anyone have an idea what is going on?

All help would be greatly appreciated!!




Best Regards,
Pasi Kallioniemi
IPSS - Intelligent Precision Solutions and Services Oy
Salomonkatu 17 B
FIN-00100 Helsinki

e-mail [EMAIL PROTECTED]
www.ipss.fi



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem with external-graphic and https-url

2003-08-20 Thread J.Pietschmann
Pasi Kallioniemi wrote:
All goes well (the local and dynamic images are rendered correctly) as long
as the dynamically created link is under http:// But now when we have
set our server under SSL-certificate so the secure connection url starts
with https://... the following error appears:
[ERROR] Error while creating area : Error while recovering Image
Informations
...
I have read in the archives something that if FOP doesn't succeed to get
image through the given url, it tries through using basedir-variable. Is
this really correct? Anyone have an idea what is going on?
I'd say your JRE doesn't support HTTPS. It's not in Sund JDK 1.3,
and I believe you'll have to do something to enable it in 1.4.
Ask a local Java guru.
J.Pietschmann

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]