Hello,

I have a problem with servlet : no image are found.

Fop is working fine (thank you to the dev) to convert my xml to pdf from
command line. For performance reason, I am trying to do the same with
Tomcat.
I am using fop 0.20.5rc3 from cvs, Tomcat 4.1, java 1.4.1. For the test I am
on win 2000 and after I will set up a production environment on a linux box.

The build script did well the job. I copy the fop.war in the Tomcat webapps
subdir and test with a fo file and a xml/xsl files, the PDF was render with
no trouble exept the images. In Tomcat window, I saw fop who complain about
image path :

[ERROR] Error while creating area : Error with image URL:
images\logo_acro.gif (
Le chemin d'acc�s sp�cifi� est introuvable) and no base URL is specified

In the fo file, the src for image is relative to current dir :
<fo:external-graphic height="15mm" width="44mm" src="images/logo_acro.gif"/>

I copy the images dir in webapps\fop but fop did not found it.

I tried to call directly the image from the browser and I got a servlet
error page
        FopServlet Error
        No 'fo' request param given.

with the following error in the logs :

2003-04-30 15:42:57 StandardContext[/fop]: Mapping contextPath='/fop' with
requestURI='/fop/fop/images/logo_acro.gif' and
relativeURI='/fop/images/logo_acro.gif'
2003-04-30 15:42:57 StandardContext[/fop]:   Trying exact match
2003-04-30 15:42:57 StandardContext[/fop]:   Trying prefix match
2003-04-30 15:42:57 StandardContext[/fop]:   Trying extension match
2003-04-30 15:42:57 StandardContext[/fop]:   Trying default match
2003-04-30 15:42:57 StandardContext[/fop]:  Mapped to servlet 'Fop' with
servlet path '/fop/images/logo_acro.gif' and path info 'null' and
update=true

So, it's look like a miss configuration of Tomcat but I don't know how and
where I should set it up. I have installed everything with default value
(except debug level).

The page http://xml.apache.org/fop/embedding.html is talking about baseDir
but how do I set it up or find it's absolut path ?

Thank you by advance for any help,
C�dric Augustin
 

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

Reply via email to