Thanks, but it still does not work.

I use
File userConfigFile = new
File(getServletContext().getRealPath("/WEB-INF/userconfig.xml"));
to set the userconfig file, and this works fine.
but all efforts to set the baseDir didn't work:
I tried:
String pathToFile = getServletContext().getRealPath("/WEB-INF");
(I thought this must work, because the one above works fine)
or
String pathToFile = "file://"+getServletContext().getRealPath("/WEB-INF");
or even
String pathToFile = "file://w:/projekte/owservlet/build/WEB-INF/";
with the following
org.apache.fop.configuration.Configuration.put("baseDir", pathToFile );
but the fop tells me
[ERROR] Failed to read font metrics file
/projekte/owservlet/build/WEB-INF/mtcorsiva.xml : null

whats happening to the "file://w:" part of the path ?

Peter
-- 

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

Reply via email to