on 04-19-2004 6:33 PM
Hello,
I am trying to get an application running using the PDK ver 5.0.5 (tomcat 3.3.1a), and am running into a problem parsing an XML file.
We usually use xalan and xerces, but these don't seem to work with the PDK. After scanning these archives, I saw a reference to inqmyxml.jar, that sounded right. However, when I use inqmyxml.jar in my project, I get an exception:
java.lang.NoClassDefFoundError: org/apache/xml/serialize/BaseMarkupSerializer.
If I add my usual xerces.jar into my project and retry, I get this error:
java.lang.NoSuchMethodError: org.w3c.dom.Node: method normalize()V not found
at com.inqmy.lib.xml.parser.DOMParser.parse(DOMParser.java:83)
at com.inqmy.lib.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:108)
Can anybody give me some hints as to what I can try next?
Thanks!
-Ketan
Hi,
The first problem; java.lang.NoClassDefFoundError: org/apache/xml/serialize/BaseMarkupSerializer;
comes from the fact that you are using an xerces specific implementation class that is not found in the inqmyxml.jar.
Can seems to find the API for the inqmyxml.jar, but it should be somewhere.
The second problem is a bit more complicated. It seems to use inqmyxml for most of the classes, but gets some of the classes from the xerces (which is not a good solution as it gives you all kinds of classloader problems). The normalize method do exist in the NodeImpl class of inqmyxml.jar (tried decompiling and found it).
Somebody in this forum probably have got xerces to work, so do some searching first..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.