web.xml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ Licensed to the Apache Software Foundation (ASF) under one
  4. ~ or more contributor license agreements. See the NOTICE file
  5. ~ distributed with this work for additional information
  6. ~ regarding copyright ownership. The ASF licenses this file
  7. ~ to you under the Apache License, Version 2.0 (the
  8. ~ "License"); you may not use this file except in compliance
  9. ~ with the License. You may obtain a copy of the License at
  10. ~
  11. ~ http://www.apache.org/licenses/LICENSE-2.0
  12. ~
  13. ~ Unless required by applicable law or agreed to in writing, software
  14. ~ distributed under the License is distributed on an "AS IS" BASIS,
  15. ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  16. ~ See the License for the specific language governing permissions and
  17. ~ limitations under the License.
  18. -->
  19. <web-app xmlns="http://java.sun.com/xml/ns/javaee"
  20. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  21. xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
  22. version="2.5"
  23. >
  24. <display-name>Apache Atlas</display-name>
  25. <description>Metadata Management and Data Governance Platform over Hadoop</description>
  26. <servlet>
  27. <servlet-name>jersey-servlet</servlet-name>
  28. <servlet-class>
  29. com.sun.jersey.spi.spring.container.servlet.SpringServlet
  30. </servlet-class>
  31. <init-param>
  32. <param-name>com.sun.jersey.api.json.POJOMappingFeature</param-name>
  33. <param-value>true</param-value>
  34. </init-param>
  35. <load-on-startup>1</load-on-startup>
  36. </servlet>
  37. <servlet>
  38. <servlet-name>LoginServlet</servlet-name>
  39. <servlet-class>org.apache.atlas.web.servlets.AtlasLoginServlet</servlet-class>
  40. </servlet>
  41. <servlet-mapping>
  42. <servlet-name>LoginServlet</servlet-name>
  43. <url-pattern>/login.jsp</url-pattern>
  44. </servlet-mapping>
  45. <servlet>
  46. <servlet-name>ErrorServlet</servlet-name>
  47. <servlet-class>org.apache.atlas.web.servlets.AtlasErrorServlet</servlet-class>
  48. </servlet>
  49. <servlet-mapping>
  50. <servlet-name>ErrorServlet</servlet-name>
  51. <url-pattern>/error.jsp</url-pattern>
  52. </servlet-mapping>
  53. <servlet-mapping>
  54. <servlet-name>jersey-servlet</servlet-name>
  55. <url-pattern>/api/atlas/*</url-pattern>
  56. </servlet-mapping>
  57. <filter>
  58. <filter-name>springSecurityFilterChain</filter-name>
  59. <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
  60. </filter>
  61. <filter-mapping>
  62. <filter-name>springSecurityFilterChain</filter-name>
  63. <url-pattern>/*</url-pattern>
  64. </filter-mapping>
  65. <filter>
  66. <filter-name>AuditFilter</filter-name>
  67. <filter-class>org.apache.atlas.web.filters.AuditFilter</filter-class>
  68. </filter>
  69. <filter-mapping>
  70. <filter-name>AuditFilter</filter-name>
  71. <url-pattern>/*</url-pattern>
  72. </filter-mapping>
  73. <filter>
  74. <filter-name>HeaderFilter</filter-name>
  75. <filter-class>org.apache.atlas.web.filters.AtlasHeaderFilter</filter-class>
  76. </filter>
  77. <filter-mapping>
  78. <filter-name>HeaderFilter</filter-name>
  79. <url-pattern>/api/atlas/admin/metrics</url-pattern>
  80. </filter-mapping>
  81. <filter-mapping>
  82. <filter-name>HeaderFilter</filter-name>
  83. <url-pattern>/api/atlas/admin/status</url-pattern>
  84. </filter-mapping>
  85. <listener>
  86. <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
  87. </listener>
  88. <listener>
  89. <listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>
  90. </listener>
  91. <listener>
  92. <listener-class>org.apache.atlas.web.setup.KerberosAwareListener</listener-class>
  93. </listener>
  94. <session-config>
  95. <session-timeout>60</session-timeout>
  96. <tracking-mode>COOKIE</tracking-mode>
  97. <cookie-config>
  98. <name>ATLASSESSIONID</name>
  99. <http-only>true</http-only>
  100. </cookie-config>
  101. </session-config>
  102. <error-page>
  103. <exception-type>java.lang.Throwable</exception-type>
  104. <location>/error.jsp</location>
  105. </error-page>
  106. <error-page>
  107. <error-code>404</error-code>
  108. <location>/error.jsp</location>
  109. </error-page>
  110. <error-page>
  111. <error-code>500</error-code>
  112. <location>/error.jsp</location>
  113. </error-page>
  114. </web-app>