Shilun Fan created YARN-11931:
---------------------------------

             Summary: Fix router webapp tests by adding EclipseLink test 
dependency
                 Key: YARN-11931
                 URL: https://issues.apache.org/jira/browse/YARN-11931
             Project: Hadoop YARN
          Issue Type: Bug
          Components: router
    Affects Versions: 3.5.1
            Reporter: Shilun Fan
            Assignee: Shilun Fan


After upgrading to Jersey 2.46, TestRouterWebServicesREST and 
TestFederationWebApp fail with NoClassDefFoundError:
 
{code:java}
 Caused by: java.lang.NoClassDefFoundError: 
org/eclipse/persistence/internal/queries/ContainerPolicy
    at java.base/java.lang.Class.getDeclaredMethods0(Native Method)
    at java.base/java.lang.Class.privateGetDeclaredMethods(Class.java:3402)
    at java.base/java.lang.Class.getDeclaredMethods(Class.java:2504) {code}
*Solution:*
Add org.eclipse.persistence:org.eclipse.persistence.core as a test dependency 
in hadoop-yarn-server-router/pom.xml.
 
*Test Results:*
- TestRouterWebServicesREST: 42 tests passed
- TestFederationWebApp: 52 tests passed
 
Additionally, fixed a classpath concatenation bug in JavaProcess.java where 
File.pathSeparator was missing when appending test resources path.
 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to