Skip to Content
author's profile photo Former Member
Former Member

XML file reading issue, inqmyxml.jar may/may not help?


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(

at com.inqmy.lib.jaxp.DocumentBuilderImpl.parse(

Can anybody give me some hints as to what I can try next?



Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Apr 20, 2004 at 06:45 AM


    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..

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.