[
https://issues.apache.org/jira/browse/AMBARI-19865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15852184#comment-15852184
]
Hudson commented on AMBARI-19865:
---------------------------------
SUCCESS: Integrated in Jenkins build Ambari-trunk-Commit #6645 (See
[https://builds.apache.org/job/Ambari-trunk-Commit/6645/])
AMBARI-19865: Ambari-server logon failure: Hadoop-common dependency on
(nsomasundaram:
[http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=4d800650279f65d1deb6f754f11235008f19ce47])
* (edit) ambari-server/src/main/assemblies/server.xml
* (edit) ambari-server/pom.xml
> Ambari-server logon failure: Hadoop-common dependency on servlet-api 2.5
> -------------------------------------------------------------------------
>
> Key: AMBARI-19865
> URL: https://issues.apache.org/jira/browse/AMBARI-19865
> Project: Ambari
> Issue Type: Bug
> Components: ambari-server
> Affects Versions: 2.5.0
> Reporter: Nahappan Somasundaram
> Assignee: Nahappan Somasundaram
> Fix For: 2.5.0
>
> Attachments: rb56281.patch
>
>
> CredentialUtil uses hadoop-common which depends on servlet-api 2.5. This
> causes a failure during ambari-server logon:
> {code}
> 02 Feb 2017 13:15:57,992 WARN [ambari-client-thread-25] ServletHandler:592 -
> Error for /api/v1/clusters
> java.lang.NoSuchMethodError:
> javax.servlet.http.HttpServletResponse.getStatus()I
> at
> org.apache.ambari.server.security.authorization.AmbariAuthorizationFilter.doFilter(AmbariAuthorizationFilter.java:277)
> at
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
> at
> org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
> at
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
> at
> org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103)
> at
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
> at
> org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
> at
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
> {code}
> This happens because of classpath collision between multiple servlet api
> versions. The org.apache.hadoop:hadoop-common depends on an old version of
> servlet api (2.5).
> {code}
> [INFO] +- org.apache.hadoop:hadoop-common:jar:2.7.2:compile
> [INFO] | +- xmlenc:xmlenc:jar:0.52:compile
> [INFO] | +- commons-httpclient:commons-httpclient:jar:3.1:compile
> [INFO] | +- javax.servlet:servlet-api:jar:2.5:compile
> [INFO] | +- org.mortbay.jetty:jetty:jar:6.1.26:compile
> [INFO] | +- org.mortbay.jetty:jetty-util:jar:6.1.26:compile
> [INFO] | +- javax.servlet.jsp:jsp-api:jar:2.1:runtime
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)