Hi,
I recently installed Apache FOP on my Linux Server in order to generate PDFs files.
Something is not working properly. Maybe you could help me to find where my error is.
Here is what I did:
1) Download and install Java Runtime Environment 1.6 in /usr/local
2) Download and install fop 0.94 (binary package) in /usr/local
3) Set environment variable JAVA_HOME=/usr/local/jre1.
6.0_07
When I run fop.sh, I get all the options. But at the end, after [examples] I get the following message:
Sep 26, 2008 8:47:48 AM org.apache.fop.cli.Main startFOP
SEVERE: Exception
org.apache.fop.apps.FOPExc
eption: No input file specified
at org.apache.fop.cli.Command
LineOption
s.checkSet
tings(Comm
andLineOpt
ion
s.java:694)
at org.apache.fop.cli.Command
LineOption
s.parse(Co
mmandLineO
ptions.jav
a:1
45)
at org.apache.fop.cli.Main.st
artFOP(Mai
n.java:154
)
at org.apache.fop.cli.Main.ma
in(Main.ja
va:197)
I dont know if the message indicate a bad configuration??
Anyway I tried to transform a simple file using
./fop xml file.xml xsl filefo.xsl pdf file.pdf
I get this message:
Sep 26, 2008 8:55:34 AM org.apache.fop.fo.FOTreeBu
ilder$Main
FOHandler endElement
WARNING: Mismatch: root (
http://www.w3.org/1999/XSL/Format) vs. page-sequence (h
ttp://
www.w3.org/1999/XSL/Format)
Sep 26, 2008 8:55:34 AM org.apache.fop.fo.FOTreeBu
ilder fatalError
SEVERE: javax.xml.transform.Transf
ormerExcep
tion: java.lang.IllegalStateExce
ptio
n: endElement() called for fo:root where there is no current element.
Several lines refer to xalan. It is necessary to install it?
Thank you for your help.
Start Free Trial