source: trunk/config/dist/web.xml @ 5114

Last change on this file since 5114 was 5114, checked in by Nicklas Nordborg, 13 years ago

References #1386: Plot function in the bioassay table in experiment explorer

First version is checked in since it is friday. Most major functions should be in place. Some minor options may need tweaking as well as some visual aspects. As usual, error handling must be tested.

The code for generating an image with a stack trace has been moved to ThrowableUtil?.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Date Id
File size: 8.0 KB
Line 
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 5114 2009-10-02 12:29:28Z 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
116  <!-- The SpotImage servlet used to view spot images in a raw bioassay -->
117  <servlet>
118    <servlet-name>spotimage</servlet-name>
119    <servlet-class>
120      net.sf.basedb.clients.web.servlet.ViewSpotImage
121    </servlet-class>
122  </servlet>
123  <servlet-mapping>
124    <servlet-name>spotimage</servlet-name>
125    <url-pattern>/views/rawbioassays/rawdata/spotimage/*</url-pattern>
126  </servlet-mapping>
127
128  <!-- The Generic PlotServlet for the HTML plot tool -->
129  <servlet>
130    <servlet-name>plotter</servlet-name>
131    <servlet-class>
132      net.sf.basedb.clients.web.servlet.PlotServlet
133    </servlet-class>
134    <init-param>
135      <param-name>maxWidth</param-name>
136      <param-value>1000</param-value>
137    </init-param>
138    <init-param>
139      <param-name>maxHeight</param-name>
140      <param-value>800</param-value>
141    </init-param>
142    <init-param>
143      <param-name>defaultWidth</param-name>
144      <param-value>600</param-value>
145    </init-param>
146    <init-param>
147      <param-name>defaultHeight</param-name>
148      <param-value>400</param-value>
149    </init-param>
150    <init-param>
151      <param-name>defaultFormat</param-name>
152      <param-value>png</param-value>
153    </init-param>
154  </servlet>
155  <servlet-mapping>
156    <servlet-name>plotter</servlet-name>
157    <url-pattern>/views/experiments/plotter/plot</url-pattern>
158  </servlet-mapping>
159
160  <!-- The ExperimentExplorer PlotServlet  -->
161  <servlet>
162    <servlet-name>eeplotter</servlet-name>
163    <servlet-class>
164      net.sf.basedb.clients.web.servlet.ExperimentExplorerPlotServlet
165    </servlet-class>
166  </servlet>
167  <servlet-mapping>
168    <servlet-name>eeplotter</servlet-name>
169    <url-pattern>/views/experiments/explorer/plot</url-pattern>
170  </servlet-mapping>
171
172
173  <!-- Axis2 servlets for web services -->
174  <servlet>
175    <servlet-name>AxisServlet</servlet-name>
176    <display-name>Apache-Axis Servlet</display-name>
177    <servlet-class>org.apache.axis2.transport.http.AxisServlet</servlet-class>
178    <load-on-startup>3</load-on-startup>
179  </servlet>
180  <servlet>
181    <servlet-name>AxisRESTServlet</servlet-name>
182    <display-name>Apache-Axis Servlet (REST)</display-name>
183    <servlet-class>org.apache.axis2.transport.http.AxisRESTServlet</servlet-class>
184  </servlet>
185  <servlet-mapping>
186    <servlet-name>AxisRESTServlet</servlet-name>
187    <url-pattern>/rest/*</url-pattern>
188  </servlet-mapping>
189  <servlet-mapping>
190    <servlet-name>AxisServlet</servlet-name>
191    <url-pattern>/services/*</url-pattern>
192  </servlet-mapping>
193 
194  <!-- Extensions servlet for managing extensions to the web client -->
195  <servlet>
196    <servlet-name>ExtensionsServlet</servlet-name>
197    <display-name>Web client extensions manager</display-name>
198    <servlet-class>net.sf.basedb.clients.web.servlet.ExtensionsServlet</servlet-class>
199    <load-on-startup>2</load-on-startup>
200  </servlet>
201  <servlet-mapping>
202    <servlet-name>ExtensionsServlet</servlet-name>
203    <url-pattern>*.servlet</url-pattern>
204  </servlet-mapping>
205  <servlet-mapping>
206    <servlet-name>ExtensionsServlet</servlet-name>
207    <url-pattern>/extensions/servlet/*</url-pattern>
208  </servlet-mapping>
209 
210  <!-- Mapping *.xjsp files to a custom JSP compiler that adds extension JAR file to classpath -->
211  <!-- EXPERIMENTAL!! -->
212    <servlet>
213        <servlet-name>xjsp</servlet-name>
214        <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
215        <init-param>
216            <param-name>fork</param-name>
217            <param-value>false</param-value>
218        </init-param>
219        <init-param>
220          <param-name>compilerClassName</param-name>
221          <param-value>net.sf.basedb.clients.web.extensions.XJspCompiler</param-value>
222        </init-param>
223    </servlet>
224    <servlet-mapping>
225        <servlet-name>xjsp</servlet-name>
226        <url-pattern>*.xjsp</url-pattern>
227    </servlet-mapping>
228
229 
230  <!-- The CompileAll servlet used to compile all JSP pages -->
231  <!-- EXPERIMENTAL!! -->
232  <!--
233  <servlet>
234    <servlet-name>compile</servlet-name>
235    <servlet-class>
236      net.sf.basedb.clients.web.servlet.CompileAll
237    </servlet-class>
238  </servlet>
239  <servlet-mapping>
240    <servlet-name>compile</servlet-name>
241    <url-pattern>/compile</url-pattern>
242  </servlet-mapping>
243  -->
244
245  <!-- A filter that sets the character encoding on all *.jsp and *.xjsp files -->
246  <filter>
247    <filter-name>characterEncoding</filter-name>
248    <filter-class>net.sf.basedb.clients.web.servlet.CharacterEncodingFilter</filter-class>
249    <init-param>
250      <param-name>characterEncoding</param-name>
251      <param-value>UTF-8</param-value>
252    </init-param>
253  </filter>
254  <filter-mapping>
255    <filter-name>characterEncoding</filter-name>
256    <url-pattern>*.jsp</url-pattern>
257  </filter-mapping>
258  <filter-mapping>
259    <filter-name>characterEncoding</filter-name>
260    <url-pattern>*.xjsp</url-pattern>
261  </filter-mapping>
262
263</web-app>
Note: See TracBrowser for help on using the repository browser.