1 |
bvdschans |
20305 |
<?xml version="1.0" encoding="UTF-8"?> |
2 |
|
|
<!-- |
3 |
|
|
* Copyright 2009 Hippo |
4 |
|
|
* |
5 |
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
6 |
|
|
* you may not use this file except in compliance with the License. |
7 |
|
|
* You may obtain a copy of the License at |
8 |
|
|
* |
9 |
|
|
* http://www.apache.org/licenses/LICENSE-2.0 |
10 |
|
|
* |
11 |
|
|
* Unless required by applicable law or agreed to in writing, software |
12 |
|
|
* distributed under the License is distributed on an "AS IS" BASIS, |
13 |
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
14 |
|
|
* See the License for the specific language governing permissions and |
15 |
|
|
* limitations under the License. |
16 |
|
|
--> |
17 |
|
|
<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.5" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> |
18 |
|
|
<display-name>hst_docs</display-name> |
19 |
|
|
<description>hst_docs website</description> |
20 |
|
|
|
21 |
|
|
<!-- Repository Context Params --> |
22 |
|
|
<context-param> |
23 |
|
|
<param-name>repository-address</param-name> |
24 |
|
|
<param-value>rmi://localhost:1099/hipporepository</param-value> |
25 |
|
|
<description>The address of the repository</description> |
26 |
|
|
</context-param> |
27 |
|
|
<context-param> |
28 |
|
|
<param-name>repository-directory</param-name> |
29 |
|
|
<param-value>/home/site/repository-data</param-value> |
30 |
|
|
<description>The storage location the repository</description> |
31 |
|
|
</context-param> |
32 |
|
|
<!-- END Repository Context Params --> |
33 |
|
|
|
34 |
|
|
<context-param> |
35 |
|
|
<param-name>webAppRootKey</param-name> |
36 |
|
|
<param-value>site.root</param-value> |
37 |
|
|
</context-param> |
38 |
|
|
<!-- END Site Context Params --> |
39 |
|
|
|
40 |
|
|
<!-- Site Filters --> |
41 |
|
|
<filter> |
42 |
bvdschans |
20599 |
<filter-name>charsetFilter</filter-name> |
43 |
|
|
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class> |
44 |
|
|
<init-param> |
45 |
|
|
<param-name>encoding</param-name> |
46 |
|
|
<param-value>UTF-8</param-value> |
47 |
|
|
</init-param> |
48 |
|
|
<init-param> |
49 |
|
|
<param-name>forceEncoding</param-name> |
50 |
|
|
<param-value>true</param-value> |
51 |
|
|
</init-param> |
52 |
|
|
</filter> |
53 |
|
|
<filter> |
54 |
|
|
<filter-name>AuthFilter</filter-name> |
55 |
|
|
<filter-class>org.onehippo.forge.authfilter.BasicAuthenticationFilter</filter-class> |
56 |
|
|
<init-param> |
57 |
|
|
<param-name>realm</param-name> |
58 |
|
|
<param-value>Docs Site Preview</param-value> |
59 |
|
|
</init-param> |
60 |
|
|
<init-param> |
61 |
|
|
<param-name>cache-period</param-name> |
62 |
|
|
<param-value>120000</param-value> |
63 |
|
|
</init-param> |
64 |
|
|
<init-param> |
65 |
|
|
<param-name>check-path</param-name> |
66 |
|
|
<param-value>/content/documents</param-value> |
67 |
|
|
</init-param> |
68 |
|
|
<init-param> |
69 |
|
|
<param-name>check-privileges</param-name> |
70 |
|
|
<param-value>hippo:author</param-value> |
71 |
|
|
</init-param> |
72 |
|
|
</filter> |
73 |
|
|
<filter> |
74 |
bvdschans |
20305 |
<filter-name>HstVirtualHostsFilter</filter-name> |
75 |
|
|
<filter-class>org.hippoecm.hst.container.HstVirtualHostsFilter</filter-class> |
76 |
|
|
<init-param> |
77 |
|
|
<param-name>welcome-page</param-name> |
78 |
bvdschans |
20595 |
<param-value>home.html</param-value> |
79 |
bvdschans |
20305 |
</init-param> |
80 |
|
|
<init-param> |
81 |
|
|
<param-name>preview-prefix</param-name> |
82 |
|
|
<param-value>/preview</param-value> |
83 |
|
|
</init-param> |
84 |
|
|
</filter> |
85 |
bvdschans |
20599 |
|
86 |
|
|
<filter-mapping> |
87 |
bvdschans |
20305 |
<filter-name>charsetFilter</filter-name> |
88 |
bvdschans |
20599 |
<url-pattern>/*</url-pattern> |
89 |
|
|
</filter-mapping> |
90 |
bvdschans |
20305 |
<filter-mapping> |
91 |
bvdschans |
20599 |
<filter-name>AuthFilter</filter-name> |
92 |
|
|
<url-pattern>/preview/*</url-pattern> |
93 |
|
|
</filter-mapping> |
94 |
|
|
<filter-mapping> |
95 |
bvdschans |
20305 |
<filter-name>HstVirtualHostsFilter</filter-name> |
96 |
|
|
<url-pattern>/*</url-pattern> |
97 |
|
|
<dispatcher>REQUEST</dispatcher> |
98 |
|
|
</filter-mapping> |
99 |
|
|
<!-- END Site Filters --> |
100 |
|
|
|
101 |
|
|
<!-- Repository Servlets --> |
102 |
|
|
<servlet> |
103 |
|
|
<servlet-name>Repository</servlet-name> |
104 |
|
|
<servlet-class>org.hippoecm.repository.RepositoryServlet</servlet-class> |
105 |
|
|
<load-on-startup>0</load-on-startup> |
106 |
|
|
</servlet> |
107 |
|
|
<servlet> |
108 |
|
|
<servlet-name>StatusServlet</servlet-name> |
109 |
|
|
<servlet-class>org.hippoecm.repository.StatusServlet</servlet-class> |
110 |
|
|
<load-on-startup>1</load-on-startup> |
111 |
|
|
</servlet> |
112 |
|
|
<servlet> |
113 |
|
|
<servlet-name>LoggingServlet</servlet-name> |
114 |
|
|
<servlet-class>org.hippoecm.repository.LoggingServlet</servlet-class> |
115 |
|
|
<load-on-startup>2</load-on-startup> |
116 |
|
|
</servlet> |
117 |
|
|
<servlet> |
118 |
|
|
<servlet-name>PingServlet</servlet-name> |
119 |
|
|
<servlet-class>org.hippoecm.repository.PingServlet</servlet-class> |
120 |
|
|
<load-on-startup>3</load-on-startup> |
121 |
|
|
<init-param> |
122 |
|
|
<param-name>repository-address</param-name> |
123 |
|
|
<param-value>vm://</param-value> |
124 |
|
|
</init-param> |
125 |
|
|
</servlet> |
126 |
|
|
<!-- END Repository Servlets --> |
127 |
|
|
|
128 |
|
|
<!-- Site Servlets --> |
129 |
|
|
<servlet> |
130 |
|
|
<servlet-name>HstSiteConfigServlet</servlet-name> |
131 |
|
|
<servlet-class>org.hippoecm.hst.site.container.HstSiteConfigServlet</servlet-class> |
132 |
|
|
<load-on-startup>3</load-on-startup> |
133 |
|
|
</servlet> |
134 |
|
|
<servlet> |
135 |
|
|
<servlet-name>HstContainerServlet</servlet-name> |
136 |
|
|
<servlet-class>org.hippoecm.hst.container.HstContainerServlet</servlet-class> |
137 |
|
|
<init-param> |
138 |
|
|
<param-name>clientComponentManagerClass</param-name> |
139 |
|
|
<param-value>org.hippoecm.hst.component.support.ClientComponentManager</param-value> |
140 |
|
|
</init-param> |
141 |
|
|
<init-param> |
142 |
|
|
<param-name>clientComponentManagerConfigurations</param-name> |
143 |
|
|
<param-value>/META-INF/client-assembly/*.xml</param-value> |
144 |
|
|
</init-param> |
145 |
|
|
<load-on-startup>4</load-on-startup> |
146 |
|
|
</servlet> |
147 |
|
|
<servlet> |
148 |
|
|
<servlet-name>BinariesServlet</servlet-name> |
149 |
|
|
<servlet-class>org.hippoecm.hst.servlet.BinariesServlet</servlet-class> |
150 |
|
|
<init-param> |
151 |
|
|
<param-name>primaryitem</param-name> |
152 |
|
|
<param-value>hippogallery:picture</param-value> |
153 |
|
|
</init-param> |
154 |
|
|
</servlet> |
155 |
|
|
<servlet> |
156 |
|
|
<servlet-name>StaticResourceServlet</servlet-name> |
157 |
|
|
<servlet-class>org.hippoecm.hst.servlet.StaticResourceServlet</servlet-class> |
158 |
|
|
</servlet> |
159 |
|
|
<!-- END Site Servlets --> |
160 |
|
|
|
161 |
|
|
<!-- Repository Servlet Mappings --> |
162 |
|
|
<servlet-mapping> |
163 |
|
|
<servlet-name>StatusServlet</servlet-name> |
164 |
|
|
<url-pattern>/jvmStatus/*</url-pattern> |
165 |
|
|
</servlet-mapping> |
166 |
|
|
<servlet-mapping> |
167 |
|
|
<servlet-name>LoggingServlet</servlet-name> |
168 |
|
|
<url-pattern>/logging/*</url-pattern> |
169 |
|
|
</servlet-mapping> |
170 |
|
|
<servlet-mapping> |
171 |
|
|
<servlet-name>Repository</servlet-name> |
172 |
|
|
<url-pattern>/repository/*</url-pattern> |
173 |
|
|
</servlet-mapping> |
174 |
|
|
<servlet-mapping> |
175 |
|
|
<servlet-name>PingServlet</servlet-name> |
176 |
|
|
<url-pattern>/ping/*</url-pattern> |
177 |
|
|
</servlet-mapping> |
178 |
|
|
<!-- END Repository Servlet Mappings --> |
179 |
|
|
|
180 |
|
|
<!-- Site Servlet Mappings --> |
181 |
|
|
<servlet-mapping> |
182 |
|
|
<servlet-name>HstContainerServlet</servlet-name> |
183 |
|
|
<url-pattern>/preview/*</url-pattern> |
184 |
|
|
</servlet-mapping> |
185 |
|
|
<servlet-mapping> |
186 |
|
|
<servlet-name>HstContainerServlet</servlet-name> |
187 |
|
|
<url-pattern>/live/*</url-pattern> |
188 |
|
|
</servlet-mapping> |
189 |
|
|
<servlet-mapping> |
190 |
|
|
<servlet-name>BinariesServlet</servlet-name> |
191 |
|
|
<url-pattern>/binaries/*</url-pattern> |
192 |
|
|
</servlet-mapping> |
193 |
|
|
<servlet-mapping> |
194 |
|
|
<servlet-name>StaticResourceServlet</servlet-name> |
195 |
|
|
<url-pattern>/staticresource/*</url-pattern> |
196 |
|
|
</servlet-mapping> |
197 |
|
|
<!-- END Site Servlet Mappings --> |
198 |
|
|
|
199 |
|
|
<!-- Site Welcome List --> |
200 |
|
|
<welcome-file-list> |
201 |
|
|
<welcome-file>index.jsp</welcome-file> |
202 |
|
|
</welcome-file-list> |
203 |
|
|
<!-- END Site Welcome List --> |
204 |
|
|
|
205 |
|
|
<!-- Site Error Pages --> |
206 |
|
|
<error-page> |
207 |
|
|
<error-code>404</error-code> |
208 |
|
|
<location>/jsp/ErrorPage404.jsp</location> |
209 |
|
|
</error-page> |
210 |
|
|
<error-page> |
211 |
|
|
<error-code>500</error-code> |
212 |
|
|
<location>/jsp/ErrorPage500.jsp</location> |
213 |
|
|
</error-page> |
214 |
|
|
<error-page> |
215 |
|
|
<exception-type>org.hippoecm.hst.core.container.ContainerNotFoundException</exception-type> |
216 |
|
|
<location>/jsp/ErrorPage404.jsp</location> |
217 |
|
|
</error-page> |
218 |
|
|
<error-page> |
219 |
|
|
<exception-type>java.io.FileNotFoundException</exception-type> |
220 |
|
|
<location>/jsp/ErrorPage404.jsp</location> |
221 |
|
|
</error-page> |
222 |
|
|
<error-page> |
223 |
|
|
<exception-type>org.hippoecm.hst.core.container.ContainerException</exception-type> |
224 |
|
|
<location>/jsp/ErrorPage500.jsp</location> |
225 |
|
|
</error-page> |
226 |
|
|
<error-page> |
227 |
|
|
<exception-type>Exception</exception-type> |
228 |
|
|
<location>/jsp/ErrorPage500.jsp</location> |
229 |
|
|
</error-page> |
230 |
|
|
<!-- END Site Error Pages --> |
231 |
|
|
|
232 |
bvdschans |
20587 |
<jsp-config> |
233 |
|
|
<jsp-property-group> |
234 |
|
|
<url-pattern>*.jsp</url-pattern> |
235 |
|
|
<page-encoding>UTF-8</page-encoding> |
236 |
jreijn |
21770 |
<is-xml>true</is-xml> |
237 |
bvdschans |
20587 |
<trim-directive-whitespaces>true</trim-directive-whitespaces> |
238 |
|
|
</jsp-property-group> |
239 |
|
|
</jsp-config> |
240 |
|
|
|
241 |
bvdschans |
20305 |
<resource-ref> |
242 |
|
|
<res-ref-name>jdbc/repositoryDS</res-ref-name> |
243 |
|
|
<res-type>javax.sql.DataSource</res-type> |
244 |
|
|
<res-auth>Container</res-auth> |
245 |
|
|
</resource-ref> |
246 |
|
|
|
247 |
|
|
<!-- Timeout in minutes --> |
248 |
|
|
<session-config> |
249 |
|
|
<session-timeout>10</session-timeout> |
250 |
|
|
</session-config> |
251 |
|
|
|
252 |
|
|
</web-app> |