1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 |
|
---|
3 | <!DOCTYPE web-app
|
---|
4 | PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
|
---|
5 | "http://java.sun.com/dtd/web-app_2_3.dtd">
|
---|
6 |
|
---|
7 | <!-- this is based on a sample web.xml file provided by
|
---|
8 | http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/web.xml.txt
|
---|
9 | -->
|
---|
10 | <web-app>
|
---|
11 | <!-- General description of your web application -->
|
---|
12 | <display-name>Flax</display-name>
|
---|
13 | <description>
|
---|
14 | Flaxible Language Acquisition Project version 1.0
|
---|
15 | </description>
|
---|
16 | <!-- Context initialization parameters that define shared
|
---|
17 | String constants used within your application, which
|
---|
18 | can be customized by the system administrator who is
|
---|
19 | installing your application. The values actually
|
---|
20 | assigned to these parameters can be retrieved in a
|
---|
21 | servlet or JSP page by calling:
|
---|
22 |
|
---|
23 | String value =
|
---|
24 | getServletContext().getInitParameter("name");
|
---|
25 |
|
---|
26 | where "name" matches the <param-name> element of
|
---|
27 | one of these initialization parameters.
|
---|
28 |
|
---|
29 | You can define any number of context initialization
|
---|
30 | parameters, including zero.
|
---|
31 | -->
|
---|
32 |
|
---|
33 | <context-param>
|
---|
34 | <param-name>webmaster</param-name>
|
---|
35 | <param-value>[email protected]</param-value>
|
---|
36 | <description>
|
---|
37 | The EMAIL address of the administrator to whom questions
|
---|
38 | and comments about this application should be addressed.
|
---|
39 | </description>
|
---|
40 | </context-param>
|
---|
41 |
|
---|
42 | <!-- Servlet definitions for the servlets that make up
|
---|
43 | your web application, including initialization
|
---|
44 | parameters. With Tomcat, you can also send requests
|
---|
45 | to servlets not listed here with a request like this:
|
---|
46 |
|
---|
47 | http://localhost:8080/{context-path}/servlet/{classname}
|
---|
48 |
|
---|
49 | but this usage is not guaranteed to be portable. It also
|
---|
50 | makes relative references to images and other resources
|
---|
51 | required by your servlet more complicated, so defining
|
---|
52 | all of your servlets (and defining a mapping to them with
|
---|
53 | a servlet-mapping element) is recommended.
|
---|
54 |
|
---|
55 | Servlet initialization parameters can be retrieved in a
|
---|
56 | servlet or JSP page by calling:
|
---|
57 |
|
---|
58 | String value =
|
---|
59 | getServletConfig().getInitParameter("name");
|
---|
60 |
|
---|
61 | where "name" matches the <param-name> element of
|
---|
62 | one of these initialization parameters.
|
---|
63 |
|
---|
64 | You can define any number of servlets, including zero.
|
---|
65 | -->
|
---|
66 | <servlet>
|
---|
67 | <servlet-name>flax</servlet-name>
|
---|
68 | <description></description>
|
---|
69 | <servlet-class>org.greenstone.gsdl3.flax.FlaxServlet</servlet-class>
|
---|
70 | <init-param>
|
---|
71 | <param-name>library_name</param-name>
|
---|
72 | <param-value>flax</param-value>
|
---|
73 | </init-param>
|
---|
74 | <init-param>
|
---|
75 | <param-name>site_name</param-name>
|
---|
76 | <param-value>flax</param-value>
|
---|
77 | </init-param>
|
---|
78 | <init-param>
|
---|
79 | <param-name>interface_name</param-name>
|
---|
80 | <param-value>flax</param-value>
|
---|
81 | </init-param>
|
---|
82 | <init-param>
|
---|
83 | <param-name>default_lang</param-name>
|
---|
84 | <param-value>en</param-value>
|
---|
85 | </init-param>
|
---|
86 | <init-param>
|
---|
87 | <param-name>session_expiration</param-name>
|
---|
88 | <param-value>1800</param-value>
|
---|
89 | </init-param>
|
---|
90 | </servlet>
|
---|
91 | <!-- Define mappings that are used by the servlet container to
|
---|
92 | translate a particular request URI (context-relative) to a
|
---|
93 | particular servlet. The examples below correspond to the
|
---|
94 | servlet descriptions above. Thus, a request URI like:
|
---|
95 |
|
---|
96 | http://localhost:8080/{contextpath}/graph
|
---|
97 |
|
---|
98 | will be mapped to the "graph" servlet, while a request like:
|
---|
99 |
|
---|
100 | http://localhost:8080/{contextpath}/saveCustomer.do
|
---|
101 |
|
---|
102 | will be mapped to the "controller" servlet.
|
---|
103 |
|
---|
104 | Note: context path is determined by the servlet container -
|
---|
105 | in Tomcat, specified in server.xml -kjdon
|
---|
106 | You may define any number of servlet mappings, including zero.
|
---|
107 | It is also legal to define more than one mapping for the same
|
---|
108 | servlet, if you wish to.
|
---|
109 | -->
|
---|
110 | <servlet-mapping>
|
---|
111 | <servlet-name>flax</servlet-name>
|
---|
112 | <url-pattern>/flax</url-pattern>
|
---|
113 | </servlet-mapping>
|
---|
114 |
|
---|
115 | <!--********servlets/mappings used by the Flax web service (especially the first one - copied from packages/axis/webapps/axis/WEB-INF/web.xml ****-->
|
---|
116 | <servlet>
|
---|
117 | <servlet-name>AxisServlet</servlet-name>
|
---|
118 | <display-name>Apache-Axis Servlet</display-name>
|
---|
119 | <servlet-class>
|
---|
120 | org.apache.axis.transport.http.AxisServlet
|
---|
121 | </servlet-class>
|
---|
122 | </servlet>
|
---|
123 | <servlet>
|
---|
124 | <servlet-name>AdminServlet</servlet-name>
|
---|
125 | <display-name>Axis Admin Servlet</display-name>
|
---|
126 | <servlet-class>
|
---|
127 | org.apache.axis.transport.http.AdminServlet
|
---|
128 | </servlet-class>
|
---|
129 | <load-on-startup>100</load-on-startup>
|
---|
130 | </servlet>
|
---|
131 | <servlet>
|
---|
132 | <servlet-name>SOAPMonitorService</servlet-name>
|
---|
133 | <display-name>SOAPMonitorService</display-name>
|
---|
134 | <servlet-class>
|
---|
135 | org.apache.axis.monitor.SOAPMonitorService
|
---|
136 | </servlet-class>
|
---|
137 | <init-param>
|
---|
138 | <param-name>SOAPMonitorPort</param-name>
|
---|
139 | <param-value>5001</param-value>
|
---|
140 | </init-param>
|
---|
141 | <load-on-startup>100</load-on-startup>
|
---|
142 | </servlet>
|
---|
143 | <servlet-mapping>
|
---|
144 | <servlet-name>AxisServlet</servlet-name>
|
---|
145 | <url-pattern>/servlet/AxisServlet</url-pattern>
|
---|
146 | </servlet-mapping>
|
---|
147 | <servlet-mapping>
|
---|
148 | <servlet-name>AxisServlet</servlet-name>
|
---|
149 | <url-pattern>*.jws</url-pattern>
|
---|
150 | </servlet-mapping>
|
---|
151 | <servlet-mapping>
|
---|
152 | <servlet-name>AxisServlet</servlet-name>
|
---|
153 | <url-pattern>/services/*</url-pattern>
|
---|
154 | </servlet-mapping>
|
---|
155 | <servlet-mapping>
|
---|
156 | <servlet-name>SOAPMonitorService</servlet-name>
|
---|
157 | <url-pattern>/SOAPMonitor</url-pattern>
|
---|
158 | </servlet-mapping>
|
---|
159 |
|
---|
160 | <servlet-mapping>
|
---|
161 | <servlet-name>AxisServlet</servlet-name>
|
---|
162 | <url-pattern>/flax/*</url-pattern>
|
---|
163 | </servlet-mapping>
|
---|
164 | <!--********end of Servlet mappings used by Flax web service ***************************-->
|
---|
165 |
|
---|
166 | <!-- Define the default session timeout for your application,
|
---|
167 | in minutes. From a servlet or JSP page, you can modify
|
---|
168 | the timeout for a particular session dynamically by using
|
---|
169 | HttpSession.getMaxInactiveInterval(). -->
|
---|
170 |
|
---|
171 | <session-config>
|
---|
172 | <session-timeout>30</session-timeout> <!-- 30 minutes -->
|
---|
173 | </session-config>
|
---|
174 |
|
---|
175 | <!-- axis mime-mappings -->
|
---|
176 | <mime-mapping>
|
---|
177 | <extension>wsdl</extension>
|
---|
178 | <mime-type>text/xml</mime-type>
|
---|
179 | </mime-mapping>
|
---|
180 |
|
---|
181 | <mime-mapping>
|
---|
182 | <extension>xsd</extension>
|
---|
183 | <mime-type>text/xml</mime-type>
|
---|
184 | </mime-mapping>
|
---|
185 |
|
---|
186 | </web-app>
|
---|
187 |
|
---|
188 |
|
---|