1 |
<?xml version="1.0" encoding="UTF-8"?> |
2 |
<web-app xmlns="http://java.sun.com/xml/ns/javaee" |
3 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
4 |
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" |
5 |
version="3.0" |
6 |
id="cms"> |
7 |
|
8 |
<!-- General configuration --> |
9 |
<display-name>Restyling Demo CMS</display-name> |
10 |
<description>Restyling Demo CMS</description> |
11 |
|
12 |
<context-param> |
13 |
<description>The address of the repository</description> |
14 |
<param-name>repository-address</param-name> |
15 |
<param-value>vm://</param-value> |
16 |
</context-param> |
17 |
<context-param> |
18 |
<description>The (relative) location where to store files</description> |
19 |
<param-name>repository-directory</param-name> |
20 |
<param-value>WEB-INF/storage</param-value> |
21 |
</context-param> |
22 |
<context-param> |
23 |
<description>The location of the repository configuration file. Unless the location |
24 |
starts with file://, the location is retrieved from within the application package as |
25 |
resource.</description> |
26 |
<param-name>repository-config</param-name> |
27 |
<param-value>repository.xml</param-value> |
28 |
</context-param> |
29 |
|
30 |
<!--No concurrent logins--> |
31 |
<filter> |
32 |
<filter-name>ConcurrentLogin</filter-name> |
33 |
<filter-class>org.hippoecm.frontend.plugins.login.ConcurrentLoginFilter</filter-class> |
34 |
</filter> |
35 |
|
36 |
<!--Default application--> |
37 |
<filter> |
38 |
<filter-name>CMS</filter-name> |
39 |
<filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class> |
40 |
<init-param> |
41 |
<param-name>config</param-name> |
42 |
<param-value>cms</param-value> |
43 |
</init-param> |
44 |
<init-param> |
45 |
<param-name>applicationClassName</param-name> |
46 |
<param-value>org.hippoecm.frontend.Main</param-value> |
47 |
</init-param> |
48 |
<init-param> |
49 |
<param-name>filterMappingUrlPattern</param-name> |
50 |
<param-value>/*</param-value> |
51 |
</init-param> |
52 |
<init-param> |
53 |
<param-name>wicket.configuration</param-name> |
54 |
<param-value>deployment</param-value> |
55 |
</init-param> |
56 |
<init-param> |
57 |
<param-name>repository-address</param-name> |
58 |
<param-value>vm://</param-value> |
59 |
</init-param> |
60 |
<init-param> |
61 |
<param-name>upload-limit</param-name> |
62 |
<param-value>4096k</param-value> |
63 |
</init-param> |
64 |
</filter> |
65 |
|
66 |
<!--Builtin console--> |
67 |
<filter> |
68 |
<filter-name>Console</filter-name> |
69 |
<filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class> |
70 |
<init-param> |
71 |
<param-name>applicationClassName</param-name> |
72 |
<param-value>org.hippoecm.frontend.Main</param-value> |
73 |
</init-param> |
74 |
<init-param> |
75 |
<param-name>config</param-name> |
76 |
<param-value>console</param-value> |
77 |
</init-param> |
78 |
<init-param> |
79 |
<param-name>wicket.configuration</param-name> |
80 |
<param-value>deployment</param-value> |
81 |
</init-param> |
82 |
<init-param> |
83 |
<param-name>repository-address</param-name> |
84 |
<param-value>vm://</param-value> |
85 |
</init-param> |
86 |
</filter> |
87 |
|
88 |
<filter-mapping> |
89 |
<filter-name>ConcurrentLogin</filter-name> |
90 |
<url-pattern>/*</url-pattern> |
91 |
</filter-mapping> |
92 |
|
93 |
<filter-mapping> |
94 |
<filter-name>CMS</filter-name> |
95 |
<url-pattern>/*</url-pattern> |
96 |
</filter-mapping> |
97 |
|
98 |
<filter-mapping> |
99 |
<filter-name>Console</filter-name> |
100 |
<url-pattern>/console/*</url-pattern> |
101 |
</filter-mapping> |
102 |
|
103 |
<listener> |
104 |
<listener-class>org.hippoecm.frontend.plugins.login.ConcurrentLoginListener</listener-class> |
105 |
</listener> |
106 |
|
107 |
<servlet> |
108 |
<servlet-name>AngularResourceServlet</servlet-name> |
109 |
<servlet-class>org.onehippo.cms7.utilities.servlet.ResourceServlet</servlet-class> |
110 |
<init-param> |
111 |
<param-name>jarPathPrefix</param-name> |
112 |
<param-value>/angular</param-value> |
113 |
</init-param> |
114 |
<init-param> |
115 |
<param-name>allowedResourcePaths</param-name> |
116 |
<param-value> |
117 |
^/.*\..* |
118 |
</param-value> |
119 |
</init-param> |
120 |
<init-param> |
121 |
<!-- |
122 |
Cache timeout in seconds. Make sure to increase it in production environments, |
123 |
for example to one day (cacheTimeout = 86400) |
124 |
--> |
125 |
<param-name>cacheTimeout</param-name> |
126 |
<param-value>0</param-value> |
127 |
</init-param> |
128 |
</servlet> |
129 |
|
130 |
<servlet> |
131 |
<servlet-name>CKEditorResourceServlet</servlet-name> |
132 |
<servlet-class>org.onehippo.cms7.utilities.servlet.ResourceServlet</servlet-class> |
133 |
<init-param> |
134 |
<param-name>jarPathPrefix</param-name> |
135 |
<param-value>/ckeditor</param-value> |
136 |
</init-param> |
137 |
<init-param> |
138 |
<param-name>allowedResourcePaths</param-name> |
139 |
<param-value> |
140 |
^/.*\..* |
141 |
</param-value> |
142 |
</init-param> |
143 |
<init-param> |
144 |
<!-- |
145 |
Cache timeout in seconds. Make sure to increase it in production environments, |
146 |
for example to one day (cacheTimeout = 86400) |
147 |
--> |
148 |
<param-name>cacheTimeout</param-name> |
149 |
<param-value>0</param-value> |
150 |
</init-param> |
151 |
</servlet> |
152 |
|
153 |
<servlet> |
154 |
<servlet-name>SkinResourceServlet</servlet-name> |
155 |
<servlet-class>org.onehippo.cms7.utilities.servlet.ResourceServlet</servlet-class> |
156 |
<init-param> |
157 |
<param-name>jarPathPrefix</param-name> |
158 |
<param-value>/skin</param-value> |
159 |
</init-param> |
160 |
<init-param> |
161 |
<param-name>allowedResourcePaths</param-name> |
162 |
<param-value> |
163 |
^/.*\..* |
164 |
</param-value> |
165 |
</init-param> |
166 |
<init-param> |
167 |
<!-- |
168 |
Cache timeout in seconds. Make sure to increase it in production environments, |
169 |
for example to one day (cacheTimeout = 86400) |
170 |
--> |
171 |
<param-name>cacheTimeout</param-name> |
172 |
<param-value>0</param-value> |
173 |
</init-param> |
174 |
</servlet> |
175 |
|
176 |
<servlet> |
177 |
<servlet-name>LoggingServlet</servlet-name> |
178 |
<servlet-class>org.hippoecm.repository.LoggingServlet</servlet-class> |
179 |
<load-on-startup>3</load-on-startup> |
180 |
</servlet> |
181 |
|
182 |
<!-- Repository --> |
183 |
<servlet> |
184 |
<servlet-name>Repository</servlet-name> |
185 |
<servlet-class>org.hippoecm.repository.RepositoryServlet</servlet-class> |
186 |
<load-on-startup>4</load-on-startup> |
187 |
</servlet> |
188 |
|
189 |
<servlet> |
190 |
<servlet-name>PingServlet</servlet-name> |
191 |
<servlet-class>org.hippoecm.repository.PingServlet</servlet-class> |
192 |
<init-param> |
193 |
<param-name>repository-address</param-name> |
194 |
<param-value>vm://</param-value> |
195 |
</init-param> |
196 |
<load-on-startup>5</load-on-startup> |
197 |
</servlet> |
198 |
|
199 |
<servlet-mapping> |
200 |
<servlet-name>LoggingServlet</servlet-name> |
201 |
<url-pattern>/logging/*</url-pattern> |
202 |
</servlet-mapping> |
203 |
|
204 |
<servlet-mapping> |
205 |
<servlet-name>Repository</servlet-name> |
206 |
<url-pattern>/repository/*</url-pattern> |
207 |
</servlet-mapping> |
208 |
|
209 |
<servlet-mapping> |
210 |
<servlet-name>PingServlet</servlet-name> |
211 |
<url-pattern>/ping/</url-pattern> |
212 |
</servlet-mapping> |
213 |
|
214 |
<servlet-mapping> |
215 |
<servlet-name>AngularResourceServlet</servlet-name> |
216 |
<url-pattern>/angular/*</url-pattern> |
217 |
</servlet-mapping> |
218 |
|
219 |
<servlet-mapping> |
220 |
<servlet-name>CKEditorResourceServlet</servlet-name> |
221 |
<url-pattern>/ckeditor/*</url-pattern> |
222 |
</servlet-mapping> |
223 |
|
224 |
<servlet-mapping> |
225 |
<servlet-name>SkinResourceServlet</servlet-name> |
226 |
<url-pattern>/skin/*</url-pattern> |
227 |
</servlet-mapping> |
228 |
|
229 |
<!-- Timeout in minutes --> |
230 |
<session-config> |
231 |
<session-timeout>10</session-timeout> |
232 |
<tracking-mode>COOKIE</tracking-mode> |
233 |
</session-config> |
234 |
|
235 |
<error-page> |
236 |
<error-code>500</error-code> |
237 |
<location>/WEB-INF/error.jsp</location> |
238 |
</error-page> |
239 |
|
240 |
<error-page> |
241 |
<exception-type>java.lang.Throwable</exception-type> |
242 |
<location>/WEB-INF/error.jsp</location> |
243 |
</error-page> |
244 |
|
245 |
<env-entry> |
246 |
<env-entry-name>logging/contextName</env-entry-name> |
247 |
<env-entry-type>java.lang.String</env-entry-type> |
248 |
<env-entry-value>cms</env-entry-value> |
249 |
</env-entry> |
250 |
|
251 |
</web-app> |