XML Commons
  1. XML Commons
  2. XMLCOMMONS-80

javax.xml.stream.XMLOutputFactory should not depend on woodstox/WstxOutputFactory

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Won't Fix
    • Affects Version/s: 1.x
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Operating System: other
      Platform: Macintosh

      Description

      I did put xml-apis.jar (version 1.4) in my application endorsed directory, to be sure that everyone runs/builds against the right XML-apis.

      Unfortunately this introduces a dependency with the codehause / woodstox implementation, in my case com.ctc.wstx.stax.WstxOutputFactory ; see line 30:

      http://svn.apache.org/viewvc/xml/commons/trunk/java/external/src/javax/xml/stream/XMLOutputFactory.java?view=markup

      In my project this dependency is 'undesired'. The bad thing here is that I cannot override this default implementation. Since the application runs e.g. in tomcat, setting a system property is difficult / impossible.

      The second issue is that it is not possible to explicitly reference to the com.sun... implementation from my code, since one can not rely on running in the Sun JVM.

      So my question:

      • why the woodstox dependency?
      • please could you remove this dependency?

      It might be a good idea add some notes regarding this on the xml-commons web pages.

      Should xml-apis.jar be in the jvm/application endorsed directory?

        Activity

        Dannes Wessels created issue -
        Mark Thomas made changes -
        Field Original Value New Value
        issue.field.bugzillaimportkey 48741 12492260
        Mark Thomas made changes -
        Workflow jira [ 12539165 ] Default workflow, editable Closed status [ 12558209 ]
        Mark Thomas made changes -
        Assignee Commons Developers Mailing List [ commons-dev@xml.apache.org ]
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12558209 ] jira [ 12598992 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Dannes Wessels
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development