Project

General

Profile

« Previous | Next » 

Revision 2799

Added by Jing Tao about 19 years ago

Add some servlet mapping for axis.

View differences:

lib/web.xml.tomcat5
4 4

  
5 5
<web-app>
6 6
    <display-name>Metacat</display-name>
7

  
7
    
8 8
    <context-param>
9 9
      <param-name>jones</param-name>
10 10
      <param-value>jones@nceas.ucsb.edu</param-value>
11 11
      <description>
12 12
      </description>
13 13
    </context-param>
14

  
14
    
15 15
    <servlet>
16 16
      <servlet-name>metacat</servlet-name>
17 17
      <servlet-class>edu.ucsb.nceas.metacat.MetaCatServlet</servlet-class>
......
89 89
      <load-on-startup>1</load-on-startup>
90 90
    </servlet>
91 91
    -->
92
    <servlet>
93
    <servlet-name>AxisServlet</servlet-name>
94
    <display-name>Apache-Axis Servlet</display-name>
95
    <servlet-class>
96
        org.apache.axis.transport.http.AxisServlet
97
    </servlet-class>
98
  </servlet>
92 99

  
100
  <servlet>
101
    <servlet-name>AdminServlet</servlet-name>
102
    <display-name>Axis Admin Servlet</display-name>
103
    <servlet-class>
104
        org.apache.axis.transport.http.AdminServlet
105
    </servlet-class>
106
    <load-on-startup>100</load-on-startup>
107
  </servlet>
108

  
109
  <servlet>
110
    <servlet-name>SOAPMonitorService</servlet-name>
111
    <display-name>SOAPMonitorService</display-name>
112
    <servlet-class>
113
        org.apache.axis.monitor.SOAPMonitorService
114
    </servlet-class>
115
    <init-param>
116
      <param-name>SOAPMonitorPort</param-name>
117
      <param-value>5001</param-value>
118
    </init-param>
119
    <load-on-startup>100</load-on-startup>
120
  </servlet>
121

  
93 122
    <!-- <servlet-mapping>
94 123
        <servlet-name>metacat</servlet-name>
95 124
        <url-pattern>/servlet/metacat/*</url-pattern>
......
124 153
        <servlet-name>AdvancedSearchServlet</servlet-name>
125 154
        <url-pattern>/advancedSearchServlet</url-pattern>
126 155
    </servlet-mapping>
156
     
157
    <servlet-mapping>
158
    <servlet-name>AxisServlet</servlet-name>
159
    <url-pattern>/servlet/AxisServlet</url-pattern>
160
  </servlet-mapping>
127 161

  
162
  <servlet-mapping>
163
    <servlet-name>AxisServlet</servlet-name>
164
    <url-pattern>*.jws</url-pattern>
165
  </servlet-mapping>
166

  
167
  <servlet-mapping>
168
    <servlet-name>AxisServlet</servlet-name>
169
    <url-pattern>/services/*</url-pattern>
170
  </servlet-mapping>
171

  
172
  <servlet-mapping>
173
    <servlet-name>SOAPMonitorService</servlet-name>
174
    <url-pattern>/SOAPMonitor</url-pattern>
175
  </servlet-mapping>
176

  
177
 <!-- uncomment this if you want the admin servlet -->
178
  <servlet-mapping>
179
    <servlet-name>AdminServlet</servlet-name>
180
    <url-pattern>/servlet/AdminServlet</url-pattern>
181
  </servlet-mapping>
182
    
128 183
    <session-config>
129 184
      <session-timeout>30</session-timeout>
130 185
    </session-config>
186
    
187
   <!-- currently the W3C havent settled on a media type for WSDL;
188
    http://www.w3.org/TR/2003/WD-wsdl12-20030303/#ietf-draft
189
    for now we go with the basic 'it's XML' response -->
190
  <mime-mapping>
191
    <extension>wsdl</extension>
192
     <mime-type>text/xml</mime-type>
193
  </mime-mapping>
194
  
195

  
196
  <mime-mapping>
197
    <extension>xsd</extension>
198
    <mime-type>text/xml</mime-type>
199
  </mime-mapping>
131 200
</web-app>

Also available in: Unified diff