So I got my fop thing to work on one server. on another server, it runs gij (GNU libgcj 1.5), and not the sun version of jvm... i read that to get it to work with fop/svg, i needed to add -Dheadless=true (didnt work), or other options... Adding the PJAToolkit jars as recommended by the FOP website helped get passed that major error ... But my images are not being found when creating pdf: I get an error:
SEVERE: Unable to create ImageInputStream for local file /home/test/src/apache-tomcat-5.5.12/webapps/theApp/WEB-INF/images/common_old/footer.png from system identifier 'file:/home/test/src/apache-tomcat-5.5.12/webapps/theApp/WEB-INF/images/common_old/footer.png' Im running trunk fop on command line via a bash script: CLASS_PATH=lib/activation-1.1.jar:lib/asm-3.1.jar:lib/asm-commons-3.1.jar:lib/asm-util-3.1.jar:lib/avalon-framework-4.2.0.jar:lib/axiom-api-1.2.7.jar:lib/axiom-dom-1.2.7.jar:lib/axiom-impl-1.2.7.jar:lib/axis2-adb-codegen-1.4.1.jar:lib/axis2-codegen-1.4.1.jar:lib/axis2-corba-1.4.1.jar:lib/axis2-fastinfoset-1.4.1.jar:lib/axis2-java2wsdl-1.4.1.jar:lib/axis2-jaxbri-1.4.1.jar:lib/axis2-jaxws-1.4.1.jar:lib/axis2-jaxws-api-1.4.1.jar:lib/axis2-jibx-1.4.1.jar:lib/axis2-json-1.4.1.jar:lib/axis2-jws-api-1.4.1.jar:lib/axis2-kernel-1.4.1.jar:lib/axis2-metadata-1.4.1.jar:lib/backport-util-concurrent-3.1.jar:lib/batik-all-1.7.jar:lib/classes12.jar:lib/commons-io-1.3.1.jar:lib/commons-logging-1.0.4.jar:lib/commons-validator.jar:lib/fop.jar:lib/jaxen-1.1.1.jar:lib/jdom.jar:lib/jimi.jar:lib/mail-1.4.jar:lib/pmd-4.2.5.jar:lib/qdox-1.6.3.jar:lib/retroweaver-2.0.6-patched.jar:lib/retroweaver-rt-2.0.6-patched.jar:lib/serializer-2.7.0.jar:lib/servlet-2.2.jar:lib/struts.jar:lib/weblogic.jar:lib/xalan-2.7.0.jar:lib/xercesImpl-2.0.1.jar:lib/xercesImpl-2.7.1.jar:lib/xml-apis-1.3.04.jar:lib/xml-apis-ext-1.3.04.jar:lib/xmlgraphics-commons-1.4svn.jar:lib/xmlunit-1.2.jar:classes/:lib/pjatoolkit/pja.jar:lib/pjatoolkit/pjatools.jar #Still need headless=true after adding PJA, or it will not run java -Dawt.toolkit=com.eteks.awt.PJAToolkit -Djava.awt.headless=true -classpath $CLASS_PATH com.ourcompany.foo.bar.ReportGenerator Any idea what doing wrong?, This same project works on a similar server/setup... but has Sun 'IcedTea' 1.6 jvm installed and the CLASS_PATH on 1.6 i keep simple with lib/* since that is allowed in java 1.6. Thanks, Ari --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
