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

Last change on this file since 4319 was 4319, checked in by Nicklas Nordborg, 15 years ago

Fixes #1040: Exceptions when stopping Tomcat

  • Property svn:eol-style set to native
  • Property svn:keywords set to Date Id
File size: 6.8 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE web-app
3    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
4    "http://java.sun.com/dtd/web-app_2_3.dtd">
5<!--
6  $Id: web.xml 4319 2008-05-29 09:38:01Z nicklas $
7
8  Copyright (C) 2006, 2007 Nicklas Nordborg
9
10  This file is part of BASE - BioArray Software Environment.
11  Available at http://base.thep.lu.se/
12
13  BASE is free software; you can redistribute it and/or
14  modify it under the terms of the GNU General Public License
15  as published by the Free Software Foundation; either version 2
16  of the License, or (at your option) any later version.
17
18  BASE is distributed in the hope that it will be useful,
19  but WITHOUT ANY WARRANTY; without even the implied warranty of
20  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21  GNU General Public License for more details.
22
23  You should have received a copy of the GNU General Public License
24  along with this program; if not, write to the Free Software
25  Foundation, Inc., 59 Temple Place - Suite 330,
26  Boston, MA  02111-1307, USA.
27-->
28
29<web-app>
30  <display-name>BASE</display-name>
31  <description>
32    The BASE 2 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  <!--
41    BASE startup and shutdown servlet;
42    should be configured to load on startup as the first servlet
43  -->
44  <servlet>
45    <servlet-name>BASE</servlet-name>
46    <servlet-class>net.sf.basedb.clients.web.servlet.StartStopServlet</servlet-class>
47    <load-on-startup>1</load-on-startup>
48  </servlet>
49 
50  <!-- The View servlet used to download files in view mode -->
51  <servlet>
52    <servlet-name>view</servlet-name>
53    <servlet-class>
54      net.sf.basedb.clients.web.servlet.Download
55    </servlet-class>
56    <init-param>
57      <param-name>default_mime_type</param-name>
58      <param-value>text/plain</param-value>
59    </init-param>
60    <init-param>
61      <param-name>use_path_info</param-name>
62      <param-value>false</param-value>
63    </init-param>
64  </servlet>
65  <servlet-mapping>
66    <servlet-name>view</servlet-name>
67    <url-pattern>/filemanager/files/view/*</url-pattern>
68  </servlet-mapping>
69
70  <!-- The Download servlet used to download files in download mode -->
71  <servlet>
72    <servlet-name>download</servlet-name>
73    <servlet-class>
74      net.sf.basedb.clients.web.servlet.Download
75    </servlet-class>
76    <init-param>
77      <param-name>default_mime_type</param-name>
78      <param-value>text/plain</param-value>
79    </init-param>
80    <init-param>
81      <param-name>download</param-name>
82      <param-value>true</param-value>
83    </init-param>
84    <init-param>
85      <param-name>use_path_info</param-name>
86      <param-value>false</param-value>
87    </init-param>
88  </servlet>
89  <servlet-mapping>
90    <servlet-name>download</servlet-name>
91    <url-pattern>/filemanager/files/download/*</url-pattern>
92  </servlet-mapping>
93
94
95  <!-- The SpotImage servlet used to view spot images in a raw bioassay -->
96  <servlet>
97    <servlet-name>spotimage</servlet-name>
98    <servlet-class>
99      net.sf.basedb.clients.web.servlet.ViewSpotImage
100    </servlet-class>
101  </servlet>
102  <servlet-mapping>
103    <servlet-name>spotimage</servlet-name>
104    <url-pattern>/views/rawbioassays/rawdata/spotimage/*</url-pattern>
105  </servlet-mapping>
106
107  <!-- The Generic PlotServlet for the HTML plot tool -->
108  <servlet>
109    <servlet-name>plotter</servlet-name>
110    <servlet-class>
111      net.sf.basedb.clients.web.servlet.PlotServlet
112    </servlet-class>
113    <init-param>
114      <param-name>maxWidth</param-name>
115      <param-value>1000</param-value>
116    </init-param>
117    <init-param>
118      <param-name>maxHeight</param-name>
119      <param-value>800</param-value>
120    </init-param>
121    <init-param>
122      <param-name>defaultWidth</param-name>
123      <param-value>600</param-value>
124    </init-param>
125    <init-param>
126      <param-name>defaultHeight</param-name>
127      <param-value>400</param-value>
128    </init-param>
129    <init-param>
130      <param-name>defaultFormat</param-name>
131      <param-value>png</param-value>
132    </init-param>
133  </servlet>
134  <servlet-mapping>
135    <servlet-name>plotter</servlet-name>
136    <url-pattern>/views/experiments/plotter/plot</url-pattern>
137  </servlet-mapping>
138
139  <!-- Axis2 servlets for web services -->
140  <servlet>
141    <servlet-name>AxisServlet</servlet-name>
142    <display-name>Apache-Axis Servlet</display-name>
143    <servlet-class>org.apache.axis2.transport.http.AxisServlet</servlet-class>
144    <load-on-startup>3</load-on-startup>
145  </servlet>
146  <servlet>
147    <servlet-name>AxisRESTServlet</servlet-name>
148    <display-name>Apache-Axis Servlet (REST)</display-name>
149    <servlet-class>org.apache.axis2.transport.http.AxisRESTServlet</servlet-class>
150  </servlet>
151  <servlet-mapping>
152    <servlet-name>AxisRESTServlet</servlet-name>
153    <url-pattern>/rest/*</url-pattern>
154  </servlet-mapping>
155  <servlet-mapping>
156    <servlet-name>AxisServlet</servlet-name>
157    <url-pattern>/services/*</url-pattern>
158  </servlet-mapping>
159 
160  <!-- Extensions servlet for managing extensions to the web client -->
161  <servlet>
162    <servlet-name>ExtensionsServlet</servlet-name>
163    <display-name>Web client extensions manager</display-name>
164    <servlet-class>net.sf.basedb.clients.web.servlet.ExtensionsServlet</servlet-class>
165    <load-on-startup>2</load-on-startup>
166  </servlet>
167  <servlet-mapping>
168    <servlet-name>ExtensionsServlet</servlet-name>
169    <url-pattern>*.servlet</url-pattern>
170  </servlet-mapping>
171 
172  <!-- Mapping *.xjsp files to a custom JSP compiler that adds extension JAR file to classpath -->
173  <!-- EXPERIMENTAL!! -->
174    <servlet>
175        <servlet-name>xjsp</servlet-name>
176        <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
177        <init-param>
178            <param-name>fork</param-name>
179            <param-value>false</param-value>
180        </init-param>
181        <init-param>
182          <param-name>compilerClassName</param-name>
183          <param-value>net.sf.basedb.clients.web.extensions.XJspCompiler</param-value>
184        </init-param>
185    </servlet>
186    <servlet-mapping>
187        <servlet-name>xjsp</servlet-name>
188        <url-pattern>*.xjsp</url-pattern>
189    </servlet-mapping>
190
191 
192  <!-- The CompileAll servlet used to compile all JSP pages -->
193  <!-- EXPERIMENTAL!! -->
194  <!--
195  <servlet>
196    <servlet-name>compile</servlet-name>
197    <servlet-class>
198      net.sf.basedb.clients.web.servlet.CompileAll
199    </servlet-class>
200  </servlet>
201  <servlet-mapping>
202    <servlet-name>compile</servlet-name>
203    <url-pattern>/compile</url-pattern>
204  </servlet-mapping>
205  -->
206
207  <!-- A filter that sets the character encoding on all *.jsp and *.xjsp files -->
208  <filter>
209    <filter-name>characterEncoding</filter-name>
210    <filter-class>net.sf.basedb.clients.web.servlet.CharacterEncodingFilter</filter-class>
211    <init-param>
212      <param-name>characterEncoding</param-name>
213      <param-value>UTF-8</param-value>
214    </init-param>
215  </filter>
216  <filter-mapping>
217    <filter-name>characterEncoding</filter-name>
218    <url-pattern>*.jsp</url-pattern>
219  </filter-mapping>
220  <filter-mapping>
221    <filter-name>characterEncoding</filter-name>
222    <url-pattern>*.xjsp</url-pattern>
223  </filter-mapping>
224
225</web-app>
Note: See TracBrowser for help on using the repository browser.