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

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

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

        1. staxtest.zip
          0.9 kB
        2. staxtest.zip
          0.9 kB

          [JENKINS-2547] StAX can't be used inside a plugin using Java 1.5

          justinedelson created issue -
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          justinedelson made changes -
          Resolution Original: Fixed [ 1 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Reopened [ 4 ] New: Resolved [ 5 ]
          Andrew Bayer made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 132620 ] New: JNJira + In-Review [ 201548 ]

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

              Created:
              Updated:
              Resolved: