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 |
---|
5 | http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" |
---|
6 | version="2.5"> |
---|
7 | |
---|
8 | <!-- |
---|
9 | $Id: web.xml 5479 2010-11-08 07:33:46Z nicklas $ |
---|
10 | |
---|
11 | Copyright (C) 2006, 2007 Nicklas Nordborg |
---|
12 | |
---|
13 | This file is part of BASE - BioArray Software Environment. |
---|
14 | Available at http://base.thep.lu.se/ |
---|
15 | |
---|
16 | BASE is free software; you can redistribute it and/or |
---|
17 | modify it under the terms of the GNU General Public License |
---|
18 | as published by the Free Software Foundation; either version 3 |
---|
19 | of the License, or (at your option) any later version. |
---|
20 | |
---|
21 | BASE is distributed in the hope that it will be useful, |
---|
22 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
23 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
24 | GNU General Public License for more details. |
---|
25 | |
---|
26 | You should have received a copy of the GNU General Public License |
---|
27 | along with BASE. If not, see <http://www.gnu.org/licenses/>. |
---|
28 | --> |
---|
29 | |
---|
30 | <display-name>BASE</display-name> |
---|
31 | <description> |
---|
32 | The BASE web application. |
---|
33 | </description> |
---|
34 | |
---|
35 | <error-page> |
---|
36 | <exception-type>java.lang.Throwable</exception-type> |
---|
37 | <location>/exception/exception.jsp</location> |
---|
38 | </error-page> |
---|
39 | |
---|
40 | <jsp-config> |
---|
41 | <jsp-property-group> |
---|
42 | <url-pattern>*.jsp</url-pattern> |
---|
43 | <page-encoding>UTF-8</page-encoding> |
---|
44 | </jsp-property-group> |
---|
45 | </jsp-config> |
---|
46 | |
---|
47 | <!-- |
---|
48 | If BASE Javascript encounters an URL that is longer than |
---|
49 | specified by this setting when assigning it to for example |
---|
50 | location.href = url, BASE will instead try to rewrite the document |
---|
51 | to generate a POST request instead. This is to avoid problem with |
---|
52 | web servers that doesn't accept URL:s longer than a specified size |
---|
53 | For example, Apache has a default max length of 8190. If this setting |
---|
54 | is 0, the rewrite functionality is disabled. |
---|
55 | --> |
---|
56 | <context-param> |
---|
57 | <param-name>max-url-length</param-name> |
---|
58 | <param-value>8000</param-value> |
---|
59 | </context-param> |
---|
60 | |
---|
61 | <!-- |
---|
62 | BASE startup and shutdown servlet; |
---|
63 | should be configured to load on startup as the first servlet |
---|
64 | --> |
---|
65 | <servlet> |
---|
66 | <servlet-name>BASE</servlet-name> |
---|
67 | <servlet-class>net.sf.basedb.clients.web.servlet.StartStopServlet</servlet-class> |
---|
68 | <load-on-startup>1</load-on-startup> |
---|
69 | </servlet> |
---|
70 | |
---|
71 | <!-- The View servlet used to download files in view mode --> |
---|
72 | <servlet> |
---|
73 | <servlet-name>view</servlet-name> |
---|
74 | <servlet-class> |
---|
75 | net.sf.basedb.clients.web.servlet.Download |
---|
76 | </servlet-class> |
---|
77 | <init-param> |
---|
78 | <param-name>default_mime_type</param-name> |
---|
79 | <param-value>text/plain</param-value> |
---|
80 | </init-param> |
---|
81 | <init-param> |
---|
82 | <param-name>use_path_info</param-name> |
---|
83 | <param-value>false</param-value> |
---|
84 | </init-param> |
---|
85 | </servlet> |
---|
86 | <servlet-mapping> |
---|
87 | <servlet-name>view</servlet-name> |
---|
88 | <url-pattern>/filemanager/files/view/*</url-pattern> |
---|
89 | </servlet-mapping> |
---|
90 | |
---|
91 | <!-- The Download servlet used to download files in download mode --> |
---|
92 | <servlet> |
---|
93 | <servlet-name>download</servlet-name> |
---|
94 | <servlet-class> |
---|
95 | net.sf.basedb.clients.web.servlet.Download |
---|
96 | </servlet-class> |
---|
97 | <init-param> |
---|
98 | <param-name>default_mime_type</param-name> |
---|
99 | <param-value>text/plain</param-value> |
---|
100 | </init-param> |
---|
101 | <init-param> |
---|
102 | <param-name>download</param-name> |
---|
103 | <param-value>true</param-value> |
---|
104 | </init-param> |
---|
105 | <init-param> |
---|
106 | <param-name>use_path_info</param-name> |
---|
107 | <param-value>false</param-value> |
---|
108 | </init-param> |
---|
109 | </servlet> |
---|
110 | <servlet-mapping> |
---|
111 | <servlet-name>download</servlet-name> |
---|
112 | <url-pattern>/filemanager/files/download/*</url-pattern> |
---|
113 | </servlet-mapping> |
---|
114 | |
---|
115 | <!-- The Upload servlet used to upload files --> |
---|
116 | <servlet> |
---|
117 | <servlet-name>upload</servlet-name> |
---|
118 | <servlet-class> |
---|
119 | net.sf.basedb.clients.web.servlet.Upload |
---|
120 | </servlet-class> |
---|
121 | </servlet> |
---|
122 | <servlet-mapping> |
---|
123 | <servlet-name>upload</servlet-name> |
---|
124 | <url-pattern>/filemanager/upload/Upload</url-pattern> |
---|
125 | </servlet-mapping> |
---|
126 | |
---|
127 | <!-- The SpotImage servlet used to view spot images in a raw bioassay --> |
---|
128 | <servlet> |
---|
129 | <servlet-name>spotimage</servlet-name> |
---|
130 | <servlet-class> |
---|
131 | net.sf.basedb.clients.web.servlet.ViewSpotImage |
---|
132 | </servlet-class> |
---|
133 | </servlet> |
---|
134 | <servlet-mapping> |
---|
135 | <servlet-name>spotimage</servlet-name> |
---|
136 | <url-pattern>/views/rawbioassays/rawdata/spotimage/*</url-pattern> |
---|
137 | </servlet-mapping> |
---|
138 | |
---|
139 | <!-- The Generic PlotServlet for the HTML plot tool --> |
---|
140 | <servlet> |
---|
141 | <servlet-name>plotter</servlet-name> |
---|
142 | <servlet-class> |
---|
143 | net.sf.basedb.clients.web.servlet.PlotServlet |
---|
144 | </servlet-class> |
---|
145 | <init-param> |
---|
146 | <param-name>maxWidth</param-name> |
---|
147 | <param-value>1000</param-value> |
---|
148 | </init-param> |
---|
149 | <init-param> |
---|
150 | <param-name>maxHeight</param-name> |
---|
151 | <param-value>800</param-value> |
---|
152 | </init-param> |
---|
153 | <init-param> |
---|
154 | <param-name>defaultWidth</param-name> |
---|
155 | <param-value>600</param-value> |
---|
156 | </init-param> |
---|
157 | <init-param> |
---|
158 | <param-name>defaultHeight</param-name> |
---|
159 | <param-value>400</param-value> |
---|
160 | </init-param> |
---|
161 | <init-param> |
---|
162 | <param-name>defaultFormat</param-name> |
---|
163 | <param-value>png</param-value> |
---|
164 | </init-param> |
---|
165 | </servlet> |
---|
166 | <servlet-mapping> |
---|
167 | <servlet-name>plotter</servlet-name> |
---|
168 | <url-pattern>/views/experiments/plotter/plot</url-pattern> |
---|
169 | </servlet-mapping> |
---|
170 | |
---|
171 | <!-- The ExperimentExplorer PlotServlet --> |
---|
172 | <servlet> |
---|
173 | <servlet-name>eeplotter</servlet-name> |
---|
174 | <servlet-class> |
---|
175 | net.sf.basedb.clients.web.servlet.ExperimentExplorerPlotServlet |
---|
176 | </servlet-class> |
---|
177 | </servlet> |
---|
178 | <servlet-mapping> |
---|
179 | <servlet-name>eeplotter</servlet-name> |
---|
180 | <url-pattern>/views/experiments/explorer/plot</url-pattern> |
---|
181 | </servlet-mapping> |
---|
182 | |
---|
183 | <!-- The News feed servlet --> |
---|
184 | <!-- Comment out this servlet to disable the RSS feed --> |
---|
185 | <servlet> |
---|
186 | <servlet-name>news-feed</servlet-name> |
---|
187 | <servlet-class> |
---|
188 | net.sf.basedb.clients.web.servlet.RssNewsFeed |
---|
189 | </servlet-class> |
---|
190 | <load-on-startup>1</load-on-startup> |
---|
191 | </servlet> |
---|
192 | <servlet-mapping> |
---|
193 | <servlet-name>news-feed</servlet-name> |
---|
194 | <url-pattern>/info/news.rss</url-pattern> |
---|
195 | </servlet-mapping> |
---|
196 | |
---|
197 | <!-- Axis2 servlets for web services --> |
---|
198 | <servlet> |
---|
199 | <servlet-name>AxisServlet</servlet-name> |
---|
200 | <display-name>Apache-Axis Servlet</display-name> |
---|
201 | <servlet-class>org.apache.axis2.transport.http.AxisServlet</servlet-class> |
---|
202 | <load-on-startup>3</load-on-startup> |
---|
203 | </servlet> |
---|
204 | <servlet> |
---|
205 | <servlet-name>AxisRESTServlet</servlet-name> |
---|
206 | <display-name>Apache-Axis Servlet (REST)</display-name> |
---|
207 | <servlet-class>org.apache.axis2.transport.http.AxisRESTServlet</servlet-class> |
---|
208 | </servlet> |
---|
209 | <servlet-mapping> |
---|
210 | <servlet-name>AxisRESTServlet</servlet-name> |
---|
211 | <url-pattern>/rest/*</url-pattern> |
---|
212 | </servlet-mapping> |
---|
213 | <servlet-mapping> |
---|
214 | <servlet-name>AxisServlet</servlet-name> |
---|
215 | <url-pattern>/services/*</url-pattern> |
---|
216 | </servlet-mapping> |
---|
217 | |
---|
218 | <!-- Extensions servlet for managing extensions to the web client --> |
---|
219 | <servlet> |
---|
220 | <servlet-name>ExtensionsServlet</servlet-name> |
---|
221 | <display-name>Web client extensions manager</display-name> |
---|
222 | <servlet-class>net.sf.basedb.clients.web.servlet.ExtensionsServlet</servlet-class> |
---|
223 | <load-on-startup>2</load-on-startup> |
---|
224 | </servlet> |
---|
225 | <servlet-mapping> |
---|
226 | <servlet-name>ExtensionsServlet</servlet-name> |
---|
227 | <url-pattern>*.servlet</url-pattern> |
---|
228 | </servlet-mapping> |
---|
229 | <servlet-mapping> |
---|
230 | <servlet-name>ExtensionsServlet</servlet-name> |
---|
231 | <url-pattern>/extensions/servlet/*</url-pattern> |
---|
232 | </servlet-mapping> |
---|
233 | |
---|
234 | <!-- Mapping *.xjsp files to a custom JSP compiler that adds extension JAR file to classpath --> |
---|
235 | <!-- EXPERIMENTAL!! --> |
---|
236 | <servlet> |
---|
237 | <servlet-name>xjsp</servlet-name> |
---|
238 | <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class> |
---|
239 | <init-param> |
---|
240 | <param-name>fork</param-name> |
---|
241 | <param-value>false</param-value> |
---|
242 | </init-param> |
---|
243 | <init-param> |
---|
244 | <param-name>compilerClassName</param-name> |
---|
245 | <param-value>net.sf.basedb.clients.web.extensions.XJspCompiler</param-value> |
---|
246 | </init-param> |
---|
247 | </servlet> |
---|
248 | <servlet-mapping> |
---|
249 | <servlet-name>xjsp</servlet-name> |
---|
250 | <url-pattern>*.xjsp</url-pattern> |
---|
251 | </servlet-mapping> |
---|
252 | |
---|
253 | |
---|
254 | <!-- The CompileAll servlet used to compile all JSP pages --> |
---|
255 | <!-- EXPERIMENTAL!! --> |
---|
256 | <!-- |
---|
257 | <servlet> |
---|
258 | <servlet-name>compile</servlet-name> |
---|
259 | <servlet-class> |
---|
260 | net.sf.basedb.clients.web.servlet.CompileAll |
---|
261 | </servlet-class> |
---|
262 | </servlet> |
---|
263 | <servlet-mapping> |
---|
264 | <servlet-name>compile</servlet-name> |
---|
265 | <url-pattern>/compile</url-pattern> |
---|
266 | </servlet-mapping> |
---|
267 | --> |
---|
268 | |
---|
269 | <!-- A filter that sets the character encoding on all *.jsp and *.xjsp files --> |
---|
270 | <filter> |
---|
271 | <filter-name>characterEncoding</filter-name> |
---|
272 | <filter-class>net.sf.basedb.clients.web.servlet.CharacterEncodingFilter</filter-class> |
---|
273 | <init-param> |
---|
274 | <param-name>characterEncoding</param-name> |
---|
275 | <param-value>UTF-8</param-value> |
---|
276 | </init-param> |
---|
277 | </filter> |
---|
278 | <filter-mapping> |
---|
279 | <filter-name>characterEncoding</filter-name> |
---|
280 | <url-pattern>*.jsp</url-pattern> |
---|
281 | </filter-mapping> |
---|
282 | <filter-mapping> |
---|
283 | <filter-name>characterEncoding</filter-name> |
---|
284 | <url-pattern>*.xjsp</url-pattern> |
---|
285 | </filter-mapping> |
---|
286 | |
---|
287 | </web-app> |
---|