PageRenderTime 24ms CodeModel.GetById 19ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

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