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

JAXP 1.3.2 has a dependency on a Tiger class

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 1.3.0
    • Fix Version/s: 1.3.0
    • Component/s: xml
    • Labels:

      Description

      An user reported that he found an issue while trying to run JAXP 1.3.2 on JDK 1.4. We should be compiling JAXP on JDK 1.4 to avoid any problem like this.

      --------------------
      Hi Kohsuke,

      I'd create a new thread based on this question at the Glassfish site, but it won't let me log in for some reason. I'm trying to use JAXP 1.3.2 with JDK 1.4.2_9, and followed the directions at https://jaxp.dev.java.net/Updating.html#java-14. In particular, i'm using the following on the java comand line when I run my app:

      -Djava.endorsed.dirs=yourDirectoryPath.

      However, when I do this and try to execute a stylesheet via a Templates object, I get the following exception:

      ERROR: 'java/lang/StringBuilder'
      FATAL ERROR: 'Could not compile stylesheet'
      javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet
      javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet
      at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:824)

      My understanding is that this functionality should work in JDK 1.4, so there shouldn't be any dependencies on JDK 1.5-specific classes like StringBuilder. I don't have anything else in the classpath that should be referencing StringBuilder (just Apache commons-logging and log4j), so i'm at a loss to determine where the StringBuilder reference is coming from. Any ideas? Should I be using an earlier version of JAXP 1.3?

      Thanks,

      Bentley

        Attachments

          Activity

            People

            Assignee:
            jsuttorsunw Jeff Suttor (Inactive)
            Reporter:
            kkawagucsunw Kohsuke Kawaguchi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: