You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Carlos Daniel Schafer <Ca...@siemens-itron.com.ar> on 2002/04/19 16:14:25 UTC

problem with path relative - HELP ME

Hi

I look distinct examples on Fop configuration.
I have a problem with path relative by image.

My code in servlet embeded is 

                                String baseDirPath =
"http://localhost:8080/portalrentas/";

 
org.apache.fop.configuration.Configuration.put("baseDir", baseDirPath);

but, I have a problem 
This, show me the next error:

[ERROR]: Error while creating area : Error while recovering Image
Informations 
(http://localhost:8080/portalrentas/fop/xslfo/escudo-200.jpg) :
http://localhost:8080/portalrentas/fop/xslfo/escudo-200.jpg

I don't understand.

What's the error?
Why's ocurrs this errors?

My code into xslfo is

	      <fo:external-graphic src="fop/xslfo/escudo-200.jpg"/>

Re: problem with path relative - HELP ME

Posted by Jeremias Maerki <je...@outline.ch>.
So, it looks like baseDir is set correctly. The error happens because
FOP can't load the image from where specified. Try the URL
http://localhost:8080/portalrentas/fop/xslfo/escudo-200.jpg
in your browser to see if the image is really there. If not, find out
what you have to specify so the images can be found.

> I look distinct examples on Fop configuration.
> I have a problem with path relative by image.
> 
> My code in servlet embeded is 
> 
>                                 String baseDirPath =
> "http://localhost:8080/portalrentas/";
> 
>  
> org.apache.fop.configuration.Configuration.put("baseDir", baseDirPath);
> 
> but, I have a problem 
> This, show me the next error:
> 
> [ERROR]: Error while creating area : Error while recovering Image
> Informations 
> (http://localhost:8080/portalrentas/fop/xslfo/escudo-200.jpg) :
> http://localhost:8080/portalrentas/fop/xslfo/escudo-200.jpg
> 
> I don't understand.
> 
> What's the error?
> Why's ocurrs this errors?
> 
> My code into xslfo is
> 
> 	      <fo:external-graphic src="fop/xslfo/escudo-200.jpg"/>

Cheers,
Jeremias Märki

mailto:jeremias.maerki@outline.ch

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Tel. +41 41 317 2020 - Fax +41 41 317 2029
Internet http://www.outline.ch


Re: problem with path relative - HELP ME

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Mohamed Abdel Hameed wrote:
> hi
> i have the same problem also
> images didn't appear till i write full path of the images like
> c:\images\image.gif
> and not work with this
> (  http://localhost:8080/cocoon/mydir/images/image.gif )

The second form requires a webserver running and serving
the requested file. You can check whether it works by
pointing your favorite browser to the URL and let surprise
yourself whether the picture is displayed.

If the browser has no difficulties, but FOP still can't
get the images, check whether the server correctly serves
the content type and other meta data.
There are more, but very rare possibilites.

J.Pietschmann


Re: problem with path relative - HELP ME

Posted by Mohamed Abdel Hameed <mo...@imkenberg.net>.
hi
i have the same problem also
images didn't appear till i write full path of the images like
c:\images\image.gif
and not work with this
(  http://localhost:8080/cocoon/mydir/images/image.gif )
i don't know what is the reason
so i hope that anybody can help in this
thanx

----- Original Message -----
From: "Carlos Daniel Schafer" <Ca...@siemens-itron.com.ar>
To: "Fop-Dev (Correo electrَnico)" <fo...@xml.apache.org>; "Fop-User
(Correo electrَnico)" <fo...@xml.apache.org>
Sent: Friday, April 19, 2002 4:14 PM
Subject: problem with path relative - HELP ME


> Hi
>
> I look distinct examples on Fop configuration.
> I have a problem with path relative by image.
>
> My code in servlet embeded is
>
>                                 String baseDirPath =
> "http://localhost:8080/portalrentas/";
>
>
> org.apache.fop.configuration.Configuration.put("baseDir", baseDirPath);
>
> but, I have a problem
> This, show me the next error:
>
> [ERROR]: Error while creating area : Error while recovering Image
> Informations
> (http://localhost:8080/portalrentas/fop/xslfo/escudo-200.jpg) :
> http://localhost:8080/portalrentas/fop/xslfo/escudo-200.jpg
>
> I don't understand.
>
> What's the error?
> Why's ocurrs this errors?
>
> My code into xslfo is
>
>       <fo:external-graphic src="fop/xslfo/escudo-200.jpg"/>