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

Last change on this file since 4384 was 4384, checked in by Nicklas Nordborg, 14 years ago

References #1032: Apache server complains "Request-URI Too Large"

Main functionality is in place. The "New experiment" function is fixed and probably all other places where a new window is opened with the Main.openPopup script. Other functions that use 'location.href', 'location.replace' or 'window.open' are not fixed.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Date Id
File size: 7.3 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 4384 2008-08-08 10:12:25Z 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    If BASE Javascript encounters an URL that is longer than
42    specified by this setting when assigning it to for example
43    location.href = url, BASE will instead try to rewrite the document
44    to generate a POST request instead. This is to avoid problem with
45    web servers that doesn't accept URL:s longer than a specified size
46    For example, Apache has a default max length of 8190. If this setting
47    is 0, the rewrite functionality is disabled.
48  -->
49  <context-param>
50    <param-name>max-url-length</param-name>
51    <param-value>8000</param-value>
52  </context-param>
53 
54  <!--
55    BASE startup and shutdown servlet;
56    should be configured to load on startup as the first servlet
57  -->
58  <servlet>
59    <servlet-name>BASE</servlet-name>
60    <servlet-class>net.sf.basedb.clients.web.servlet.StartStopServlet</servlet-class>
61    <load-on-startup>1</load-on-startup>
62  </servlet>
63 
64  <!-- The View servlet used to download files in view mode -->
65  <servlet>
66    <servlet-name>view</servlet-name>
67    <servlet-class>
68      net.sf.basedb.clients.web.servlet.Download
69    </servlet-class>
70    <init-param>
71      <param-name>default_mime_type</param-name>
72      <param-value>text/plain</param-value>
73    </init-param>
74    <init-param>
75      <param-name>use_path_info</param-name>
76      <param-value>false</param-value>
77    </init-param>
78  </servlet>
79  <servlet-mapping>
80    <servlet-name>view</servlet-name>
81    <url-pattern>/filemanager/files/view/*</url-pattern>
82  </servlet-mapping>
83
84  <!-- The Download servlet used to download files in download mode -->
85  <servlet>
86    <servlet-name>download</servlet-name>
87    <servlet-class>
88      net.sf.basedb.clients.web.servlet.Download
89    </servlet-class>
90    <init-param>
91      <param-name>default_mime_type</param-name>
92      <param-value>text/plain</param-value>
93    </init-param>
94    <init-param>
95      <param-name>download</param-name>
96      <param-value>true</param-value>
97    </init-param>
98    <init-param>
99      <param-name>use_path_info</param-name>
100      <param-value>false</param-value>
101    </init-param>
102  </servlet>
103  <servlet-mapping>
104    <servlet-name>download</servlet-name>
105    <url-pattern>/filemanager/files/download/*</url-pattern>
106  </servlet-mapping>
107
108
109  <!-- The SpotImage servlet used to view spot images in a raw bioassay -->
110  <servlet>
111    <servlet-name>spotimage</servlet-name>
112    <servlet-class>
113      net.sf.basedb.clients.web.servlet.ViewSpotImage
114    </servlet-class>
115  </servlet>
116  <servlet-mapping>
117    <servlet-name>spotimage</servlet-name>
118    <url-pattern>/views/rawbioassays/rawdata/spotimage/*</url-pattern>
119  </servlet-mapping>
120
121  <!-- The Generic PlotServlet for the HTML plot tool -->
122  <servlet>
123    <servlet-name>plotter</servlet-name>
124    <servlet-class>
125      net.sf.basedb.clients.web.servlet.PlotServlet
126    </servlet-class>
127    <init-param>
128      <param-name>maxWidth</param-name>
129      <param-value>1000</param-value>
130    </init-param>
131    <init-param>
132      <param-name>maxHeight</param-name>
133      <param-value>800</param-value>
134    </init-param>
135    <init-param>
136      <param-name>defaultWidth</param-name>
137      <param-value>600</param-value>
138    </init-param>
139    <init-param>
140      <param-name>defaultHeight</param-name>
141      <param-value>400</param-value>
142    </init-param>
143    <init-param>
144      <param-name>defaultFormat</param-name>
145      <param-value>png</param-value>
146    </init-param>
147  </servlet>
148  <servlet-mapping>
149    <servlet-name>plotter</servlet-name>
150    <url-pattern>/views/experiments/plotter/plot</url-pattern>
151  </servlet-mapping>
152
153  <!-- Axis2 servlets for web services -->
154  <servlet>
155    <servlet-name>AxisServlet</servlet-name>
156    <display-name>Apache-Axis Servlet</display-name>
157    <servlet-class>org.apache.axis2.transport.http.AxisServlet</servlet-class>
158    <load-on-startup>3</load-on-startup>
159  </servlet>
160  <servlet>
161    <servlet-name>AxisRESTServlet</servlet-name>
162    <display-name>Apache-Axis Servlet (REST)</display-name>
163    <servlet-class>org.apache.axis2.transport.http.AxisRESTServlet</servlet-class>
164  </servlet>
165  <servlet-mapping>
166    <servlet-name>AxisRESTServlet</servlet-name>
167    <url-pattern>/rest/*</url-pattern>
168  </servlet-mapping>
169  <servlet-mapping>
170    <servlet-name>AxisServlet</servlet-name>
171    <url-pattern>/services/*</url-pattern>
172  </servlet-mapping>
173 
174  <!-- Extensions servlet for managing extensions to the web client -->
175  <servlet>
176    <servlet-name>ExtensionsServlet</servlet-name>
177    <display-name>Web client extensions manager</display-name>
178    <servlet-class>net.sf.basedb.clients.web.servlet.ExtensionsServlet</servlet-class>
179    <load-on-startup>2</load-on-startup>
180  </servlet>
181  <servlet-mapping>
182    <servlet-name>ExtensionsServlet</servlet-name>
183    <url-pattern>*.servlet</url-pattern>
184  </servlet-mapping>
185 
186  <!-- Mapping *.xjsp files to a custom JSP compiler that adds extension JAR file to classpath -->
187  <!-- EXPERIMENTAL!! -->
188    <servlet>
189        <servlet-name>xjsp</servlet-name>
190        <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
191        <init-param>
192            <param-name>fork</param-name>
193            <param-value>false</param-value>
194        </init-param>
195        <init-param>
196          <param-name>compilerClassName</param-name>
197          <param-value>net.sf.basedb.clients.web.extensions.XJspCompiler</param-value>
198        </init-param>
199    </servlet>
200    <servlet-mapping>
201        <servlet-name>xjsp</servlet-name>
202        <url-pattern>*.xjsp</url-pattern>
203    </servlet-mapping>
204
205 
206  <!-- The CompileAll servlet used to compile all JSP pages -->
207  <!-- EXPERIMENTAL!! -->
208  <!--
209  <servlet>
210    <servlet-name>compile</servlet-name>
211    <servlet-class>
212      net.sf.basedb.clients.web.servlet.CompileAll
213    </servlet-class>
214  </servlet>
215  <servlet-mapping>
216    <servlet-name>compile</servlet-name>
217    <url-pattern>/compile</url-pattern>
218  </servlet-mapping>
219  -->
220
221  <!-- A filter that sets the character encoding on all *.jsp and *.xjsp files -->
222  <filter>
223    <filter-name>characterEncoding</filter-name>
224    <filter-class>net.sf.basedb.clients.web.servlet.CharacterEncodingFilter</filter-class>
225    <init-param>
226      <param-name>characterEncoding</param-name>
227      <param-value>UTF-8</param-value>
228    </init-param>
229  </filter>
230  <filter-mapping>
231    <filter-name>characterEncoding</filter-name>
232    <url-pattern>*.jsp</url-pattern>
233  </filter-mapping>
234  <filter-mapping>
235    <filter-name>characterEncoding</filter-name>
236    <url-pattern>*.xjsp</url-pattern>
237  </filter-mapping>
238
239</web-app>
Note: See TracBrowser for help on using the repository browser.