[ https://issues.apache.org/jira/browse/KNOX-1987?focusedWorklogId=294310&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-294310 ]
ASF GitHub Bot logged work on KNOX-1987: ---------------------------------------- Author: ASF GitHub Bot Created on: 14/Aug/19 00:46 Start Date: 14/Aug/19 00:46 Worklog Time Spent: 10m Work Description: shanyu commented on pull request #130: KNOX-1987: knox failed to start because knoxcli failed with "java.lan… URL: https://github.com/apache/knox/pull/130 …g.NoSuchFieldError: DEFAULT_XML_TYPE_ATTRIBUTE"WQ Signed-off-by: Shanyu Zhao <shz...@microsoft.com> ## What changes were proposed in this pull request? Upgrade jaxws-ri version to 2.3.2 so that it uses the same version (2.7.4) of eclipse persistence classes. Otherwise, there are these files in knox/dep folder, and depends on loading sequence of classloader, you might encouter the NoSuchFieldError: eclipselink-2.7.4.jar org.eclipse.persistence.core-2.7.2.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 ## How was this patch tested? Manual tests ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 294310) Time Spent: 10m Remaining Estimate: 0h > knox failed to start because knoxcli failed with "java.lang.NoSuchFieldError: > DEFAULT_XML_TYPE_ATTRIBUTE" > --------------------------------------------------------------------------------------------------------- > > Key: KNOX-1987 > URL: https://issues.apache.org/jira/browse/KNOX-1987 > Project: Apache Knox > Issue Type: Bug > Components: KnoxCLI > Affects Versions: 1.3.0 > Reporter: shanyu zhao > Priority: Major > Time Spent: 10m > Remaining Estimate: 0h > > 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. -- This message was sent by Atlassian JIRA (v7.6.14#76016)