Hi..
I'm attempting to run FOP 0.19.0 under AIX using
WebSphere Java 1.2.2. Most things seems to be working ok. My
problem is that I can't seem to load my own user configuration file.
Using the Fop command line program..
java -classpath fop.jar
org.apache.fop.apps.Fop -c "conf/userconfig.xml" -fo fonts.fo
-pdf fonts.pdf
---I get the following message. reading user
configuration file Can't find user configuration file
conf/userconfig.xml using default values --
I have tried copying
the config file into the current directory. I've tried providing the
whole path /.../userconfig.xml. I've tried renaming the file. In the
end I tried writing my own code to test if it was related to fop command
line code.
static void main( String[] args )
{ try { Options options =
null;
String pathFonts =
null; InputSource foFile = new InputSource( new
FileInputStream("fonts.fo")); FileOutputStream out
= new FileOutputStream( "fonts.pdf" ); // options = new
Options(new
File("/home/davidr/Fop19/userconfig.xml"));
options = new Options();
options.loadUserconfiguration("userconfig.xml");
Driver driver = new Driver();
driver.setRenderer(Driver.RENDER_PDF);
driver.addElementMapping("org.apache.fop.fo.StandardElementMapping");
driver.addPropertyList("org.apache.fop.fo.StandardPropertyListMapping");
driver.setOutputStream(out);
driver.buildFOTree(createParser(), foFile);
driver.format(); driver.render(); }
catch (Exception e) { System.out.println("Error in
Main"); e.printStackTrace(); }
}
You will notice, I even tried different methods of setting
options. Every time I get the same error. I can only assume
this is a bug related to AIX? Anyone seen this problem, or can suggest a
solution or
workaround?
Thanks.. David.
|