View File | Revision Log | Show Annotations | Download File | View Changeset
/hippo/hippo-demos/hippo-go-green/trunk/cms/src/main/webapp/WEB-INF/web.xml
Revision: 47635
Committed: Wed Dec 17 10:32:07 2014 UTC (7 years, 11 months ago) by uhommes
Content type: text/xml
File size: 8539 byte(s)
Log Message:
CMS7-8579 upgrade to servlet spec 3.0

File Contents

# Content
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3
4 Copyright 2010-2013 Hippo B.V. (http://www.onehippo.com)
5
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17
18 -->
19 <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
20 xmlns="http://java.sun.com/xml/ns/javaee"
21 xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
22 version="3.0" id="cms">
23
24 <!-- General configuration -->
25 <display-name>Hippo CMS WAR package</display-name>
26 <description>Hippo CMS WAR package</description>
27
28 <context-param>
29 <description>The address of the repository</description>
30 <param-name>repository-address</param-name>
31 <param-value>rmi://localhost:1099/hipporepository</param-value>
32 </context-param>
33 <context-param>
34 <description>The (relative) location where to store files</description>
35 <param-name>repository-directory</param-name>
36 <param-value>WEB-INF/storage</param-value>
37 </context-param>
38 <context-param>
39 <description>The location of the repository configuration file. Unless the location
40 starts with file://, the location is retrieved from within the application package as
41 resource.</description>
42 <param-name>repository-config</param-name>
43 <param-value>repository.xml</param-value>
44 </context-param>
45
46 <!--No concurrent logins-->
47 <filter>
48 <filter-name>ConcurrentLogin</filter-name>
49 <filter-class>org.hippoecm.frontend.plugins.login.ConcurrentLoginFilter</filter-class>
50 </filter>
51
52 <!--Default application-->
53 <filter>
54 <filter-name>CMS</filter-name>
55 <filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class>
56 <init-param>
57 <param-name>applicationClassName</param-name>
58 <param-value>org.hippoecm.frontend.Main</param-value>
59 </init-param>
60 <init-param>
61 <param-name>filterMappingUrlPattern</param-name>
62 <param-value>/*</param-value>
63 </init-param>
64 <init-param>
65 <param-name>wicket.configuration</param-name>
66 <param-value>deployment</param-value>
67 </init-param>
68 <init-param>
69 <param-name>upload-limit</param-name>
70 <param-value>4096k</param-value>
71 </init-param>
72 <init-param>
73 <param-name>repository-address</param-name>
74 <param-value>vm://</param-value>
75 </init-param>
76 </filter>
77
78 <!--Builtin console-->
79 <filter>
80 <filter-name>Console</filter-name>
81 <filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class>
82 <init-param>
83 <param-name>applicationClassName</param-name>
84 <param-value>org.hippoecm.frontend.Main</param-value>
85 </init-param>
86 <init-param>
87 <param-name>config</param-name>
88 <param-value>console</param-value>
89 </init-param>
90 <init-param>
91 <param-name>wicket.configuration</param-name>
92 <param-value>deployment</param-value>
93 </init-param>
94 <init-param>
95 <param-name>repository-address</param-name>
96 <param-value>vm://</param-value>
97 </init-param>
98 </filter>
99
100 <filter-mapping>
101 <filter-name>ConcurrentLogin</filter-name>
102 <url-pattern>/*</url-pattern>
103 </filter-mapping>
104
105 <filter-mapping>
106 <filter-name>CMS</filter-name>
107 <url-pattern>/*</url-pattern>
108 </filter-mapping>
109
110 <filter-mapping>
111 <filter-name>Console</filter-name>
112 <url-pattern>/console/*</url-pattern>
113 </filter-mapping>
114
115 <listener>
116 <listener-class>org.hippoecm.frontend.plugins.login.ConcurrentLoginListener</listener-class>
117 </listener>
118
119 <servlet>
120 <servlet-name>AngularResourceServlet</servlet-name>
121 <servlet-class>org.onehippo.cms7.utilities.servlet.ResourceServlet</servlet-class>
122 <init-param>
123 <param-name>jarPathPrefix</param-name>
124 <param-value>/angular</param-value>
125 </init-param>
126 <init-param>
127 <param-name>allowedResourcePaths</param-name>
128 <param-value>
129 ^/.*\..*
130 </param-value>
131 </init-param>
132 <init-param>
133 <param-name>cacheTimeout</param-name>
134 <param-value>0</param-value>
135 </init-param>
136 </servlet>
137
138 <servlet>
139 <servlet-name>CKEditorResourceServlet</servlet-name>
140 <servlet-class>org.onehippo.cms7.utilities.servlet.ResourceServlet</servlet-class>
141 <init-param>
142 <param-name>jarPathPrefix</param-name>
143 <param-value>/ckeditor</param-value>
144 </init-param>
145 <init-param>
146 <param-name>allowedResourcePaths</param-name>
147 <param-value>
148 ^/.*\..*
149 </param-value>
150 </init-param>
151 <init-param>
152 <param-name>cacheTimeout</param-name>
153 <param-value>0</param-value>
154 </init-param>
155 </servlet>
156
157 <servlet>
158 <servlet-name>SkinResourceServlet</servlet-name>
159 <servlet-class>org.onehippo.cms7.utilities.servlet.ResourceServlet</servlet-class>
160 <init-param>
161 <param-name>jarPathPrefix</param-name>
162 <param-value>/skin</param-value>
163 </init-param>
164 <init-param>
165 <param-name>allowedResourcePaths</param-name>
166 <param-value>
167 ^/.*\..*
168 </param-value>
169 </init-param>
170 <init-param>
171 <param-name>cacheTimeout</param-name>
172 <param-value>0</param-value>
173 </init-param>
174 </servlet>
175
176 <servlet>
177 <servlet-name>StatusServlet</servlet-name>
178 <servlet-class>org.hippoecm.repository.StatusServlet</servlet-class>
179 <load-on-startup>2</load-on-startup>
180 </servlet>
181
182 <servlet>
183 <servlet-name>LoggingServlet</servlet-name>
184 <servlet-class>org.hippoecm.repository.LoggingServlet</servlet-class>
185 <load-on-startup>3</load-on-startup>
186 </servlet>
187
188 <!-- Repository -->
189 <servlet>
190 <servlet-name>Repository</servlet-name>
191 <servlet-class>org.hippoecm.repository.RepositoryServlet</servlet-class>
192 <load-on-startup>4</load-on-startup>
193 </servlet>
194
195 <servlet>
196 <servlet-name>PingServlet</servlet-name>
197 <servlet-class>org.hippoecm.repository.PingServlet</servlet-class>
198 <init-param>
199 <param-name>repository-address</param-name>
200 <param-value>vm://</param-value>
201 </init-param>
202 <load-on-startup>5</load-on-startup>
203 </servlet>
204
205 <servlet-mapping>
206 <servlet-name>StatusServlet</servlet-name>
207 <url-pattern>/status/*</url-pattern>
208 </servlet-mapping>
209
210 <servlet-mapping>
211 <servlet-name>LoggingServlet</servlet-name>
212 <url-pattern>/logging/*</url-pattern>
213 </servlet-mapping>
214
215 <servlet-mapping>
216 <servlet-name>Repository</servlet-name>
217 <url-pattern>/repository/*</url-pattern>
218 </servlet-mapping>
219
220 <servlet-mapping>
221 <servlet-name>PingServlet</servlet-name>
222 <url-pattern>/ping/</url-pattern>
223 </servlet-mapping>
224
225 <servlet-mapping>
226 <servlet-name>AngularResourceServlet</servlet-name>
227 <url-pattern>/angular/*</url-pattern>
228 </servlet-mapping>
229
230 <servlet-mapping>
231 <servlet-name>CKEditorResourceServlet</servlet-name>
232 <url-pattern>/ckeditor/*</url-pattern>
233 </servlet-mapping>
234
235 <servlet-mapping>
236 <servlet-name>SkinResourceServlet</servlet-name>
237 <url-pattern>/skin/*</url-pattern>
238 </servlet-mapping>
239
240 <!-- Timeout in minutes -->
241 <session-config>
242 <session-timeout>60</session-timeout>
243 <tracking-mode>COOKIE</tracking-mode>
244 </session-config>
245
246 <!--
247 <resource-ref>
248 <res-ref-name>jdbc/hreptwo</res-ref-name>
249 <res-type>javax.sql.DataSource</res-type>
250 <res-auth>Container</res-auth>
251 </resource-ref>
252 -->
253
254 <error-page>
255 <error-code>500</error-code>
256 <location>/WEB-INF/error.jsp</location>
257 </error-page>
258
259 <error-page>
260 <exception-type>java.lang.Throwable</exception-type>
261 <location>/WEB-INF/error.jsp</location>
262 </error-page>
263
264 </web-app>

Properties

Name Value
svn:eol-style native
svn:keywords Id