Project

General

Profile

« Previous | Next » 

Revision 7551

Added by Jing Tao over 11 years ago

Add a web.xml file for the war.

View differences:

metacat-index/src/main/webapp/WEB-INF/web.xml
1
<!DOCTYPE web-app
2
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
3
        "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
4

  
5
<web-app>
6

  
7
 <display-name>Metacat-index</display-name>
8

  
9
    <context-param>
10
      <param-name>jones</param-name>
11
      <param-value>jones@nceas.ucsb.edu</param-value>
12
      <description>
13
      </description>
14
    </context-param>
15
    
16
    <context-param>
17
      <param-name>configFileName</param-name>
18
      <param-value>metacat.properties</param-value>
19
      <description>The main configuration file for application</description>
20
    </context-param>
21

  
22
  
23

  
24
    <!--
25
    <servlet>
26
      <servlet-name>HarvesterServlet</servlet-name>
27
      <servlet-class>edu.ucsb.nceas.metacat.harvesterClient.HarvesterServlet</servlet-class>
28
      <init-param>
29
        <param-name>debug</param-name>
30
        <param-value>1</param-value>
31
      </init-param>
32
      <init-param>
33
        <param-name>listings</param-name>
34
        <param-value>true</param-value>
35
      </init-param>
36
      <load-on-startup>3</load-on-startup>
37
    </servlet>
38
    -->
39
    
40
    <!--
41
    <servlet>
42
      <servlet-name>DataProvider</servlet-name>
43
      <description>Processes OAI verbs for Metacat OAI-PMH Data Provider (MODP)
44
      </description>
45
      <servlet-class>edu.ucsb.nceas.metacat.oaipmh.provider.server.OAIHandler</servlet-class>
46
      <load-on-startup>4</load-on-startup>
47
    </servlet>
48
    
49
    -->
50
    
51
      <servlet>
52
      <servlet-name>metacat-index</servlet-name>
53
      <servlet-class>edu.ucsb.nceas.metacat.index.MetacatIndexServlet</servlet-class>
54
      <init-param>
55
        <param-name>debug</param-name>
56
        <param-value>1</param-value>
57
      </init-param>
58
      <init-param>
59
        <param-name>listings</param-name>
60
        <param-value>true</param-value>
61
      </init-param>
62
      <load-on-startup>2</load-on-startup>
63
    </servlet>
64

  
65

  
66

  
67
  <!-- 
68
   <servlet-mapping>
69
    <servlet-name>DataProvider</servlet-name>
70
    <url-pattern>/dataProvider</url-pattern>
71
  </servlet-mapping>
72
  -->
73
      
74
    <session-config>
75
      <session-timeout>30000</session-timeout>
76
    </session-config>
77

  
78
    
79
   <!-- currently the W3C havent settled on a media type for WSDL;
80
    http://www.w3.org/TR/2003/WD-wsdl12-20030303/#ietf-draft
81
    for now we go with the basic 'it's XML' response -->
82
  <mime-mapping>
83
    <extension>wsdl</extension>
84
     <mime-type>text/xml</mime-type>
85
  </mime-mapping>
86
  
87
  <mime-mapping>
88
    <extension>xsd</extension>
89
    <mime-type>text/xml</mime-type>
90
  </mime-mapping>
91
  
92
  <mime-mapping>
93
   <extension>xsl</extension>
94
   <mime-type>text/xml</mime-type>
95
  </mime-mapping>
96
		      
97
  <welcome-file-list>
98
    <welcome-file>index.jsp</welcome-file>
99
    <welcome-file>index.html</welcome-file>
100
  </welcome-file-list>
101

  
102
<security-constraint>
103
	<web-resource-collection>
104
		<web-resource-name>PROPERTIES</web-resource-name>
105
		<url-pattern>*.properties</url-pattern>
106
	</web-resource-collection>
107
	<auth-constraint/>
108
</security-constraint>
109

  
110
</web-app>

Also available in: Unified diff