Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4827955

NoClassDefFoundError: org/w3c/dom/ls/DocumentLS causing failures in xalan conf

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 1.2.2
    • Fix Version/s: 1.2.3
    • Component/s: xml
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      1.2.3
    • CPU:
      sparc
    • OS:
      solaris_8

      Description

      Running the xalan conf tests on jaxp1.2.3 b01 (nightly) produces a huge number of failures. Also the jaxp product tests are failing at a higher rate
      (173 pass vs. 339). We have run the Xalan conf tests with jdk 1.3.1_fcs and
      jdk 1.4.1 _01 on Solaris 8 and 9.

      Commonality is the following from the stack traces:

      java.lang.NoClassDefFoundError: org/w3c/dom/ls/DocumentLS

      ----------------------
      Update GTM 3/7/2003:

      Here is a standalone program to reproduce the problem when compiled using
      the jar files from jaxp 1.2.3 (jaxp-1_2_3-fcs-bin-b01-06_mar_2003.zip).
      The program is 'Test.java' and it uses the file 'Comment01.xml' also
      shown below:


      Test.java code:
      ----------------------------------------------

      import org.w3c.dom.*;
      import org.xml.sax.InputSource;
      import org.xml.sax.*;
      import java.io.IOException;
      import java.io.FileInputStream;
      import java.util.Enumeration;
      import java.util.Properties;
      import javax.xml.parsers.DocumentBuilderFactory;
      import javax.xml.parsers.DocumentBuilder;
      import javax.xml.parsers.ParserConfigurationException;


      public class Test {
         private void createDOM() {
              try {
                  InputSource input = new InputSource(
      new FileInputStream("Comment01.xml"));
                  DocumentBuilder docBuilder =
      DocumentBuilderFactory.newInstance().newDocumentBuilder ();
                  Document document = docBuilder.parse(input);
              } catch(IOException e) {
                  e.printStackTrace();
                  System.exit(0);
              } catch(SAXException e) {
                  e.printStackTrace();
                  System.exit(0);
              } catch(ParserConfigurationException e) {
                  e.printStackTrace();
                  System.exit(0);
              }
         }
         public static void main(String[] args){
      Test app = new Test();
      app.dumpJavaEnv();
      app.createDOM();
         }
         public void dumpJavaEnv() {
              Properties props = System.getProperties();
              for (Enumeration en = props.propertyNames(); en.hasMoreElements(); ){
                  String key = (String)en.nextElement();
                  System.err.println(key + " = " + (String)(props.get(key)));
              }
         }
      }

      The XML file 'Comment01.xml'
      -------------------------------------------------
      <?xml version="1.0"?>
      <html xmlns="http://www.w3.org/TR/REC-html40"
            xmlns:b="urn:BooksAreUs.org:BookInfo">
        <head>
          <title>Typography</title>
        </head>

        <body>
          <p></p>
          <b:title style="font-family: sans-serif;">Digital Typography</b:title>
          <b:author>Donald Knuth</b:author>
          <book b:aaa ="value">fjfjf</book>
        </body>

      </html>


      The program when run with jaxp1.2.3 jars will print out the user's java env
      and then cause the 'java.lang.NoClassDefFoundError:
      org/w3c/dom/ls/DocumentLS' exception.

        Attachments

          Activity

            People

            • Assignee:
              gsharmasunw Gopal Sharma (Inactive)
              Reporter:
              duke J. Duke (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: