View File | Revision Log | Show Annotations | Download File | View Changeset
/hippo/hippo-documentation/hst_docs/trunk/package/tomcat-site/src/main/webapp/WEB-INF/web.xml
Revision: 20305
Committed: Mon Oct 26 12:38:14 2009 UTC (10 years, 3 months ago) by bvdschans
Content type: text/xml
File size: 7952 byte(s)
Log Message:
HSTTWODOCS-151: Create package config for clustering

File Contents

# Content
1 <?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 <!-- Site Context Params -->
35 <context-param>
36 <param-name>log4jConfigLocation</param-name>
37 <param-value>/WEB-INF/classes/log4j.xml</param-value>
38 </context-param>
39 <context-param>
40 <param-name>log4jRefreshInterval</param-name>
41 <param-value>60000</param-value>
42 </context-param>
43 <context-param>
44 <param-name>webAppRootKey</param-name>
45 <param-value>site.root</param-value>
46 </context-param>
47 <!-- END Site Context Params -->
48
49 <!-- Site Listeners -->
50 <listener>
51 <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
52 </listener>
53 <!-- END Site Listeners -->
54
55 <!-- Site Filters -->
56 <filter>
57 <filter-name>HstVirtualHostsFilter</filter-name>
58 <filter-class>org.hippoecm.hst.container.HstVirtualHostsFilter</filter-class>
59 <init-param>
60 <param-name>welcome-page</param-name>
61 <param-value>home</param-value>
62 </init-param>
63 <init-param>
64 <param-name>preview-prefix</param-name>
65 <param-value>/preview</param-value>
66 </init-param>
67 </filter>
68 <filter>
69 <filter-name>charsetFilter</filter-name>
70 <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
71 <init-param>
72 <param-name>encoding</param-name>
73 <param-value>UTF-8</param-value>
74 </init-param>
75 <init-param>
76 <param-name>forceEncoding</param-name>
77 <param-value>true</param-value>
78 </init-param>
79 </filter>
80 <filter-mapping>
81 <filter-name>HstVirtualHostsFilter</filter-name>
82 <url-pattern>/*</url-pattern>
83 <dispatcher>REQUEST</dispatcher>
84 </filter-mapping>
85 <filter-mapping>
86 <filter-name>charsetFilter</filter-name>
87 <url-pattern>/*</url-pattern>
88 </filter-mapping>
89 <!-- END Site Filters -->
90
91 <!-- Repository Servlets -->
92 <servlet>
93 <servlet-name>Repository</servlet-name>
94 <servlet-class>org.hippoecm.repository.RepositoryServlet</servlet-class>
95 <load-on-startup>0</load-on-startup>
96 </servlet>
97 <servlet>
98 <servlet-name>StatusServlet</servlet-name>
99 <servlet-class>org.hippoecm.repository.StatusServlet</servlet-class>
100 <load-on-startup>1</load-on-startup>
101 </servlet>
102 <servlet>
103 <servlet-name>LoggingServlet</servlet-name>
104 <servlet-class>org.hippoecm.repository.LoggingServlet</servlet-class>
105 <load-on-startup>2</load-on-startup>
106 </servlet>
107 <servlet>
108 <servlet-name>PingServlet</servlet-name>
109 <servlet-class>org.hippoecm.repository.PingServlet</servlet-class>
110 <load-on-startup>3</load-on-startup>
111 <init-param>
112 <param-name>repository-address</param-name>
113 <param-value>vm://</param-value>
114 </init-param>
115 </servlet>
116 <!-- END Repository Servlets -->
117
118 <!-- Site Servlets -->
119 <servlet>
120 <servlet-name>HstSiteConfigServlet</servlet-name>
121 <servlet-class>org.hippoecm.hst.site.container.HstSiteConfigServlet</servlet-class>
122 <load-on-startup>3</load-on-startup>
123 </servlet>
124 <servlet>
125 <servlet-name>HstContainerServlet</servlet-name>
126 <servlet-class>org.hippoecm.hst.container.HstContainerServlet</servlet-class>
127 <init-param>
128 <param-name>clientComponentManagerClass</param-name>
129 <param-value>org.hippoecm.hst.component.support.ClientComponentManager</param-value>
130 </init-param>
131 <init-param>
132 <param-name>clientComponentManagerConfigurations</param-name>
133 <param-value>/META-INF/client-assembly/*.xml</param-value>
134 </init-param>
135 <load-on-startup>4</load-on-startup>
136 </servlet>
137 <servlet>
138 <servlet-name>BinariesServlet</servlet-name>
139 <servlet-class>org.hippoecm.hst.servlet.BinariesServlet</servlet-class>
140 <init-param>
141 <param-name>primaryitem</param-name>
142 <param-value>hippogallery:picture</param-value>
143 </init-param>
144 </servlet>
145 <servlet>
146 <servlet-name>StaticResourceServlet</servlet-name>
147 <servlet-class>org.hippoecm.hst.servlet.StaticResourceServlet</servlet-class>
148 </servlet>
149 <!-- END Site Servlets -->
150
151 <!-- Repository Servlet Mappings -->
152 <servlet-mapping>
153 <servlet-name>StatusServlet</servlet-name>
154 <url-pattern>/jvmStatus/*</url-pattern>
155 </servlet-mapping>
156 <servlet-mapping>
157 <servlet-name>LoggingServlet</servlet-name>
158 <url-pattern>/logging/*</url-pattern>
159 </servlet-mapping>
160 <servlet-mapping>
161 <servlet-name>Repository</servlet-name>
162 <url-pattern>/repository/*</url-pattern>
163 </servlet-mapping>
164 <servlet-mapping>
165 <servlet-name>PingServlet</servlet-name>
166 <url-pattern>/ping/*</url-pattern>
167 </servlet-mapping>
168 <!-- END Repository Servlet Mappings -->
169
170 <!-- Site Servlet Mappings -->
171 <servlet-mapping>
172 <servlet-name>HstContainerServlet</servlet-name>
173 <url-pattern>/preview/*</url-pattern>
174 </servlet-mapping>
175 <servlet-mapping>
176 <servlet-name>HstContainerServlet</servlet-name>
177 <url-pattern>/live/*</url-pattern>
178 </servlet-mapping>
179 <servlet-mapping>
180 <servlet-name>BinariesServlet</servlet-name>
181 <url-pattern>/binaries/*</url-pattern>
182 </servlet-mapping>
183 <servlet-mapping>
184 <servlet-name>StaticResourceServlet</servlet-name>
185 <url-pattern>/staticresource/*</url-pattern>
186 </servlet-mapping>
187 <!-- END Site Servlet Mappings -->
188
189 <!-- Site Welcome List -->
190 <welcome-file-list>
191 <welcome-file>index.jsp</welcome-file>
192 </welcome-file-list>
193 <!-- END Site Welcome List -->
194
195 <!-- Site Error Pages -->
196 <error-page>
197 <error-code>404</error-code>
198 <location>/jsp/ErrorPage404.jsp</location>
199 </error-page>
200 <error-page>
201 <error-code>500</error-code>
202 <location>/jsp/ErrorPage500.jsp</location>
203 </error-page>
204 <error-page>
205 <exception-type>org.hippoecm.hst.core.container.ContainerNotFoundException</exception-type>
206 <location>/jsp/ErrorPage404.jsp</location>
207 </error-page>
208 <error-page>
209 <exception-type>java.io.FileNotFoundException</exception-type>
210 <location>/jsp/ErrorPage404.jsp</location>
211 </error-page>
212 <error-page>
213 <exception-type>org.hippoecm.hst.core.container.ContainerException</exception-type>
214 <location>/jsp/ErrorPage500.jsp</location>
215 </error-page>
216 <error-page>
217 <exception-type>Exception</exception-type>
218 <location>/jsp/ErrorPage500.jsp</location>
219 </error-page>
220 <!-- END Site Error Pages -->
221
222 <resource-ref>
223 <res-ref-name>jdbc/repositoryDS</res-ref-name>
224 <res-type>javax.sql.DataSource</res-type>
225 <res-auth>Container</res-auth>
226 </resource-ref>
227
228 <!-- Timeout in minutes -->
229 <session-config>
230 <session-timeout>10</session-timeout>
231 </session-config>
232
233 </web-app>

Properties

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