Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-2547

StAX can't be used inside a plugin using Java 1.5

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • plugin-proposals
    • None
    • Platform: All, OS: All

      Attempts to call XMLInputFactory.newInstance() inside a plugin fail with this
      exception:

      Caused by: javax.xml.stream.FactoryConfigurationError: Provider
      com.bea.xml.stream.MXParserFactory not found

      I believe this is because jsr173-1.0.jar is included in the Hudson war, but no
      implementation is provided. This is a transitive dependency via dom4j.

      Proposed solutions (in order of my personal preference):
      1) Include a StAX implementation in the Hudson war.
      2) Remove jsr173-1.0.jar from the Hudson war.
      3) Change the plugin classloader model so that plugin jars take precedence over
      Hudson-provided jars.

      Under Java 6 this is not a problem.

            Unassigned Unassigned
            justinedelson justinedelson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: