Hi,
In fact I faced a similar problem. It is most likely that your batik jar
files you have included (apart from batik.jar file that comes with FOP)
is causing the problem. I don't know your classpath, however, check if
you have added batik-ext.jar (that comes with batik distribution) to
your class path, this also has the w3c parser files. If this is so, try
removing the class files which are part of xerces from batik-ext.jar
file.
Ganesh
-----Original Message-----
From: Cai, Judy [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 17, 2003 6:24 PM
To: '[EMAIL PROTECTED]'
Subject: RE: embedding fop0.20.5 working on jdk1.3.1-linux?
Thanks, Ganesh
Is XML parsers xercesImpl-2.2.1.jar? I can not find other XML Parsers in
my classpath and current fop0.20.5 directory. I tried running the Sample
document on the command line on the linux machine? There is also
java.lang.NoSuchMethodError: org.apache.batik.dom.AbstractAttr: method
isReadonly()Z not >found. I narrowed down the problem to the input image
file from my xsl file.
If I comment <fo:block><fo:external-graphic src="file:nsf_logo.svg" />
</fo:block> from my xsl file, it did generate PDF file. Otherwise, it
will cause java.lang.NoSuchMethodError method:
org.apache.batik.dom.AbstractAttr:
isReadonly()Z not >found. But I put svg image files, xml file, xsl file,
pdf file and fop.sh in the same folder fop-0.20.5. There is no reason
FOP can not find the image file. Could you explain the reason?
Thanks
Judy Cai
-----Original Message-----
From: Ganesh [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 16, 2003 11:41 PM
To: [EMAIL PROTECTED]
Subject: RE: embedding fop0.20.5 working on jdk1.3.1-linux?
>
>java.lang.NoSuchMethodError: org.apache.batik.dom.AbstractAttr: method
isReadonly()Z not >found
> at org.apache.batik.dom.GenericAttr.(GenericAttr.java:42)
> at
org.apache.batik.dom.AbstractAttr.setValue(AbstractAttr.java:177)
> at
org.apache.batik.dom.svg.AbstractElement$ExtendedNamedNodeHashMap.setUns
peci
>fiedAttribute(AbstractElement.java:238)
>
These isReadonly error comes only when there is more than one XML
parsers are available in your classpath or current directory. Check it
out.
Ganesh
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
**************************Disclaimer************************************
Information contained in this E-MAIL being proprietary to Wipro Limited is
'privileged' and 'confidential' and intended for use only by the individual
or entity to which it is addressed. You are notified that any use, copying
or dissemination of the information contained in the E-MAIL in any manner
whatsoever is strictly prohibited.
***************************************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]