View File | Revision Log | Show Annotations | Download File | View Changeset
/hippo/hippo-collab/trunk/site/src/main/webapp/WEB-INF/web.xml
Revision: 23113
Committed: Fri Jun 11 15:38:24 2010 UTC (10 years, 4 months ago) by wko
Content type: text/xml
File size: 8321 byte(s)
Log Message:
CCPOC-5: Adding JAAS Login configuration and login page.

File Contents

# Content
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <!--
3 Copyright 2008 Hippo Licensed under the Apache License, Version 2.0
4 (the "License"); you may not use this file except in compliance with
5 the License. You may obtain a copy of the License at
6
7 http://www.apache.org/licenses/LICENSE-2.0 Unless required by
8 applicable law or agreed to in writing, software distributed under
9 the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
10 OR CONDITIONS OF ANY KIND, either express or implied. See the
11 License for the specific language governing permissions and
12 limitations under the License.
13 -->
14 <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
15 version="2.4"
16 xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
17 <display-name>WIKI Web Application</display-name>
18
19 <filter>
20 <filter-name>CharacterEncodingFilter</filter-name>
21 <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
22 <init-param>
23 <param-name>encoding</param-name>
24 <param-value>UTF-8</param-value>
25 </init-param>
26 <init-param>
27 <param-name>forceEncoding</param-name>
28 <param-value>true</param-value>
29 </init-param>
30 </filter>
31
32 <filter>
33 <filter-name>HstVirtualHostsFilter</filter-name>
34 <filter-class>org.hippoecm.hst.container.HstVirtualHostsFilter</filter-class>
35 <init-param>
36 <param-name>welcome-page</param-name>
37 <param-value>home</param-value>
38 </init-param>
39 <init-param>
40 <param-name>preview-prefix</param-name>
41 <param-value>/preview</param-value>
42 </init-param>
43 </filter>
44
45 <filter-mapping>
46 <filter-name>CharacterEncodingFilter</filter-name>
47 <url-pattern>/*</url-pattern>
48 <dispatcher>REQUEST</dispatcher>
49 </filter-mapping>
50
51 <filter-mapping>
52 <filter-name>HstVirtualHostsFilter</filter-name>
53 <url-pattern>/*</url-pattern>
54 <dispatcher>REQUEST</dispatcher>
55 </filter-mapping>
56
57 <servlet>
58 <servlet-name>LoginProxyServlet</servlet-name>
59 <servlet-class>org.onehippo.forge.servlets.LoginProxyServlet</servlet-class>
60 </servlet>
61
62 <servlet>
63 <servlet-name>LoginRedirectorServlet</servlet-name>
64 <servlet-class>org.onehippo.forge.servlets.LoginRedirectorServlet</servlet-class>
65 </servlet>
66
67 <servlet>
68 <servlet-name>LoginServlet</servlet-name>
69 <servlet-class>org.onehippo.forge.servlets.LoginServlet</servlet-class>
70 </servlet>
71
72 <servlet>
73 <servlet-name>LogoutServlet</servlet-name>
74 <servlet-class>org.onehippo.forge.servlets.LogoutServlet</servlet-class>
75 </servlet>
76
77 <servlet>
78 <servlet-name>HstSiteConfigServlet</servlet-name>
79 <servlet-class>org.hippoecm.hst.site.container.HstSiteConfigServlet</servlet-class>
80 <load-on-startup>1</load-on-startup>
81 </servlet>
82
83 <servlet>
84 <servlet-name>HstContainerServlet</servlet-name>
85 <servlet-class>org.hippoecm.hst.container.HstContainerServlet</servlet-class>
86 <init-param>
87 <param-name>clientComponentManagerClass</param-name>
88 <param-value>org.hippoecm.hst.component.support.ClientComponentManager</param-value>
89 </init-param>
90 <init-param>
91 <param-name>clientComponentManagerConfigurations</param-name>
92 <param-value>/META-INF/client-assembly/*.xml</param-value>
93 </init-param>
94 <load-on-startup>2</load-on-startup>
95 </servlet>
96
97 <servlet>
98 <servlet-name>HstJaxrsContainerServlet</servlet-name>
99 <servlet-class>org.hippoecm.hst.container.HstContainerServlet</servlet-class>
100 <init-param>
101 <param-name>hstDefaultPipeline</param-name>
102 <param-value>JaxrsPipeline</param-value>
103 </init-param>
104 <load-on-startup>3</load-on-startup>
105 </servlet>
106
107 <servlet>
108 <servlet-name>BinariesServlet</servlet-name>
109 <servlet-class>org.hippoecm.hst.servlet.BinariesServlet</servlet-class>
110 <!--
111 If you are not using hippogallery:exampleImageSet you might want
112 to define your own primaryitem location. If you leave away the
113 primaryitem altogether, then, when the binary location is not
114 pointing at an actual jcr resource, we'll try to serve the jcr
115 primaryitem in case this points to a resource. For assets, we'll
116 serve the primay item as there won't be a hippogallery:picture for
117 an asset
118 -->
119 <init-param>
120 <param-name>primaryitem</param-name>
121 <param-value>hippogallery:picture</param-value>
122 </init-param>
123 </servlet>
124
125 <servlet>
126 <servlet-name>YUIResourceServlet</servlet-name>
127 <servlet-class>org.springframework.js.resource.ResourceServlet</servlet-class>
128 <init-param>
129 <param-name>jarPathPrefix</param-name>
130 <param-value>/org/onehippo/yui/inc/2.7.0</param-value>
131 </init-param>
132 </servlet>
133
134 <servlet-mapping>
135 <servlet-name>LoginRedirectorServlet</servlet-name>
136 <url-pattern>/login/redirector</url-pattern>
137 </servlet-mapping>
138
139 <servlet-mapping>
140 <servlet-name>LoginProxyServlet</servlet-name>
141 <url-pattern>/login/proxy</url-pattern>
142 </servlet-mapping>
143
144 <servlet-mapping>
145 <servlet-name>LoginServlet</servlet-name>
146 <url-pattern>/login/login</url-pattern>
147 </servlet-mapping>
148
149 <servlet-mapping>
150 <servlet-name>LogoutServlet</servlet-name>
151 <url-pattern>/logout</url-pattern>
152 </servlet-mapping>
153
154 <servlet-mapping>
155 <servlet-name>HstJaxrsContainerServlet</servlet-name>
156 <url-pattern>/live/services/*</url-pattern>
157 </servlet-mapping>
158
159 <servlet-mapping>
160 <servlet-name>HstJaxrsContainerServlet</servlet-name>
161 <url-pattern>/preview/services/*</url-pattern>
162 </servlet-mapping>
163
164 <servlet-mapping>
165 <servlet-name>HstContainerServlet</servlet-name>
166 <url-pattern>/preview/*</url-pattern>
167 </servlet-mapping>
168
169 <servlet-mapping>
170 <servlet-name>HstContainerServlet</servlet-name>
171 <url-pattern>/live/*</url-pattern>
172 </servlet-mapping>
173
174 <servlet-mapping>
175 <servlet-name>BinariesServlet</servlet-name>
176 <url-pattern>/binaries/*</url-pattern>
177 </servlet-mapping>
178
179 <servlet-mapping>
180 <servlet-name>YUIResourceServlet</servlet-name>
181 <url-pattern>/javascript/yui/*</url-pattern>
182 </servlet-mapping>
183
184 <!-- The Usual Welcome File List -->
185 <welcome-file-list>
186 <welcome-file>index.jsp</welcome-file>
187 </welcome-file-list>
188
189 <error-page>
190 <error-code>404</error-code>
191 <location>/WEB-INF/jsp/errorpages/ErrorPage404.jsp</location>
192 </error-page>
193
194 <error-page>
195 <error-code>500</error-code>
196 <location>/WEB-INF/jsp/errorpages/ErrorPage500.jsp</location>
197 </error-page>
198
199 <error-page>
200 <exception-type>org.hippoecm.hst.core.container.ContainerNotFoundException</exception-type>
201 <location>/WEB-INF/jsp/errorpages/ErrorPage404.jsp</location>
202 </error-page>
203
204 <error-page>
205 <exception-type>java.io.FileNotFoundException</exception-type>
206 <location>/WEB-INF/jsp/errorpages/ErrorPage404.jsp</location>
207 </error-page>
208
209 <error-page>
210 <exception-type>org.hippoecm.hst.core.container.ContainerException</exception-type>
211 <location>/WEB-INF/jsp/errorpages/ErrorPage500.jsp</location>
212 </error-page>
213
214 <error-page>
215 <exception-type>Exception</exception-type>
216 <location>/WEB-INF/jsp/errorpages/ErrorPage500.jsp</location>
217 </error-page>
218
219 <security-constraint>
220 <web-resource-collection>
221 <web-resource-name>Login</web-resource-name>
222 <url-pattern>/login/redirector</url-pattern>
223 </web-resource-collection>
224 <auth-constraint>
225 <role-name>everybody</role-name>
226 </auth-constraint>
227 </security-constraint>
228
229 <login-config>
230 <auth-method>FORM</auth-method>
231 <realm-name>HSTSITE</realm-name>
232 <form-login-config>
233 <form-login-page>/login/login</form-login-page>
234 <form-error-page>/WEB-INF/jsp/login-failure.jsp</form-error-page>
235 </form-login-config>
236 </login-config>
237
238 <security-role>
239 <description>Default role of CMS</description>
240 <role-name>everybody</role-name>
241 </security-role>
242
243 <jsp-config>
244 <!-- This taglib definition is required if you want to use JSP taglibs in freemarker templates. -->
245 <taglib>
246 <taglib-uri>http://www.hippoecm.org/jsp/hst/core</taglib-uri>
247 <taglib-location>/WEB-INF/hst-core.tld</taglib-location>
248 </taglib>
249 </jsp-config>
250
251 </web-app>
252

Properties

Name Value
svn:keywords Id