Uploaded image for project: 'Apache Knox'
  1. Apache Knox
  2. KNOX-1987

knox failed to start because knoxcli failed with "java.lang.NoSuchFieldError: DEFAULT_XML_TYPE_ATTRIBUTE"

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.0
    • Fix Version/s: 1.4.0
    • Component/s: KnoxCLI
    • Labels:
      None

      Description

      On some machines knox 1.3.0 works fine. But on other machines, knox gateway failed to start. We narrowed down the problem to be simply this:

      /opt/knox/bin/knoxcli.sh create-master --master knoxmaster

       

      Further investigation found out that there are mixed version of 2.7.4 and 2.7.2 eclipse persistence jars in knox/dep folder:

      eclipselink-2.7.4.jar

      org.eclipse.persistence.core-2.7.2.jar

      sdo-eclipselink-plugin-2.3.1.jar

      jaxws-eclipselink-plugin-2.3.1.jar

      org.eclipse.persistence.moxy-2.7.2.jar

      org.eclipse.persistence.asm-2.7.2.jar

      org.eclipse.persistence.sdo-2.7.2.jar

       

      The root cause is that we should upgrade jaxws-ri from 2.3.1 to 2.3.2 so that eclipse persistence class will have the same 2.7.4 version.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                shanyu shanyu zhao
                Reporter:
                shanyu shanyu zhao
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h