I'm no java expert (not by a long shot) but in your command you have defined
the classpath for
xerces and xalan twice (each to a different version of xerces.jar and
xalan.jar). As the error
says "java.lang.NoSuchMethodError" this might be because of the confusing
claspath?

just my $0.02,

Michiel

$ -----Original Message-----
$ From: Ian Taylor [mailto:[EMAIL PROTECTED]
$ Sent: woensdag 20 februari 2002 10:51
$ To: [EMAIL PROTECTED]
$ Subject: Trouble with FOP from command line
$ 
$ 
$ Hello,
$ 
$ I am generating an xml document from a Java program which I 
$ would like to 
$ become a pdf file. I can do this from the command line using 
$ the following 
$ commands.
$ 
$ java -classpath 
$ c:\jdk1.3.1_01\lib\xerces.jar;c:\jdk1.3.1_01\lib\xalan.jar; 
$ org.apache.xalan.xslt.Process -in TIPS.xml -xsl TIPS.xsl -out TIPS.fo
$ 
$ java -cp 
$ c:\fop-0.20.1\build\fop.jar;c:\fop-0.20.1\lib\batik.jar;c:\fop
$ -0.20.1\lib\xalan-2.0.0.jar;c:\fop-0.20.1\lib\xerces-1.2.3.jar
$ ;c:\fop-0.20.1\lib\jimi-1.0.jar 
$ org.apache.fop.apps.Fop TIPS.fo TIPS.pdf
$ 
$ but when I try  fop -xml TIPS.xml -xsl TIPS.xsl -pdf TIPS.pdf 
$ I get the 
$ following error -
$ 
$ FOP 0.20.1
$ using SAX parser org.apache.xerces.parsers.SAXParser
$ java.lang.NoSuchMethodError
$          at 
$ org.apache.xpath.DOM2Helper.getNamespaceOfNode(DOM2Helper.java:348)
$          at 
$ org.apache.xpath.patterns.NodeTest.execute(NodeTest.java:471)
$          at 
$ org.apache.xpath.axes.PredicatedNodeTest.acceptNode(Predicated
$ NodeTest.java:388)
$          at 
$ org.apache.xpath.axes.ChildTestIterator.nextNode(ChildTestIter
$ ator.java:193)
$          at 
$ org.apache.xalan.templates.ElemForEach.transformSelectedNodes(
$ ElemForEach.java:428)
$          at 
$ org.apache.xalan.templates.ElemApplyTemplates.execute(ElemAppl
$ yTemplates.java:193)
$          at 
$ org.apache.xalan.transformer.TransformerImpl.executeChildTempl
$ ates(TransformerImpl.java:2154)
$          at 
$ org.apache.xalan.transformer.TransformerImpl.executeChildTempl
$ ates(TransformerImpl.java:2097)
$          at 
$ org.apache.xalan.transformer.TransformerImpl.applyTemplateToNo
$ de(TransformerImpl.java:2029)
$          at 
$ org.apache.xalan.transformer.TransformerImpl.transformNode(Tra
$ nsformerImpl.java:1189)
$          at 
$ org.apache.xalan.transformer.TransformerImpl.run(TransformerIm
$ pl.java:2894)
$          at java.lang.Thread.run(Unknown Source)
$ 
$ Can anyone help please?
$ 
$ PS  The OUTPUT from first 2 commands:
$ 
$ FOP 0.20.1
$ using SAX parser org.apache.xerces.parsers.SAXParser
$ building formatting object tree
$ setting up fonts
$ WARNING: property 'page-master-name' ignored
$ WARNING: A 'flow-name' is required for fo:flow. This 
$ constraint will be 
$ enforced in future versions of FOP
$   [1] [2]
$ Parsing of document complete, stopping renderer
$ Initial heap size: 571Kb
$ Current heap size: 3143Kb
$ Total memory used: 2571Kb
$    Memory use is indicative; no GC was performed
$    These figures should not be used comparatively
$ Total time used: 3706ms
$ Pages rendererd: 2
$ Avg render time: 1853ms/page
$ 

Reply via email to