Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-1351

static DocumentBuilderFactory in XMLUtils cause ClassCastException when use different classloader

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.3
    • 2.0.4
    • None
    • None

    Description

      for example, init the DocumentBuilderFactory with classloader1 by
      parserFactory = DocumentBuilderFactory.newInstance(); //here use classloader1 is used

      but invoke getParser() with classloader2
      when parserFactory.newDocumentBuilder(); will get ClassCastException

      we can't cast same class prototype with different classloader

      Attachments

        Activity

          People

            ffang Freeman Yue Fang
            ffang Freeman Yue Fang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: