You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

web.xml 4.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  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,
  14. ~ software distributed under the License is distributed on an
  15. ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  16. ~ KIND, either express or implied. See the License for the
  17. ~ specific language governing permissions and limitations
  18. ~ under the License.
  19. -->
  20. <web-app xmlns="http://java.sun.com/xml/ns/j2ee" version="2.4"
  21. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  22. xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
  23. <display-name>Apache Archiva</display-name>
  24. <filter>
  25. <filter-name>webwork-cleanup</filter-name>
  26. <filter-class>org.apache.struts2.dispatcher.ActionContextCleanUp</filter-class>
  27. </filter>
  28. <filter>
  29. <filter-name>sitemesh</filter-name>
  30. <filter-class>com.opensymphony.module.sitemesh.filter.PageFilter</filter-class>
  31. </filter>
  32. <filter>
  33. <filter-name>webwork</filter-name>
  34. <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
  35. </filter>
  36. <!-- this must be before the sitemesh filter -->
  37. <filter-mapping>
  38. <filter-name>webwork-cleanup</filter-name>
  39. <url-pattern>/*</url-pattern>
  40. </filter-mapping>
  41. <filter-mapping>
  42. <filter-name>sitemesh</filter-name>
  43. <url-pattern>/*</url-pattern>
  44. </filter-mapping>
  45. <filter-mapping>
  46. <filter-name>webwork</filter-name>
  47. <url-pattern>/*</url-pattern>
  48. </filter-mapping>
  49. <listener>
  50. <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
  51. </listener>
  52. <listener>
  53. <!-- TODO: some Spring technique for this? -->
  54. <listener-class>org.apache.maven.archiva.web.startup.ArchivaStartup</listener-class>
  55. </listener>
  56. <context-param>
  57. <param-name>contextClass</param-name>
  58. <param-value>org.codehaus.plexus.spring.PlexusWebApplicationContext</param-value>
  59. </context-param>
  60. <context-param>
  61. <param-name>contextConfigLocation</param-name>
  62. <param-value>
  63. classpath*:META-INF/plexus/components.xml
  64. classpath*:META-INF/spring-context.xml
  65. /WEB-INF/classes/META-INF/plexus/application.xml
  66. /WEB-INF/classes/META-INF/plexus/components.xml
  67. /WEB-INF/applicationContext.xml
  68. </param-value>
  69. </context-param>
  70. <servlet>
  71. <servlet-name>RepositoryServlet</servlet-name>
  72. <servlet-class>org.apache.maven.archiva.webdav.RepositoryServlet</servlet-class>
  73. <!-- Loading this on startup so as to take advantage of configuration listeners -->
  74. <load-on-startup>1</load-on-startup>
  75. </servlet>
  76. <servlet>
  77. <servlet-name>RssFeedServlet</servlet-name>
  78. <servlet-class>org.apache.maven.archiva.web.rss.RssFeedServlet</servlet-class>
  79. </servlet>
  80. <servlet-mapping>
  81. <servlet-name>RssFeedServlet</servlet-name>
  82. <url-pattern>/feeds/*</url-pattern>
  83. </servlet-mapping>
  84. <servlet-mapping>
  85. <servlet-name>RepositoryServlet</servlet-name>
  86. <url-pattern>/repository/*</url-pattern>
  87. </servlet-mapping>
  88. <resource-ref>
  89. <res-ref-name>jdbc/users</res-ref-name>
  90. <res-type>javax.sql.DataSource</res-type>
  91. <res-auth>Container</res-auth>
  92. <res-sharing-scope>Shareable</res-sharing-scope>
  93. </resource-ref>
  94. <resource-ref>
  95. <res-ref-name>jdbc/archiva</res-ref-name>
  96. <res-type>javax.sql.DataSource</res-type>
  97. <res-auth>Container</res-auth>
  98. <res-sharing-scope>Shareable</res-sharing-scope>
  99. </resource-ref>
  100. <resource-ref>
  101. <res-ref-name>mail/Session</res-ref-name>
  102. <res-type>javax.mail.Session</res-type>
  103. <res-auth>Container</res-auth>
  104. <res-sharing-scope>Shareable</res-sharing-scope>
  105. </resource-ref>
  106. </web-app>