> -----Original Message-----
> From: Peter Kalsch [mailto:[EMAIL PROTECTED]
>

Hi,

<snip />
> 1. entry in servlet init()-Method
> ...
> new Options(new
> File("/usr/local/tomcat/webapps/webAT/conf/userconfig.xml"));
> ...
>

This obviously works...

> 2. Entry in "userconfig.xml":
>   <entry>
>     <key>baseDir</key>
>     <value>usr/local/tomcat/webapss/webAT/templates/pdf/</value>
>   </entry>

... but why do you use a relative path here? Try prepending a '/' to make it
absolute, see if that helps (?)

BTW: Did you notice the slight spelling-error? "webapss" instead of
"webapps"? (could also be the cause of your headaches...)

>
> 3. abs. Path to the vm-File on my testserver is
> usr/local/tomcat/webapps/webAT/templates/pdf/test.vm

Again: this is NOT an absolute path, but a relative one... (the root is
missing)

>
> 4. abs. Path to image
> usr/local/tomcat/webapps/webAT/templates/pdf/logotr.gif  -->  the same
> directory

Idem dito.

>
>
> 5. vm-File:
> snip
> <fo:external-graphic height="16pt"  scaling="uniform"
> src="url('file:logotr.gif')"/>
> snip

IIC, this URL isn't valid. Should at least start with 'file://' (at least, I
remember vaguely from reading the related RFC, will have to look it up
myself to be sure...)

>
> 6. I'm looking in the mailing for similar problems. But all proposals to
> solve the problem failed.
> And whatever I try, I got more than less the same error:
>
> "Error while creating area : Invalid Image URL - error on relative URL :
> no protocol:

Et voilĂ , it is indeed a *relative* URL, not an absolute one.

>
> usr/local/tomcat/webapss/webAT/templates/pdf/logotr.gif"
>
>
> Additionally, I tried an alternative:
> servlet init()-Method :
> snip
> Configuration.put("baseDir", "file:" +
> getServletContext().getRealPath("/WebAT/templates/pdf/") );

To pull this off, I think you need just '.getRealPath("/templates/pdf/")'

> snip
> errormessage:
> "Error while recovering Image Informations
> (file:/usr/local/tomcat/webapps/webAT/WebAT/templates/pdf/logotr.gif) :
                                 ^^^^^^^^^^^^
See?


HTH!

Greetz,

Andreas


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

Reply via email to