[
https://issues.apache.org/jira/browse/HADOOP-14024?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16069234#comment-16069234
]
John Zhuge commented on HADOOP-14024:
-------------------------------------
Just a little explanation on the fix:
* Changing jetty scope from "test" to "compile" is a lie technically because
only KMS test code depends on jetty directly, while KMS main code depends on
jetty indirectly via hadoop-common.
* Even if I remove the jetty exclusion from hadoop-common dependency, the local
jetty test dependency will trump the transitive jetty compile dependency. See
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Scope.
> KMS JMX endpoint throws ClassNotFoundException
> ----------------------------------------------
>
> Key: HADOOP-14024
> URL: https://issues.apache.org/jira/browse/HADOOP-14024
> Project: Hadoop Common
> Issue Type: Bug
> Components: kms
> Affects Versions: 2.8.0
> Reporter: Andrew Wang
> Assignee: John Zhuge
> Priority: Critical
> Fix For: 2.9.0, 2.8.2
>
> Attachments: HADOOP-14024-branch-2.001.patch
>
>
> Throws like this:
> {noformat}
> </pre></p><p><b>root cause</b> <pre>java.lang.ClassNotFoundException:
> org.mortbay.jetty.servlet.Context
>
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1698)
>
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1544)
> org.apache.hadoop.jmx.JMXJsonServlet.doGet(JMXJsonServlet.java:174)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
>
> org.apache.hadoop.crypto.key.kms.server.KMSMDCFilter.doFilter(KMSMDCFilter.java:84)
>
> org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:636)
>
> org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticationFilter.doFilter(DelegationTokenAuthenticationFilter.java:304)
>
> org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:588)
>
> org.apache.hadoop.crypto.key.kms.server.KMSAuthenticationFilter.doFilter(KMSAuthenticationFilter.java:129)
> {noformat}
> I tried out branch-2.6 and it seems to be okay, so something changed between
> 2.6.x and 2.8.x/branch-2
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]