/src/main/webapp/WEB-INF/web.xml

http://thoughtsite.googlecode.com/ · XML · 139 lines · 91 code · 21 blank · 27 comment · 0 complexity · 4a656faf8539dac7a9c9dcfd7f323229 MD5 · raw file

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
  4. xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
  5. http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
  6. version="2.5">
  7. <!--
  8. - Location of the XML file that defines the root application context.
  9. - Applied by ContextLoaderServlet. - - Can be set to different xml
  10. files - for different implementations
  11. -->
  12. <!--
  13. filter> <filter-name>authentication</filter-name>
  14. <filter-class>com.google.ie.web.filter.AuthenticationFilter</filter-class>
  15. <init-param> <param-name>accessToken</param-name>
  16. <param-value>Incubator25</param-value> </init-param> <init-param>
  17. <param-name>exclusionURLs</param-name>
  18. <param-value>audits/save,indexer/index,indexer/indexentity,mail/joinProject,mail/singleMail,tags/incrementweight,tags/decrementweight,objectionable/check,objectionable/worker,users/register-mail,users/authenticate</param-value>
  19. </init-param> </filter>
  20. -->
  21. <listener>
  22. <listener-class>com.google.step2.servlet.GuiceServletContextListener</listener-class>
  23. </listener>
  24. <!-- configuration -->
  25. <!--
  26. If you have your own Guice module(s), put them here as a
  27. comma-separated list.
  28. -->
  29. <context-param>
  30. <param-name>guice-modules</param-name>
  31. <param-value>
  32. com.google.ie.common.openid.GuiceModule
  33. </param-value>
  34. </context-param>
  35. <filter>
  36. <filter-name>sitemesh</filter-name>
  37. <filter-class>com.opensymphony.module.sitemesh.filter.PageFilter</filter-class>
  38. </filter>
  39. <context-param>
  40. <param-name>contextConfigLocation</param-name>
  41. <param-value>/WEB-INF/applicationContext.xml</param-value>
  42. </context-param>
  43. <!--
  44. - Loads the root application context of this web app at startup, - by
  45. default from "/WEB-INF/applicationContext.xml".
  46. -->
  47. <!--
  48. filter-mapping> <filter-name>authentication</filter-name>
  49. <url-pattern>/*</url-pattern> </filter-mapping>
  50. -->
  51. <filter-mapping>
  52. <filter-name>sitemesh</filter-name>
  53. <url-pattern>/*</url-pattern>
  54. <dispatcher>REQUEST</dispatcher>
  55. <dispatcher>FORWARD</dispatcher>
  56. </filter-mapping>
  57. <servlet>
  58. <servlet-name>default</servlet-name>
  59. <servlet-class>org.mortbay.jetty.servlet.DefaultServlet</servlet-class>
  60. </servlet>
  61. <servlet>
  62. <servlet-name>LoginServlet</servlet-name>
  63. <servlet-class>com.google.ie.web.servlet.LoginServlet</servlet-class>
  64. </servlet>
  65. <servlet>
  66. <servlet-name>CheckAuth</servlet-name>
  67. <servlet-class>com.google.ie.web.servlet.CheckAuthServlet</servlet-class>
  68. </servlet>
  69. <servlet>
  70. <servlet-name>ideasexchange</servlet-name>
  71. <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
  72. <init-param>
  73. <param-name>contextConfigLocation</param-name>
  74. <param-value>/WEB-INF/applicationContext.xml</param-value>
  75. </init-param>
  76. <load-on-startup>1</load-on-startup>
  77. </servlet>
  78. <servlet-mapping>
  79. <servlet-name>LoginServlet</servlet-name>
  80. <url-pattern>/login</url-pattern>
  81. </servlet-mapping>
  82. <servlet-mapping>
  83. <servlet-name>CheckAuth</servlet-name>
  84. <url-pattern>/checkauth</url-pattern>
  85. </servlet-mapping>
  86. <servlet-mapping>
  87. <servlet-name>default</servlet-name>
  88. <url-pattern>/favicon.ico</url-pattern>
  89. </servlet-mapping>
  90. <servlet-mapping>
  91. <servlet-name>ideasexchange</servlet-name>
  92. <url-pattern>/</url-pattern>
  93. </servlet-mapping>
  94. <error-page>
  95. <error-code>403</error-code>
  96. <location>/WEB-INF/jsp/error/error403.jsp</location>
  97. </error-page>
  98. <error-page>
  99. <error-code>404</error-code>
  100. <location>/WEB-INF/jsp/error/error404.jsp</location>
  101. </error-page>
  102. <error-page>
  103. <error-code>408</error-code>
  104. <location>/WEB-INF/jsp/error/error408.jsp</location>
  105. </error-page>
  106. <error-page>
  107. <error-code>500</error-code>
  108. <location>/WEB-INF/jsp/error/error500.jsp</location>
  109. </error-page>
  110. <error-page>
  111. <error-code>503</error-code>
  112. <location>/WEB-INF/jsp/error/error503.jsp</location>
  113. </error-page>
  114. <error-page>
  115. <exception-type>java.lang.Exception</exception-type>
  116. <location>/WEB-INF/jsp/error/general-error.jsp</location>
  117. </error-page>
  118. </web-app>