You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Jarno Elovirta <ja...@codeonline.com> on 2000/07/13 14:33:26 UTC
Xalan and Xerces versions to use
Once again, idiotic questions about building FOP, but I seem to be unable to
build FOP with Xalan 1.1 and Xerces 1.1.2. The error messages are:
C:\lang\dev\xml-fop\build\src\org\apache\fop\fo\FOTreeBuilder.java:200:
Method getRawName(int) not found in interface org.xml.sax.Attributes.
String att = attlist.getRawName(i);
^
C:\lang\dev\xml-fop\build\src\org\apache\fop\fo\PropertyListBuilder.java:263
: Method getRawName(int) not found in interface org.xml.sax.Attributes.
String attributeName = attributes.getRawName(i);
^
C:\lang\dev\xml-fop\build\src\org\apache\fop\fo\XTFOTreeBuilder.java:200:
Method getRawName(int) not found in interface org.xml.sax.Attributes.
String att = attlist.getRawName(i);
^
The problem seems to be with SAX version to use. I downloaded Xalan 1.0.0
distribution and with Xerces in that the build is succesful. When do you
think I could switch back to the latest Xalan and Xerces?
Also, when I try to run the build, it messages:
Exception in thread "main" java.lang.NoClassDefFoundError:
org/w3c/dom/svg/GetSVGDocument
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java, Compiled
Code)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java, Compiled
Code)
at java.net.URLClassLoader.defineClass(URLClassLoader.java, Compiled
Code)
at java.net.URLClassLoader.access$1(URLClassLoader.java, Compiled
Code)
at java.net.URLClassLoader$1.run(URLClassLoader.java, Compiled Code)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java, Compiled
Code)
at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java,
Compiled Code)
at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:124)
at org.apache.fop.apps.Driver.createRenderer(Driver.java:157)
at org.apache.fop.apps.Driver.setRenderer(Driver.java:144)
at org.apache.fop.apps.CommandLine.main(CommandLine.java:166)
Where can I find a version or w3c.jar, which contains this class? Yes, I
know - no stupid questions, just stupid people :/
--
Jarno Elovirta jarno.elovirta@codeonline.com
CODEONLINE Ltd. http://www.codeonline.com
P.O. Box 538 (Ukonvaaja 2 A), FIN-02130 Espoo, Finland
Mobile: +358 40 747 5572 Fax: +358 9 4393 0410
"Hoc non credo; toga mea surrepta est iterum!"
Re: Xalan and Xerces versions to use
Posted by Arved Sandstrom <Ar...@chebucto.ns.ca>.
At 03:57 PM 7/13/00 +0200, Fotis Jannidis wrote:
>> Anybody else wants to step in and update feel free.
>Yes, I can do it. Just downloaded a new version of Xerces, because my
older one also
>didn't complain about the method name.
>
>Fotis
OK, great, thanks. I didn't pay the attention I should have to configuration
control; the Xerces and Xalan that I have just worked. Some of the SAX2
support that I put in is honestly a hack, and we can stand to clean it up.
Danke schoen.
Arved
Senior Developer
e-plicity.com (www.e-plicity.com)
Halifax, Nova Scotia
"B2B Wireless in Canada's Ocean Playground"
Re: Xalan and Xerces versions to use
Posted by Fotis Jannidis <fo...@lrz.uni-muenchen.de>.
> Anybody else wants to step in and update feel free.
Yes, I can do it. Just downloaded a new version of Xerces, because my older one also
didn't complain about the method name.
Fotis
Re: Xalan and Xerces versions to use
Posted by Arved Sandstrom <Ar...@chebucto.ns.ca>.
At 03:19 PM 7/13/00 +0200, Fotis Jannidis wrote:
>> Jarno:
>
>> Once again, idiotic questions about building FOP, but I seem to be
unable to
>> build FOP with Xalan 1.1 and Xerces 1.1.2. The error messages are:
>>
>> C:\lang\dev\xml-fop\build\src\org\apache\fop\fo\FOTreeBuilder.java:200:
>> Method getRawName(int) not found in interface org.xml.sax.Attributes.
>> String att = attlist.getRawName(i);
>
>[...]
> ^
>> The problem seems to be with SAX version to use. I downloaded Xalan 1.0.0
>> distribution and with Xerces in that the build is succesful. When do you
>> think I could switch back to the latest Xalan and Xerces?
>
>Very soon probably.
>
>AFAIK getRawName(int index) was used by Sax 2.0beta and has been replaced by
>getQName(int index) (Q for qualified) in the final version. I think,
that's all.
>
I'll have to review my SAX2 stuff and update it as required. I could
definitely have been using a Xerces that went with the SAX2 beta. I think I
currently have been working with 1.0.3.
Anybody else wants to step in and update feel free.
I think there was some aggravation expressed over the use of the QName term.
Has this now been resolved?
Arved
Senior Developer
e-plicity.com (www.e-plicity.com)
Halifax, Nova Scotia
"B2B Wireless in Canada's Ocean Playground"
Re: Xalan and Xerces versions to use
Posted by Fotis Jannidis <fo...@lrz.uni-muenchen.de>.
> Jarno:
> Once again, idiotic questions about building FOP, but I seem to be unable to
> build FOP with Xalan 1.1 and Xerces 1.1.2. The error messages are:
>
> C:\lang\dev\xml-fop\build\src\org\apache\fop\fo\FOTreeBuilder.java:200:
> Method getRawName(int) not found in interface org.xml.sax.Attributes.
> String att = attlist.getRawName(i);
[...]
^
> The problem seems to be with SAX version to use. I downloaded Xalan 1.0.0
> distribution and with Xerces in that the build is succesful. When do you
> think I could switch back to the latest Xalan and Xerces?
Very soon probably.
AFAIK getRawName(int index) was used by Sax 2.0beta and has been replaced by
getQName(int index) (Q for qualified) in the final version. I think, that's all.
> Where can I find a version or w3c.jar, which contains this class (org/w3c/dom/svg/GetSVGDocument)?
it should be in /lib/w3c.jar
Do you have this in your classpath?
Fotis