Revision 26700

View differences:

tmp/trunk/servidor/Otros/Servers/Tomcat v5.5 Server at localhost-config/server.xml
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!--
3
  Licensed to the Apache Software Foundation (ASF) under one or more
4
  contributor license agreements.  See the NOTICE file distributed with
5
  this work for additional information regarding copyright ownership.
6
  The ASF licenses this file to You under the Apache License, Version 2.0
7
  (the "License"); you may not use this file except in compliance with
8
  the License.  You may obtain a copy of the License at
9

  
10
      http://www.apache.org/licenses/LICENSE-2.0
11

  
12
  Unless required by applicable law or agreed to in writing, software
13
  distributed under the License is distributed on an "AS IS" BASIS,
14
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
  See the License for the specific language governing permissions and
16
  limitations under the License.
17
--><!-- Example Server Configuration File --><!-- Note that component elements are nested corresponding to their
18
     parent-child relationships with each other --><!-- A "Server" is a singleton element that represents the entire JVM,
19
     which may contain one or more "Service" instances.  The Server
20
     listens for a shutdown command on the indicated port.
21

  
22
     Note:  A "Server" is not itself a "Container", so you may not
23
     define subcomponents such as "Valves" or "Loggers" at this level.
24
 --><Server port="9005" shutdown="SHUTDOWN">
25

  
26
  <!-- Comment these entries out to disable JMX MBeans support used for the 
27
       administration web application -->
28
  <Listener className="org.apache.catalina.core.AprLifecycleListener"/>
29
  <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"/>
30
  <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/>
31
  <Listener className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener"/>
32

  
33
  <!-- Global JNDI resources -->
34
  <GlobalNamingResources>
35

  
36
    <!-- Test entry for demonstration purposes -->
37
    <Environment name="simpleValue" type="java.lang.Integer" value="30"/>
38

  
39
    <!-- Editable user database that can also be used by
40
         UserDatabaseRealm to authenticate users -->
41
    <Resource auth="Container" description="User database that can be updated and saved" factory="org.apache.catalina.users.MemoryUserDatabaseFactory" name="UserDatabase" pathname="conf/tomcat-users.xml" type="org.apache.catalina.UserDatabase"/>
42

  
43
  </GlobalNamingResources>
44

  
45
  <!-- A "Service" is a collection of one or more "Connectors" that share
46
       a single "Container" (and therefore the web applications visible
47
       within that Container).  Normally, that Container is an "Engine",
48
       but this is not required.
49

  
50
       Note:  A "Service" is not itself a "Container", so you may not
51
       define subcomponents such as "Valves" or "Loggers" at this level.
52
   -->
53

  
54
  <!-- Define the Tomcat Stand-Alone Service -->
55
  <Service name="Catalina">
56

  
57
    <!-- A "Connector" represents an endpoint by which requests are received
58
         and responses are returned.  Each Connector passes requests on to the
59
         associated "Container" (normally an Engine) for processing.
60

  
61
         By default, a non-SSL HTTP/1.1 Connector is established on port 8080.
62
         You can also enable an SSL HTTP/1.1 Connector on port 8443 by
63
         following the instructions below and uncommenting the second Connector
64
         entry.  SSL support requires the following steps (see the SSL Config
65
         HOWTO in the Tomcat 5 documentation bundle for more detailed
66
         instructions):
67
         * If your JDK version 1.3 or prior, download and install JSSE 1.0.2 or
68
           later, and put the JAR files into "$JAVA_HOME/jre/lib/ext".
69
         * Execute:
70
             %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows)
71
             $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA  (Unix)
72
           with a password value of "changeit" for both the certificate and
73
           the keystore itself.
74

  
75
         By default, DNS lookups are enabled when a web application calls
76
         request.getRemoteHost().  This can have an adverse impact on
77
         performance, so you can disable it by setting the
78
         "enableLookups" attribute to "false".  When DNS lookups are disabled,
79
         request.getRemoteHost() will return the String version of the
80
         IP address of the remote client.
81
    -->
82

  
83
    <!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
84
    <Connector acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" enableLookups="false" maxHttpHeaderSize="8192" maxSpareThreads="75" maxThreads="150" minSpareThreads="25" port="9080" redirectPort="8443"/>
85
    <!-- Note : To disable connection timeouts, set connectionTimeout value
86
     to 0 -->
87
	
88
	<!-- Note : To use gzip compression you could set the following properties :
89
	
90
			   compression="on" 
91
			   compressionMinSize="2048" 
92
			   noCompressionUserAgents="gozilla, traviata" 
93
			   compressableMimeType="text/html,text/xml"
94
	-->
95

  
96
    <!-- Define a SSL HTTP/1.1 Connector on port 8443 -->
97
    <!--
98
    <Connector port="8443" maxHttpHeaderSize="8192"
99
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
100
               enableLookups="false" disableUploadTimeout="true"
101
               acceptCount="100" scheme="https" secure="true"
102
               clientAuth="false" sslProtocol="TLS" />
103
    -->
104

  
105
    <!-- Define an AJP 1.3 Connector on port 8009 -->
106
    <Connector enableLookups="false" port="9009" protocol="AJP/1.3" redirectPort="8443"/>
107

  
108
    <!-- Define a Proxied HTTP/1.1 Connector on port 8082 -->
109
    <!-- See proxy documentation for more information about using this. -->
110
    <!--
111
    <Connector port="8082" 
112
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
113
               enableLookups="false" acceptCount="100" connectionTimeout="20000"
114
               proxyPort="80" disableUploadTimeout="true" />
115
    -->
116

  
117
    <!-- An Engine represents the entry point (within Catalina) that processes
118
         every request.  The Engine implementation for Tomcat stand alone
119
         analyzes the HTTP headers included with the request, and passes them
120
         on to the appropriate Host (virtual host). -->
121

  
122
    <!-- You should set jvmRoute to support load-balancing via AJP ie :
123
    <Engine name="Standalone" defaultHost="localhost" jvmRoute="jvm1">         
124
    --> 
125
         
126
    <!-- Define the top level container in our container hierarchy -->
127
    <Engine defaultHost="localhost" name="Catalina">
128

  
129
      <!-- The request dumper valve dumps useful debugging information about
130
           the request headers and cookies that were received, and the response
131
           headers and cookies that were sent, for all requests received by
132
           this instance of Tomcat.  If you care only about requests to a
133
           particular virtual host, or a particular application, nest this
134
           element inside the corresponding <Host> or <Context> entry instead.
135

  
136
           For a similar mechanism that is portable to all Servlet 2.4
137
           containers, check out the "RequestDumperFilter" Filter in the
138
           example application (the source for this filter may be found in
139
           "$CATALINA_HOME/webapps/examples/WEB-INF/classes/filters").
140

  
141
           Note that this Valve uses the platform's default character encoding.
142
           This may cause problems for developers in another encoding, e.g.
143
           UTF-8.  Use the RequestDumperFilter instead.
144

  
145
           Also note that enabling this Valve will write a ton of stuff to your
146
           logs.  They are likely to grow quite large.  This extensive log writing
147
           will definitely slow down your server.
148

  
149
           Request dumping is disabled by default.  Uncomment the following
150
           element to enable it. -->
151
      <!--
152
      <Valve className="org.apache.catalina.valves.RequestDumperValve"/>
153
      -->
154

  
155
      <!-- Because this Realm is here, an instance will be shared globally -->
156

  
157
      <!-- This Realm uses the UserDatabase configured in the global JNDI
158
           resources under the key "UserDatabase".  Any edits
159
           that are performed against this UserDatabase are immediately
160
           available for use by the Realm.  -->
161
      <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/>
162

  
163
      <!-- Comment out the old realm but leave here for now in case we
164
           need to go back quickly -->
165
      <!--
166
      <Realm className="org.apache.catalina.realm.MemoryRealm" />
167
      -->
168

  
169
      <!-- Replace the above Realm with one of the following to get a Realm
170
           stored in a database and accessed via JDBC -->
171

  
172
      <!--
173
      <Realm  className="org.apache.catalina.realm.JDBCRealm"
174
             driverName="org.gjt.mm.mysql.Driver"
175
          connectionURL="jdbc:mysql://localhost/authority"
176
         connectionName="test" connectionPassword="test"
177
              userTable="users" userNameCol="user_name" userCredCol="user_pass"
178
          userRoleTable="user_roles" roleNameCol="role_name" />
179
      -->
180

  
181
      <!--
182
      <Realm  className="org.apache.catalina.realm.JDBCRealm"
183
             driverName="oracle.jdbc.driver.OracleDriver"
184
          connectionURL="jdbc:oracle:thin:@ntserver:1521:ORCL"
185
         connectionName="scott" connectionPassword="tiger"
186
              userTable="users" userNameCol="user_name" userCredCol="user_pass"
187
          userRoleTable="user_roles" roleNameCol="role_name" />
188
      -->
189

  
190
      <!--
191
      <Realm  className="org.apache.catalina.realm.JDBCRealm"
192
             driverName="sun.jdbc.odbc.JdbcOdbcDriver"
193
          connectionURL="jdbc:odbc:CATALINA"
194
              userTable="users" userNameCol="user_name" userCredCol="user_pass"
195
          userRoleTable="user_roles" roleNameCol="role_name" />
196
      -->
197

  
198
      <!-- Define the default virtual host
199
           Note: XML Schema validation will not work with Xerces 2.2.
200
       -->
201
      <Host appBase="webapps" autoDeploy="true" name="localhost" unpackWARs="true" xmlNamespaceAware="false" xmlValidation="false">
202

  
203
        <!-- Defines a cluster for this node,
204
             By defining this element, means that every manager will be changed.
205
             So when running a cluster, only make sure that you have webapps in there
206
             that need to be clustered and remove the other ones.
207
             A cluster has the following parameters:
208

  
209
             className = the fully qualified name of the cluster class
210

  
211
             clusterName = a descriptive name for your cluster, can be anything
212

  
213
             mcastAddr = the multicast address, has to be the same for all the nodes
214

  
215
             mcastPort = the multicast port, has to be the same for all the nodes
216
             
217
             mcastBindAddress = bind the multicast socket to a specific address
218
             
219
             mcastTTL = the multicast TTL if you want to limit your broadcast
220
             
221
             mcastSoTimeout = the multicast readtimeout 
222

  
223
             mcastFrequency = the number of milliseconds in between sending a "I'm alive" heartbeat
224

  
225
             mcastDropTime = the number a milliseconds before a node is considered "dead" if no heartbeat is received
226

  
227
             tcpThreadCount = the number of threads to handle incoming replication requests, optimal would be the same amount of threads as nodes 
228

  
229
             tcpListenAddress = the listen address (bind address) for TCP cluster request on this host, 
230
                                in case of multiple ethernet cards.
231
                                auto means that address becomes
232
                                InetAddress.getLocalHost().getHostAddress()
233

  
234
             tcpListenPort = the tcp listen port
235

  
236
             tcpSelectorTimeout = the timeout (ms) for the Selector.select() method in case the OS
237
                                  has a wakup bug in java.nio. Set to 0 for no timeout
238

  
239
             printToScreen = true means that managers will also print to std.out
240

  
241
             expireSessionsOnShutdown = true means that 
242

  
243
             useDirtyFlag = true means that we only replicate a session after setAttribute,removeAttribute has been called.
244
                            false means to replicate the session after each request.
245
                            false means that replication would work for the following piece of code: (only for SimpleTcpReplicationManager)
246
                            <%
247
                            HashMap map = (HashMap)session.getAttribute("map");
248
                            map.put("key","value");
249
                            %>
250
             replicationMode = can be either 'pooled', 'synchronous' or 'asynchronous'.
251
                               * Pooled means that the replication happens using several sockets in a synchronous way. Ie, the data gets replicated, then the request return. This is the same as the 'synchronous' setting except it uses a pool of sockets, hence it is multithreaded. This is the fastest and safest configuration. To use this, also increase the nr of tcp threads that you have dealing with replication.
252
                               * Synchronous means that the thread that executes the request, is also the
253
                               thread the replicates the data to the other nodes, and will not return until all
254
                               nodes have received the information.
255
                               * Asynchronous means that there is a specific 'sender' thread for each cluster node,
256
                               so the request thread will queue the replication request into a "smart" queue,
257
                               and then return to the client.
258
                               The "smart" queue is a queue where when a session is added to the queue, and the same session
259
                               already exists in the queue from a previous request, that session will be replaced
260
                               in the queue instead of replicating two requests. This almost never happens, unless there is a 
261
                               large network delay.
262
        -->             
263
        <!--
264
            When configuring for clustering, you also add in a valve to catch all the requests
265
            coming in, at the end of the request, the session may or may not be replicated.
266
            A session is replicated if and only if all the conditions are met:
267
            1. useDirtyFlag is true or setAttribute or removeAttribute has been called AND
268
            2. a session exists (has been created)
269
            3. the request is not trapped by the "filter" attribute
270

  
271
            The filter attribute is to filter out requests that could not modify the session,
272
            hence we don't replicate the session after the end of this request.
273
            The filter is negative, ie, anything you put in the filter, you mean to filter out,
274
            ie, no replication will be done on requests that match one of the filters.
275
            The filter attribute is delimited by ;, so you can't escape out ; even if you wanted to.
276

  
277
            filter=".*\.gif;.*\.js;" means that we will not replicate the session after requests with the URI
278
            ending with .gif and .js are intercepted.
279
            
280
            The deployer element can be used to deploy apps cluster wide.
281
            Currently the deployment only deploys/undeploys to working members in the cluster
282
            so no WARs are copied upons startup of a broken node.
283
            The deployer watches a directory (watchDir) for WAR files when watchEnabled="true"
284
            When a new war file is added the war gets deployed to the local instance,
285
            and then deployed to the other instances in the cluster.
286
            When a war file is deleted from the watchDir the war is undeployed locally 
287
            and cluster wide
288
        -->
289
        
290
        <!--
291
        <Cluster className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"
292
                 managerClassName="org.apache.catalina.cluster.session.DeltaManager"
293
                 expireSessionsOnShutdown="false"
294
                 useDirtyFlag="true"
295
                 notifyListenersOnReplication="true">
296

  
297
            <Membership 
298
                className="org.apache.catalina.cluster.mcast.McastService"
299
                mcastAddr="228.0.0.4"
300
                mcastPort="45564"
301
                mcastFrequency="500"
302
                mcastDropTime="3000"/>
303

  
304
            <Receiver 
305
                className="org.apache.catalina.cluster.tcp.ReplicationListener"
306
                tcpListenAddress="auto"
307
                tcpListenPort="4001"
308
                tcpSelectorTimeout="100"
309
                tcpThreadCount="6"/>
310

  
311
            <Sender
312
                className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"
313
                replicationMode="pooled"
314
                ackTimeout="15000"
315
                waitForAck="true"/>
316

  
317
            <Valve className="org.apache.catalina.cluster.tcp.ReplicationValve"
318
                   filter=".*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\.css;.*\.txt;"/>
319
                   
320
            <Deployer className="org.apache.catalina.cluster.deploy.FarmWarDeployer"
321
                      tempDir="/tmp/war-temp/"
322
                      deployDir="/tmp/war-deploy/"
323
                      watchDir="/tmp/war-listen/"
324
                      watchEnabled="false"/>
325
                      
326
            <ClusterListener className="org.apache.catalina.cluster.session.ClusterSessionListener"/>
327
        </Cluster>
328
        -->        
329

  
330

  
331

  
332
        <!-- Normally, users must authenticate themselves to each web app
333
             individually.  Uncomment the following entry if you would like
334
             a user to be authenticated the first time they encounter a
335
             resource protected by a security constraint, and then have that
336
             user identity maintained across *all* web applications contained
337
             in this virtual host. -->
338
        <!--
339
        <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
340
        -->
341

  
342
        <!-- Access log processes all requests for this virtual host.  By
343
             default, log files are created in the "logs" directory relative to
344
             $CATALINA_HOME.  If you wish, you can specify a different
345
             directory with the "directory" attribute.  Specify either a relative
346
             (to $CATALINA_HOME) or absolute path to the desired directory.
347
        -->
348
        <!--
349
        <Valve className="org.apache.catalina.valves.AccessLogValve"
350
                 directory="logs"  prefix="localhost_access_log." suffix=".txt"
351
                 pattern="common" resolveHosts="false"/>
352
        -->
353

  
354
        <!-- Access log processes all requests for this virtual host.  By
355
             default, log files are created in the "logs" directory relative to
356
             $CATALINA_HOME.  If you wish, you can specify a different
357
             directory with the "directory" attribute.  Specify either a relative
358
             (to $CATALINA_HOME) or absolute path to the desired directory.
359
             This access log implementation is optimized for maximum performance,
360
             but is hardcoded to support only the "common" and "combined" patterns.
361
        -->
362
        <!--
363
        <Valve className="org.apache.catalina.valves.FastCommonAccessLogValve"
364
                 directory="logs"  prefix="localhost_access_log." suffix=".txt"
365
                 pattern="common" resolveHosts="false"/>
366
        -->
367

  
368
    <!--  <Context docBase="wps" path="/wps" reloadable="true" source="org.eclipse.jst.j2ee.server:wps">
369
		     <Resource auth="Container" driverClassName="org.postgresql.Driver" 
370
		     maxActive="20" maxIdle="10" maxWait="-1" name="jdbc/callejero" 
371
		     password="xcvb" type="javax.sql.DataSource" url="org:postgresql://logexvirt1:5432/db_callejero" username="callejero"/>
372
		</Context> 
373
	-->	
374
		 <Context docBase="wps" path="/wps" reloadable="true" source="org.eclipse.jst.j2ee.server:wps">
375
		     <Resource name="jdbc/callejero"  auth="Container" driverClassName="org.postgresql.Driver" 
376
		     maxActive="20" maxIdle="10" maxWait="-1"  
377
		     password="xcvb" type="javax.sql.DataSource" url="org:postgresql://logexvirt1:5432/db_callejero" username="callejero"/>
378
		</Context> 
379
		
380
		 <Context docBase="DownloadWPSResults" path="/DownloadWPSResults" reloadable="true" source="org.eclipse.jst.j2ee.server:DownloadWPSResults"/>
381
      </Host>
382

  
383
    </Engine>
384

  
385
  </Service>
386

  
387
</Server>
tmp/trunk/servidor/Otros/Servers/Tomcat v5.5 Server at localhost-config/tomcat-users.xml
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!--
3
  Licensed to the Apache Software Foundation (ASF) under one or more
4
  contributor license agreements.  See the NOTICE file distributed with
5
  this work for additional information regarding copyright ownership.
6
  The ASF licenses this file to You under the Apache License, Version 2.0
7
  (the "License"); you may not use this file except in compliance with
8
  the License.  You may obtain a copy of the License at
9

  
10
      http://www.apache.org/licenses/LICENSE-2.0
11

  
12
  Unless required by applicable law or agreed to in writing, software
13
  distributed under the License is distributed on an "AS IS" BASIS,
14
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
  See the License for the specific language governing permissions and
16
  limitations under the License.
17
--><!--
18
  NOTE:  By default, no user is included in the "manager" role required
19
  to operate the "/manager" web application.  If you wish to use this app,
20
  you must define such a user - the username and password are arbitrary.
21
--><tomcat-users>
22
  <user name="tomcat" password="tomcat" roles="tomcat"/>
23
  <user name="role1" password="tomcat" roles="role1"/>
24
  <user name="both" password="tomcat" roles="tomcat,role1"/>
25
</tomcat-users>
tmp/trunk/servidor/Otros/Servers/Tomcat v5.5 Server at localhost-config/catalina.properties
1
# Licensed to the Apache Software Foundation (ASF) under one or more
2
# contributor license agreements.  See the NOTICE file distributed with
3
# this work for additional information regarding copyright ownership.
4
# The ASF licenses this file to You under the Apache License, Version 2.0
5
# (the "License"); you may not use this file except in compliance with
6
# the License.  You may obtain a copy of the License at
7
#
8
#     http://www.apache.org/licenses/LICENSE-2.0
9
#
10
# Unless required by applicable law or agreed to in writing, software
11
# distributed under the License is distributed on an "AS IS" BASIS,
12
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
# See the License for the specific language governing permissions and
14
# limitations under the License.
15

  
16
#
17
# List of comma-separated packages that start with or equal this string
18
# will cause a security exception to be thrown when
19
# passed to checkPackageAccess unless the
20
# corresponding RuntimePermission ("accessClassInPackage."+package) has
21
# been granted.
22
package.access=sun.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.,sun.beans.
23
#
24
# List of comma-separated packages that start with or equal this string
25
# will cause a security exception to be thrown when
26
# passed to checkPackageDefinition unless the
27
# corresponding RuntimePermission ("defineClassInPackage."+package) has
28
# been granted.
29
#
30
# by default, no packages are restricted for definition, and none of
31
# the class loaders supplied with the JDK call checkPackageDefinition.
32
#
33
package.definition=sun.,java.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.
34

  
35
#
36
#
37
# List of comma-separated paths defining the contents of the "common" 
38
# classloader. Prefixes should be used to define what is the repository type.
39
# Path may be relative to the CATALINA_HOME or CATALINA_BASE path or absolute.
40
# If left as blank,the JVM system loader will be used as Catalina's "common" 
41
# loader.
42
# Examples:
43
#     "foo": Add this folder as a class repository
44
#     "foo/*.jar": Add all the JARs of the specified folder as class 
45
#                  repositories
46
#     "foo/bar.jar": Add bar.jar as a class repository
47
common.loader=${catalina.home}/common/classes,${catalina.home}/common/i18n/*.jar,${catalina.home}/common/endorsed/*.jar,${catalina.home}/common/lib/*.jar
48

  
49
#
50
# List of comma-separated paths defining the contents of the "server" 
51
# classloader. Prefixes should be used to define what is the repository type.
52
# Path may be relative to the CATALINA_HOME or CATALINA_BASE path or absolute.
53
# If left as blank, the "common" loader will be used as Catalina's "server" 
54
# loader.
55
# Examples:
56
#     "foo": Add this folder as a class repository
57
#     "foo/*.jar": Add all the JARs of the specified folder as class 
58
#                  repositories
59
#     "foo/bar.jar": Add bar.jar as a class repository
60
server.loader=${catalina.home}/server/classes,${catalina.home}/server/lib/*.jar
61

  
62
#
63
# List of comma-separated paths defining the contents of the "shared" 
64
# classloader. Prefixes should be used to define what is the repository type.
65
# Path may be relative to the CATALINA_BASE path or absolute. If left as blank,
66
# the "common" loader will be used as Catalina's "shared" loader.
67
# Examples:
68
#     "foo": Add this folder as a class repository
69
#     "foo/*.jar": Add all the JARs of the specified folder as class 
70
#                  repositories
71
#     "foo/bar.jar": Add bar.jar as a class repository 
72
# Please note that for individual jar files, e.g. bar.jar, you need the URL form
73
# starting with file:.
74
shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar
75

  
76
#
77
# String cache configuration.
78
tomcat.util.buf.StringCache.byte.enabled=true
79
#tomcat.util.buf.StringCache.char.enabled=true
80
#tomcat.util.buf.StringCache.trainThreshold=500000
81
#tomcat.util.buf.StringCache.cacheSize=5000
tmp/trunk/servidor/Otros/Servers/Tomcat v5.5 Server at localhost-config/catalina.policy
1
// Licensed to the Apache Software Foundation (ASF) under one or more
2
// contributor license agreements.  See the NOTICE file distributed with
3
// this work for additional information regarding copyright ownership.
4
// The ASF licenses this file to You under the Apache License, Version 2.0
5
// (the "License"); you may not use this file except in compliance with
6
// the License.  You may obtain a copy of the License at
7
//
8
//     http://www.apache.org/licenses/LICENSE-2.0
9
//
10
// Unless required by applicable law or agreed to in writing, software
11
// distributed under the License is distributed on an "AS IS" BASIS,
12
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
// See the License for the specific language governing permissions and
14
// limitations under the License.
15

  
16
// ============================================================================
17
// catalina.corepolicy - Security Policy Permissions for Tomcat 5
18
//
19
// This file contains a default set of security policies to be enforced (by the
20
// JVM) when Catalina is executed with the "-security" option.  In addition
21
// to the permissions granted here, the following additional permissions are
22
// granted to the codebase specific to each web application:
23
//
24
// * Read access to the document root directory
25
//
26
// $Id: catalina.policy 609451 2008-01-06 22:38:14Z markt $
27
// ============================================================================
28

  
29

  
30
// ========== SYSTEM CODE PERMISSIONS =========================================
31

  
32

  
33
// These permissions apply to javac
34
grant codeBase "file:${java.home}/lib/-" {
35
        permission java.security.AllPermission;
36
};
37

  
38
// These permissions apply to all shared system extensions
39
grant codeBase "file:${java.home}/jre/lib/ext/-" {
40
        permission java.security.AllPermission;
41
};
42

  
43
// These permissions apply to javac when ${java.home] points at $JAVA_HOME/jre
44
grant codeBase "file:${java.home}/../lib/-" {
45
        permission java.security.AllPermission;
46
};
47

  
48
// These permissions apply to all shared system extensions when
49
// ${java.home} points at $JAVA_HOME/jre
50
grant codeBase "file:${java.home}/lib/ext/-" {
51
        permission java.security.AllPermission;
52
};
53

  
54

  
55
// ========== CATALINA CODE PERMISSIONS =======================================
56

  
57

  
58
// These permissions apply to the launcher code
59
grant codeBase "file:${catalina.home}/bin/commons-launcher.jar" {
60
        permission java.security.AllPermission;
61
};
62

  
63
// These permissions apply to the daemon code
64
grant codeBase "file:${catalina.home}/bin/commons-daemon.jar" {
65
        permission java.security.AllPermission;
66
};
67

  
68
// These permissions apply to the commons-logging API
69
grant codeBase "file:${catalina.home}/bin/commons-logging-api.jar" {
70
        permission java.security.AllPermission;
71
};
72

  
73
// These permissions apply to the server startup code
74
grant codeBase "file:${catalina.home}/bin/bootstrap.jar" {
75
        permission java.security.AllPermission;
76
};
77

  
78
// These permissions apply to the JMX server
79
grant codeBase "file:${catalina.home}/bin/jmx.jar" {
80
        permission java.security.AllPermission;
81
};
82

  
83
// These permissions apply to JULI
84
grant codeBase "file:${catalina.home}/bin/tomcat-juli.jar" {
85
        permission java.util.PropertyPermission "java.util.logging.config.class", "read";
86
        permission java.util.PropertyPermission "java.util.logging.config.file", "read";
87
        permission java.lang.RuntimePermission "shutdownHooks";
88
        permission java.io.FilePermission "${catalina.base}${file.separator}conf${file.separator}logging.properties", "read";
89
        permission java.util.PropertyPermission "catalina.base", "read";
90
        permission java.util.logging.LoggingPermission "control";
91
        permission java.io.FilePermission "${catalina.base}${file.separator}logs", "read, write";
92
        permission java.io.FilePermission "${catalina.base}${file.separator}logs${file.separator}*", "read, write";
93
        permission java.lang.RuntimePermission "getClassLoader";
94
        // To enable per context logging configuration, permit read access to the appropriate file.
95
        // Be sure that the logging configuration is secure before enabling such access
96
        // eg for the examples web application:
97
        // permission java.io.FilePermission "${catalina.base}${file.separator}webapps${file.separator}examples${file.separator}WEB-INF${file.separator}classes${file.separator}logging.properties", "read";
98
};
99

  
100
// These permissions apply to the servlet API classes
101
// and those that are shared across all class loaders
102
// located in the "common" directory
103
grant codeBase "file:${catalina.home}/common/-" {
104
        permission java.security.AllPermission;
105
};
106

  
107
// These permissions apply to the container's core code, plus any additional
108
// libraries installed in the "server" directory
109
grant codeBase "file:${catalina.home}/server/-" {
110
        permission java.security.AllPermission;
111
};
112

  
113
// The permissions granted to the balancer WEB-INF/classes and WEB-INF/lib directory
114
grant codeBase "file:${catalina.home}/webapps/balancer/-" {
115
        permission java.lang.RuntimePermission "accessClassInPackage.org.apache.tomcat.util.digester";
116
        permission java.lang.RuntimePermission "accessClassInPackage.org.apache.tomcat.util.digester.*";
117
};
118
// ========== WEB APPLICATION PERMISSIONS =====================================
119

  
120

  
121
// These permissions are granted by default to all web applications
122
// In addition, a web application will be given a read FilePermission
123
// and JndiPermission for all files and directories in its document root.
124
grant { 
125
    // Required for JNDI lookup of named JDBC DataSource's and
126
    // javamail named MimePart DataSource used to send mail
127
    permission java.util.PropertyPermission "java.home", "read";
128
    permission java.util.PropertyPermission "java.naming.*", "read";
129
    permission java.util.PropertyPermission "javax.sql.*", "read";
130

  
131
    // OS Specific properties to allow read access
132
    permission java.util.PropertyPermission "os.name", "read";
133
    permission java.util.PropertyPermission "os.version", "read";
134
    permission java.util.PropertyPermission "os.arch", "read";
135
    permission java.util.PropertyPermission "file.separator", "read";
136
    permission java.util.PropertyPermission "path.separator", "read";
137
    permission java.util.PropertyPermission "line.separator", "read";
138

  
139
    // JVM properties to allow read access
140
    permission java.util.PropertyPermission "java.version", "read";
141
    permission java.util.PropertyPermission "java.vendor", "read";
142
    permission java.util.PropertyPermission "java.vendor.url", "read";
143
    permission java.util.PropertyPermission "java.class.version", "read";
144
    permission java.util.PropertyPermission "java.specification.version", "read";
145
    permission java.util.PropertyPermission "java.specification.vendor", "read";
146
    permission java.util.PropertyPermission "java.specification.name", "read";
147

  
148
    permission java.util.PropertyPermission "java.vm.specification.version", "read";
149
    permission java.util.PropertyPermission "java.vm.specification.vendor", "read";
150
    permission java.util.PropertyPermission "java.vm.specification.name", "read";
151
    permission java.util.PropertyPermission "java.vm.version", "read";
152
    permission java.util.PropertyPermission "java.vm.vendor", "read";
153
    permission java.util.PropertyPermission "java.vm.name", "read";
154

  
155
    // Required for OpenJMX
156
    permission java.lang.RuntimePermission "getAttribute";
157

  
158
    // Allow read of JAXP compliant XML parser debug
159
    permission java.util.PropertyPermission "jaxp.debug", "read";
160

  
161
    // Precompiled JSPs need access to this package.
162
    permission java.lang.RuntimePermission "accessClassInPackage.org.apache.jasper.runtime";
163
    permission java.lang.RuntimePermission "accessClassInPackage.org.apache.jasper.runtime.*";
164

  
165
    // Precompiled JSPs need access to this system property.
166
    permission java.util.PropertyPermission "org.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER", "read";
167
};
168

  
169

  
170
// You can assign additional permissions to particular web applications by
171
// adding additional "grant" entries here, based on the code base for that
172
// application, /WEB-INF/classes/, or /WEB-INF/lib/ jar files.
173
//
174
// Different permissions can be granted to JSP pages, classes loaded from
175
// the /WEB-INF/classes/ directory, all jar files in the /WEB-INF/lib/
176
// directory, or even to individual jar files in the /WEB-INF/lib/ directory.
177
//
178
// For instance, assume that the standard "examples" application
179
// included a JDBC driver that needed to establish a network connection to the
180
// corresponding database and used the scrape taglib to get the weather from
181
// the NOAA web server.  You might create a "grant" entries like this:
182
//
183
// The permissions granted to the context root directory apply to JSP pages.
184
// grant codeBase "file:${catalina.home}/webapps/examples/-" {
185
//      permission java.net.SocketPermission "dbhost.mycompany.com:5432", "connect";
186
//      permission java.net.SocketPermission "*.noaa.gov:80", "connect";
187
// };
188
//
189
// The permissions granted to the context WEB-INF/classes directory
190
// grant codeBase "file:${catalina.home}/webapps/examples/WEB-INF/classes/-" {
191
// };
192
//
193
// The permission granted to your JDBC driver
194
// grant codeBase "jar:file:${catalina.home}/webapps/examples/WEB-INF/lib/driver.jar!/-" {
195
//      permission java.net.SocketPermission "dbhost.mycompany.com:5432", "connect";
196
// };
197
// The permission granted to the scrape taglib
198
// grant codeBase "jar:file:${catalina.home}/webapps/examples/WEB-INF/lib/scrape.jar!/-" {
199
//      permission java.net.SocketPermission "*.noaa.gov:80", "connect";
200
// };
201

  
tmp/trunk/servidor/Otros/Servers/Tomcat v5.5 Server at localhost-config/web.xml
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!--
3
  Licensed to the Apache Software Foundation (ASF) under one or more
4
  contributor license agreements.  See the NOTICE file distributed with
5
  this work for additional information regarding copyright ownership.
6
  The ASF licenses this file to You under the Apache License, Version 2.0
7
  (the "License"); you may not use this file except in compliance with
8
  the License.  You may obtain a copy of the License at
9

  
10
      http://www.apache.org/licenses/LICENSE-2.0
11

  
12
  Unless required by applicable law or agreed to in writing, software
13
  distributed under the License is distributed on an "AS IS" BASIS,
14
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
  See the License for the specific language governing permissions and
16
  limitations under the License.
17
--><web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
18

  
19
  <!-- ======================== Introduction ============================== -->
20
  <!-- This document defines default values for *all* web applications      -->
21
  <!-- loaded into this instance of Tomcat.  As each application is         -->
22
  <!-- deployed, this file is processed, followed by the                    -->
23
  <!-- "/WEB-INF/web.xml" deployment descriptor from your own               -->
24
  <!-- applications.                                                        -->
25
  <!--                                                                      -->
26
  <!-- WARNING:  Do not configure application-specific resources here!      -->
27
  <!-- They should go in the "/WEB-INF/web.xml" file in your application.   -->
28

  
29

  
30
  <!-- ================== Built In Servlet Definitions ==================== -->
31

  
32

  
33
  <!-- The default servlet for all web applications, that serves static     -->
34
  <!-- resources.  It processes all requests that are not mapped to other   -->
35
  <!-- servlets with servlet mappings (defined either here or in your own   -->
36
  <!-- web.xml file.  This servlet supports the following initialization    -->
37
  <!-- parameters (default values are in square brackets):                  -->
38
  <!--                                                                      -->
39
  <!--   debug               Debugging detail level for messages logged     -->
40
  <!--                       by this servlet.  [0]                          -->
41
  <!--                                                                      -->
42
  <!--   fileEncoding        Encoding to be used to read static resources   -->
43
  <!--                       [platform default]                             -->
44
  <!--                                                                      -->
45
  <!--   input               Input buffer size (in bytes) when reading      -->
46
  <!--                       resources to be served.  [2048]                -->
47
  <!--                                                                      -->
48
  <!--   listings            Should directory listings be produced if there -->
49
  <!--                       is no welcome file in this directory?  [false] -->
50
  <!--                       WARNING: Listings for directories with many    -->
51
  <!--                       entries can be slow and may consume            -->
52
  <!--                       significant proportions of server resources.   -->
53
  <!--                                                                      -->
54
  <!--   output              Output buffer size (in bytes) when writing     -->
55
  <!--                       resources to be served.  [2048]                -->
56
  <!--                                                                      -->
57
  <!--   readonly            Is this context "read only", so HTTP           -->
58
  <!--                       commands like PUT and DELETE are               -->
59
  <!--                       rejected?  [true]                              -->
60
  <!--                                                                      -->
61
  <!--   readmeFile          File name to display with the directory        -->
62
  <!--                       contents. [null]                               -->
63
  <!--                                                                      -->
64
  <!--   sendfileSize        If the connector used supports sendfile, this  -->
65
  <!--                       represents the minimal file size in KB for     -->
66
  <!--                       which sendfile will be used. Use a negative    -->
67
  <!--                       value to always disable sendfile.  [48]        -->
68
  <!--                                                                      -->
69
  <!--  For directory listing customization. Checks localXsltFile, then     -->
70
  <!--  globalXsltFile, then defaults to original behavior.                 -->
71
  <!--                                                                      -->
72
  <!--   localXsltFile       Make directory listings an XML doc and         -->
73
  <!--                       pass the result to this style sheet residing   -->
74
  <!--                       in that directory. This overrides              -->
75
  <!--                        globalXsltFile[null]                          -->
76
  <!--                                                                      -->
77
  <!--   globalXsltFile      Site wide configuration version of             -->
78
  <!--                       localXsltFile This argument is expected        -->
79
  <!--                       to be a physical file. [null]                  -->
80
  <!--                                                                      -->
81
  <!--                                                                      -->
82

  
83
    <servlet>
84
        <servlet-name>default</servlet-name>
85
        <servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class>
86
        <init-param>
87
            <param-name>debug</param-name>
88
            <param-value>0</param-value>
89
        </init-param>
90
        <init-param>
91
            <param-name>listings</param-name>
92
            <param-value>false</param-value>
93
        </init-param>
94
        <load-on-startup>1</load-on-startup>
95
    </servlet>
96

  
97

  
98
  <!-- The "invoker" servlet, which executes anonymous servlet classes      -->
99
  <!-- that have not been defined in a web.xml file.  Traditionally, this   -->
100
  <!-- servlet is mapped to the URL pattern "/servlet/*", but you can map   -->
101
  <!-- it to other patterns as well.  The extra path info portion of such a -->
102
  <!-- request must be the fully qualified class name of a Java class that  -->
103
  <!-- implements Servlet (or extends HttpServlet), or the servlet name     -->
104
  <!-- of an existing servlet definition.     This servlet supports the     -->
105
  <!-- following initialization parameters (default values are in square    -->
106
  <!-- brackets):                                                           -->
107
  <!--                                                                      -->
108
  <!--   debug               Debugging detail level for messages logged     -->
109
  <!--                       by this servlet.  [0]                          -->
110

  
111
<!--
112
    <servlet>
113
        <servlet-name>invoker</servlet-name>
114
        <servlet-class>
115
          org.apache.catalina.servlets.InvokerServlet
116
        </servlet-class>
117
        <init-param>
118
            <param-name>debug</param-name>
119
            <param-value>0</param-value>
120
        </init-param>
121
        <load-on-startup>2</load-on-startup>
122
    </servlet>
123
-->
124

  
125

  
126
  <!-- The JSP page compiler and execution servlet, which is the mechanism  -->
127
  <!-- used by Tomcat to support JSP pages.  Traditionally, this servlet    -->
128
  <!-- is mapped to the URL pattern "*.jsp".  This servlet supports the     -->
129
  <!-- following initialization parameters (default values are in square    -->
130
  <!-- brackets):                                                           -->
131
  <!--                                                                      -->
132
  <!--   checkInterval       If development is false and checkInterval is   -->
133
  <!--                       greater than zero, background compilations are -->
134
  <!--                       enabled. checkInterval is the time in seconds  -->
135
  <!--                       between checks to see if a JSP page needs to   -->
136
  <!--                       be recompiled. [0]                             -->
137
  <!--                                                                      -->
138
  <!--   modificationTestInterval                                           -->
139
  <!--                       Causes a JSP (and its dependent files) to not  -->
140
  <!--                       be checked for modification during the         -->
141
  <!--                       specified time interval (in seconds) from the  -->
142
  <!--                       last time the JSP was checked for              -->
143
  <!--                       modification. A value of 0 will cause the JSP  -->
144
  <!--                       to be checked on every access.                 -->
145
  <!--                       Used in development mode only. [4]             -->
146
  <!--                                                                      -->
147
  <!--   compiler            Which compiler Ant should use to compile JSP   -->
148
  <!--                       pages.  See the Ant documentation for more     -->
149
  <!--                       information.                                   -->
150
  <!--                                                                      -->
151
  <!--   classdebuginfo      Should the class file be compiled with         -->
152
  <!--                       debugging information?  [true]                 -->
153
  <!--                                                                      -->
154
  <!--   classpath           What class path should I use while compiling   -->
155
  <!--                       generated servlets?  [Created dynamically      -->
156
  <!--                       based on the current web application]          -->
157
  <!--                                                                      -->
158
  <!--   development         Is Jasper used in development mode? If true,   -->
159
  <!--                       the frequency at which JSPs are checked for    -->
160
  <!--                       modification may be specified via the          -->
161
  <!--                       modificationTestInterval parameter. [true]     -->
162
  <!--                                                                      -->
163
  <!--   enablePooling       Determines whether tag handler pooling is      -->
164
  <!--                       enabled  [true]                                -->
165
  <!--                                                                      -->
166
  <!--   fork                Tell Ant to fork compiles of JSP pages so that -->
167
  <!--                       a separate JVM is used for JSP page compiles   -->
168
  <!--                       from the one Tomcat is running in. [true]      -->
169
  <!--                                                                      -->
170
  <!--   ieClassId           The class-id value to be sent to Internet      -->
171
  <!--                       Explorer when using <jsp:plugin> tags.         -->
172
  <!--                       [clsid:8AD9C840-044E-11D1-B3E9-00805F499D93]   -->
173
  <!--                                                                      -->
174
  <!--   javaEncoding        Java file encoding to use for generating java  -->
175
  <!--                       source files. [UTF8]                           -->
176
  <!--                                                                      -->
177
  <!--   keepgenerated       Should we keep the generated Java source code  -->
178
  <!--                       for each page instead of deleting it? [true]   -->
179
  <!--                                                                      -->
180
  <!--   mappedfile          Should we generate static content with one     -->
181
  <!--                       print statement per input line, to ease        -->
182
  <!--                       debugging?  [true]                             -->
183
  <!--                                                                      -->
184
  <!--   trimSpaces          Should white spaces in template text between   -->
185
  <!--                       actions or directives be trimmed?  [false]     -->
186
  <!--                                                                      -->
187
  <!--   suppressSmap        Should the generation of SMAP info for JSR45   -->
188
  <!--                       debugging be suppressed?  [false]              -->
189
  <!--                                                                      -->
190
  <!--   dumpSmap            Should the SMAP info for JSR45 debugging be    -->
191
  <!--                       dumped to a file? [false]                      -->
192
  <!--                       False if suppressSmap is true                  -->
193
  <!--                                                                      -->
194
  <!--   genStrAsCharArray   Should text strings be generated as char       -->
195
  <!--                       arrays, to improve performance in some cases?  -->
196
  <!--                       [false]                                        -->
197
  <!--                                                                      -->
198
  <!--   errorOnUseBeanInvalidClassAttribute                                -->
199
  <!--                       Should Jasper issue an error when the value of -->
200
  <!--                       the class attribute in an useBean action is    -->
201
  <!--                       not a valid bean class?  [true]                -->
202
  <!--                                                                      -->
203
  <!--   scratchdir          What scratch directory should we use when      -->
204
  <!--                       compiling JSP pages?  [default work directory  -->
205
  <!--                       for the current web application]               -->
206
  <!--                                                                      -->
207
  <!--   xpoweredBy          Determines whether X-Powered-By response       -->
208
  <!--                       header is added by generated servlet  [false]  -->
209
  <!--                                                                      -->
210
  <!--   compilerTargetVM    Compiler target VM                             -->  
211
  <!--                       default is System.properties                   -->
212
  <!--                        java.specification.version > 1.4              -->
213
  <!--                        [1.5] else [1.4]                              -->
214
  <!--                                                                      -->
215
  <!--   compilerSourceVM    Compiler source VM                             -->
216
  <!--                       default is System.properties                   -->
217
  <!--                        java.specification.version > 1.4              -->
218
  <!--                        [1.5] else [1.4]                              -->
219
  <!--                                                                      -->
220
  <!-- If you wish to use Jikes to compile JSP pages:                       -->
221
  <!--   Please see the "Using Jikes" section of the Jasper-HowTo           -->
222
  <!--   page in the Tomcat documentation.                                  -->
223

  
224
    <servlet>
225
        <servlet-name>jsp</servlet-name>
226
        <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
227
        <init-param>
228
            <param-name>fork</param-name>
229
            <param-value>false</param-value>
230
        </init-param>
231
        <init-param>
232
            <param-name>xpoweredBy</param-name>
233
            <param-value>false</param-value>
234
        </init-param>
235
        <load-on-startup>3</load-on-startup>
236
    </servlet>
237

  
238

  
239
  <!-- NOTE: An SSI Filter is also available as an alternative SSI          -->
240
  <!-- implementation. Use either the Servlet or the Filter but NOT both.   -->
241
  <!--                                                                      -->
242
  <!-- Server Side Includes processing servlet, which processes SSI         -->
243
  <!-- directives in HTML pages consistent with similar support in web      -->
244
  <!-- servers like Apache.  Traditionally, this servlet is mapped to the   -->
245
  <!-- URL pattern "*.shtml".  This servlet supports the following          -->
246
  <!-- initialization parameters (default values are in square brackets):   -->
247
  <!--                                                                      -->
248
  <!--   buffered            Should output from this servlet be buffered?   -->
249
  <!--                       (0=false, 1=true)  [0]                         -->
250
  <!--                                                                      -->
251
  <!--   debug               Debugging detail level for messages logged     -->
252
  <!--                       by this servlet.  [0]                          -->
253
  <!--                                                                      -->
254
  <!--   expires             The number of seconds before a page with SSI   -->
255
  <!--                       directives will expire.  [No default]          -->
256
  <!--                                                                      -->
257
  <!--   isVirtualWebappRelative                                            -->
258
  <!--                       Should "virtual" paths be interpreted as       -->
259
  <!--                       relative to the context root, instead of       -->
260
  <!--                       the server root?  (0=false, 1=true) [0]        -->
261
  <!--                                                                      -->
262
  <!--   inputEncoding       The encoding to assume for SSI resources if    -->
263
  <!--                       one is not available from the resource.        -->
264
  <!--                       [Platform default]                             -->
265
  <!--                                                                      -->
266
  <!--   outputEncoding      The encoding to use for the page that results  -->
267
  <!--                       from the SSI processing. [UTF-8]               -->
268
  <!--                                                                      -->
269
  <!--                                                                      -->
270
  <!-- IMPORTANT: To use the SSI servlet, you also need to rename the       -->
271
  <!--            $CATALINA_HOME/server/lib/servlets-ssi.renametojar file   -->
272
  <!--            to $CATALINA_HOME/server/lib/servlets-ssi.jar             -->
273

  
274
<!--
275
    <servlet>
276
        <servlet-name>ssi</servlet-name>
277
        <servlet-class>
278
          org.apache.catalina.ssi.SSIServlet
279
        </servlet-class>
280
        <init-param>
281
          <param-name>buffered</param-name>
282
          <param-value>1</param-value>
283
        </init-param>
284
        <init-param>
285
          <param-name>debug</param-name>
286
          <param-value>0</param-value>
287
        </init-param>
288
        <init-param>
289
          <param-name>expires</param-name>
290
          <param-value>666</param-value>
291
        </init-param>
292
        <init-param>
293
          <param-name>isVirtualWebappRelative</param-name>
294
          <param-value>0</param-value>
295
        </init-param>
296
        <load-on-startup>4</load-on-startup>
297
    </servlet>
298
-->
299

  
300

  
301
  <!-- Common Gateway Includes (CGI) processing servlet, which supports     -->
302
  <!-- execution of external applications that conform to the CGI spec      -->
303
  <!-- requirements.  Typically, this servlet is mapped to the URL pattern  -->
304
  <!-- "/cgi-bin/*", which means that any CGI applications that are         -->
305
  <!-- executed must be present within the web application.  This servlet   -->
306
  <!-- supports the following initialization parameters (default values     -->
307
  <!-- are in square brackets):                                             -->
308
  <!--                                                                      -->
309
  <!--   cgiPathPrefix        The CGI search path will start at             -->
310
  <!--                        webAppRootDir + File.separator + this prefix. -->
311
  <!--                        [WEB-INF/cgi]                                 -->
312
  <!--                                                                      -->
313
  <!--   debug                Debugging detail level for messages logged    -->
314
  <!--                        by this servlet.  [0]                         -->
315
  <!--                                                                      -->
316
  <!--   executable           Name of the exectuable used to run the        -->
317
  <!--                        script. [perl]                                -->
318
  <!--                                                                      -->
319
  <!--   parameterEncoding    Name of parameter encoding to be used with    -->
320
  <!--                        CGI servlet.                                  -->
321
  <!--                        [System.getProperty("file.encoding","UTF-8")] -->
322
  <!--                                                                      -->
323
  <!--   passShellEnvironment Should the shell environment variables (if    -->
324
  <!--                        any) be passed to the CGI script? [false]     -->
325
  <!--                                                                      -->
326
  <!-- IMPORTANT: To use the CGI servlet, you also need to rename the       -->
327
  <!--            $CATALINA_HOME/server/lib/servlets-cgi.renametojar file   -->
328
  <!--            to $CATALINA_HOME/server/lib/servlets-cgi.jar             -->
329

  
330
<!--
331
    <servlet>
332
        <servlet-name>cgi</servlet-name>
333
        <servlet-class>org.apache.catalina.servlets.CGIServlet</servlet-class>
334
        <init-param>
335
          <param-name>debug</param-name>
336
          <param-value>0</param-value>
337
        </init-param>
338
        <init-param>
339
          <param-name>cgiPathPrefix</param-name>
340
          <param-value>WEB-INF/cgi</param-value>
341
        </init-param>
342
         <load-on-startup>5</load-on-startup>
343
    </servlet>
344
-->
345

  
346

  
347
  <!-- ================ Built In Servlet Mappings ========================= -->
348

  
349

  
350
  <!-- The servlet mappings for the built in servlets defined above.  Note  -->
351
  <!-- that, by default, the CGI and SSI servlets are *not* mapped.  You    -->
352
  <!-- must uncomment these mappings (or add them to your application's own -->
353
  <!-- web.xml deployment descriptor) to enable these services              -->
354

  
355
    <!-- The mapping for the default servlet -->
356
    <servlet-mapping>
357
        <servlet-name>default</servlet-name>
358
        <url-pattern>/</url-pattern>
359
    </servlet-mapping>
360

  
361
    <!-- The mapping for the invoker servlet -->
362
<!--
363
    <servlet-mapping>
364
        <servlet-name>invoker</servlet-name>
365
        <url-pattern>/servlet/*</url-pattern>
366
    </servlet-mapping>
367
-->
368

  
369
    <!-- The mapping for the JSP servlet -->
370
    <servlet-mapping>
371
        <servlet-name>jsp</servlet-name>
372
        <url-pattern>*.jsp</url-pattern>
373
    </servlet-mapping>
374

  
375
    <servlet-mapping>
376
        <servlet-name>jsp</servlet-name>
377
        <url-pattern>*.jspx</url-pattern>
378
    </servlet-mapping>
379

  
380
    <!-- The mapping for the SSI servlet -->
381
<!--
382
    <servlet-mapping>
383
        <servlet-name>ssi</servlet-name>
384
        <url-pattern>*.shtml</url-pattern>
385
    </servlet-mapping>
386
-->
387

  
388
    <!-- The mapping for the CGI Gateway servlet -->
389

  
390
<!--
391
    <servlet-mapping>
392
        <servlet-name>cgi</servlet-name>
393
        <url-pattern>/cgi-bin/*</url-pattern>
394
    </servlet-mapping>
395
-->
396

  
397

  
398
  <!-- ================== Built In Filter Definitions ===================== -->
399

  
400
  <!-- NOTE: An SSI Servlet is also available as an alternative SSI         -->
401
  <!-- implementation. Use either the Servlet or the Filter but NOT both.   -->
402
  <!--                                                                      -->
403
  <!-- Server Side Includes processing filter, which processes SSI          -->
404
  <!-- directives in HTML pages consistent with similar support in web      -->
405
  <!-- servers like Apache.  Traditionally, this filter is mapped to the    -->
406
  <!-- URL pattern "*.shtml", though it can be mapped to "*" as it will     -->
407
  <!-- selectively enable/disable SSI processing based on mime types. For   -->
408
  <!-- this to work you will need to uncomment the .shtml mime type         -->
409
  <!-- definition towards the bottom of this file.                          -->
410
  <!-- The contentType init param allows you to apply SSI processing to JSP -->
411
  <!-- pages, javascript, or any other content you wish.  This filter       -->
412
  <!-- supports the following initialization parameters (default values are -->
413
  <!-- in square brackets):                                                 -->
414
  <!--                                                                      -->
415
  <!--   contentType         A regex pattern that must be matched before    -->
416
  <!--                       SSI processing is applied.                     -->
417
  <!--                       [text/x-server-parsed-html(;.*)?]              -->
418
  <!--                                                                      -->
419
  <!--   debug               Debugging detail level for messages logged     -->
420
  <!--                       by this servlet.  [0]                          -->
421
  <!--                                                                      -->
422
  <!--   expires             The number of seconds before a page with SSI   -->
423
  <!--                       directives will expire.  [No default]          -->
424
  <!--                                                                      -->
425
  <!--   isVirtualWebappRelative                                            -->
426
  <!--                       Should "virtual" paths be interpreted as       -->
427
  <!--                       relative to the context root, instead of       -->
428
  <!--                       the server root?  (0=false, 1=true) [0]        -->
429
  <!--                                                                      -->
430
  <!--                                                                      -->
431
  <!-- IMPORTANT: To use the SSI filter, you also need to rename the        -->
432
  <!--            $CATALINA_HOME/server/lib/servlets-ssi.renametojar file   -->
433
  <!--            to $CATALINA_HOME/server/lib/servlets-ssi.jar             -->
434

  
435
<!--
436
    <filter>
437
        <filter-name>ssi</filter-name>
438
        <filter-class>
439
          org.apache.catalina.ssi.SSIFilter
440
        </filter-class>
441
        <init-param>
442
          <param-name>contentType</param-name>
443
          <param-value>text/x-server-parsed-html(;.*)?</param-value>
444
        </init-param>
445
        <init-param>
446
          <param-name>debug</param-name>
447
          <param-value>0</param-value>
448
        </init-param>
449
        <init-param>
450
          <param-name>expires</param-name>
451
          <param-value>666</param-value>
452
        </init-param>
453
        <init-param>
454
          <param-name>isVirtualWebappRelative</param-name>
455
          <param-value>0</param-value>
456
        </init-param>
457
    </filter>
458
-->
459

  
460

  
461
  <!-- ==================== Built In Filter Mappings ====================== -->
462

  
463
  <!-- The mapping for the SSI Filter -->
464
<!--
465
    <filter-mapping>
466
        <filter-name>ssi</filter-name>
467
        <url-pattern>*.shtml</url-pattern>
468
    </filter-mapping>
469
-->
470

  
471

  
472
  <!-- ==================== Default Session Configuration ================= -->
473
  <!-- You can set the default session timeout (in minutes) for all newly   -->
474
  <!-- created sessions by modifying the value below.                       -->
475

  
476
    <session-config>
477
        <session-timeout>30</session-timeout>
478
    </session-config>
479

  
480

  
481
  <!-- ===================== Default MIME Type Mappings =================== -->
482
  <!-- When serving static resources, Tomcat will automatically generate    -->
483
  <!-- a "Content-Type" header based on the resource's filename extension,  -->
484
  <!-- based on these mappings.  Additional mappings can be added here (to  -->
485
  <!-- apply to all web applications), or in your own application's web.xml -->
486
  <!-- deployment descriptor.                                               -->
487

  
488
    <mime-mapping>
489
        <extension>abs</extension>
490
        <mime-type>audio/x-mpeg</mime-type>
491
    </mime-mapping>
492
    <mime-mapping>
493
        <extension>ai</extension>
494
        <mime-type>application/postscript</mime-type>
495
    </mime-mapping>
496
    <mime-mapping>
497
        <extension>aif</extension>
498
        <mime-type>audio/x-aiff</mime-type>
499
    </mime-mapping>
500
    <mime-mapping>
501
        <extension>aifc</extension>
502
        <mime-type>audio/x-aiff</mime-type>
503
    </mime-mapping>
504
    <mime-mapping>
505
        <extension>aiff</extension>
506
        <mime-type>audio/x-aiff</mime-type>
507
    </mime-mapping>
508
    <mime-mapping>
509
        <extension>aim</extension>
510
        <mime-type>application/x-aim</mime-type>
511
    </mime-mapping>
512
    <mime-mapping>
513
        <extension>art</extension>
514
        <mime-type>image/x-jg</mime-type>
515
    </mime-mapping>
516
    <mime-mapping>
517
        <extension>asf</extension>
518
        <mime-type>video/x-ms-asf</mime-type>
519
    </mime-mapping>
520
    <mime-mapping>
521
        <extension>asx</extension>
522
        <mime-type>video/x-ms-asf</mime-type>
523
    </mime-mapping>
524
    <mime-mapping>
525
        <extension>au</extension>
526
        <mime-type>audio/basic</mime-type>
527
    </mime-mapping>
528
    <mime-mapping>
529
        <extension>avi</extension>
530
        <mime-type>video/x-msvideo</mime-type>
531
    </mime-mapping>
532
    <mime-mapping>
533
        <extension>avx</extension>
534
        <mime-type>video/x-rad-screenplay</mime-type>
535
    </mime-mapping>
536
    <mime-mapping>
537
        <extension>bcpio</extension>
538
        <mime-type>application/x-bcpio</mime-type>
539
    </mime-mapping>
540
    <mime-mapping>
541
        <extension>bin</extension>
542
        <mime-type>application/octet-stream</mime-type>
543
    </mime-mapping>
544
    <mime-mapping>
545
        <extension>bmp</extension>
546
        <mime-type>image/bmp</mime-type>
547
    </mime-mapping>
548
    <mime-mapping>
549
        <extension>body</extension>
550
        <mime-type>text/html</mime-type>
551
    </mime-mapping>
552
    <mime-mapping>
553
        <extension>cdf</extension>
554
        <mime-type>application/x-netcdf</mime-type>
555
    </mime-mapping>
556
    <mime-mapping>
557
        <extension>cer</extension>
558
        <mime-type>application/x-x509-ca-cert</mime-type>
559
    </mime-mapping>
560
    <mime-mapping>
561
        <extension>class</extension>
562
        <mime-type>application/java</mime-type>
563
    </mime-mapping>
564
    <mime-mapping>
565
        <extension>cpio</extension>
566
        <mime-type>application/x-cpio</mime-type>
567
    </mime-mapping>
568
    <mime-mapping>
569
        <extension>csh</extension>
570
        <mime-type>application/x-csh</mime-type>
571
    </mime-mapping>
572
    <mime-mapping>
573
        <extension>css</extension>
574
        <mime-type>text/css</mime-type>
575
    </mime-mapping>
576
    <mime-mapping>
577
        <extension>dib</extension>
578
        <mime-type>image/bmp</mime-type>
579
    </mime-mapping>
580
    <mime-mapping>
581
        <extension>doc</extension>
582
        <mime-type>application/msword</mime-type>
583
    </mime-mapping>
584
    <mime-mapping>
585
        <extension>dtd</extension>
586
        <mime-type>application/xml-dtd</mime-type>
587
    </mime-mapping>
588
    <mime-mapping>
589
        <extension>dv</extension>
590
        <mime-type>video/x-dv</mime-type>
591
    </mime-mapping>
592
    <mime-mapping>
593
        <extension>dvi</extension>
594
        <mime-type>application/x-dvi</mime-type>
595
    </mime-mapping>
596
    <mime-mapping>
597
        <extension>eps</extension>
598
        <mime-type>application/postscript</mime-type>
599
    </mime-mapping>
600
    <mime-mapping>
601
        <extension>etx</extension>
602
        <mime-type>text/x-setext</mime-type>
603
    </mime-mapping>
604
    <mime-mapping>
605
        <extension>exe</extension>
606
        <mime-type>application/octet-stream</mime-type>
607
    </mime-mapping>
608
    <mime-mapping>
609
        <extension>gif</extension>
610
        <mime-type>image/gif</mime-type>
611
    </mime-mapping>
612
    <mime-mapping>
613
        <extension>gtar</extension>
614
        <mime-type>application/x-gtar</mime-type>
615
    </mime-mapping>
616
    <mime-mapping>
617
        <extension>gz</extension>
618
        <mime-type>application/x-gzip</mime-type>
619
    </mime-mapping>
620
    <mime-mapping>
621
        <extension>hdf</extension>
622
        <mime-type>application/x-hdf</mime-type>
623
    </mime-mapping>
624
    <mime-mapping>
625
        <extension>htc</extension>
626
        <mime-type>text/x-component</mime-type>
627
    </mime-mapping>
628
    <mime-mapping>
629
        <extension>htm</extension>
630
        <mime-type>text/html</mime-type>
631
    </mime-mapping>
632
    <mime-mapping>
633
        <extension>html</extension>
634
        <mime-type>text/html</mime-type>
635
    </mime-mapping>
636
    <mime-mapping>
637
        <extension>hqx</extension>
638
        <mime-type>application/mac-binhex40</mime-type>
639
    </mime-mapping>
640
    <mime-mapping>
641
        <extension>ico</extension>
642
        <mime-type>image/x-icon</mime-type>
643
    </mime-mapping>
644
    <mime-mapping>
645
        <extension>ief</extension>
646
        <mime-type>image/ief</mime-type>
647
    </mime-mapping>
648
    <mime-mapping>
649
        <extension>jad</extension>
650
        <mime-type>text/vnd.sun.j2me.app-descriptor</mime-type>
651
    </mime-mapping>
652
    <mime-mapping>
653
        <extension>jar</extension>
654
        <mime-type>application/java-archive</mime-type>
655
    </mime-mapping>
656
    <mime-mapping>
657
        <extension>java</extension>
658
        <mime-type>text/plain</mime-type>
659
    </mime-mapping>
660
    <mime-mapping>
661
        <extension>jnlp</extension>
662
        <mime-type>application/x-java-jnlp-file</mime-type>
663
    </mime-mapping>
664
    <mime-mapping>
665
        <extension>jpe</extension>
666
        <mime-type>image/jpeg</mime-type>
667
    </mime-mapping>
668
    <mime-mapping>
669
        <extension>jpeg</extension>
670
        <mime-type>image/jpeg</mime-type>
671
    </mime-mapping>
672
    <mime-mapping>
673
        <extension>jpg</extension>
674
        <mime-type>image/jpeg</mime-type>
675
    </mime-mapping>
676
    <mime-mapping>
677
        <extension>js</extension>
678
        <mime-type>text/javascript</mime-type>
679
    </mime-mapping>
680
    <mime-mapping>
681
        <extension>jsf</extension>
682
        <mime-type>text/plain</mime-type>
683
    </mime-mapping>
684
    <mime-mapping>
685
        <extension>jspf</extension>
686
        <mime-type>text/plain</mime-type>
687
    </mime-mapping>
688
    <mime-mapping>
689
        <extension>kar</extension>
690
        <mime-type>audio/midi</mime-type>
691
    </mime-mapping>
692
    <mime-mapping>
693
        <extension>latex</extension>
694
        <mime-type>application/x-latex</mime-type>
695
    </mime-mapping>
696
    <mime-mapping>
697
        <extension>m3u</extension>
698
        <mime-type>audio/x-mpegurl</mime-type>
699
    </mime-mapping>
700
    <mime-mapping>
701
        <extension>mac</extension>
702
        <mime-type>image/x-macpaint</mime-type>
703
    </mime-mapping>
704
    <mime-mapping>
705
        <extension>man</extension>
706
        <mime-type>application/x-troff-man</mime-type>
707
    </mime-mapping>
708
    <mime-mapping>
709
        <extension>mathml</extension>
710
        <mime-type>application/mathml+xml</mime-type> 
711
    </mime-mapping>
712
    <mime-mapping>
713
        <extension>me</extension>
714
        <mime-type>application/x-troff-me</mime-type>
715
    </mime-mapping>
716
    <mime-mapping>
717
        <extension>mid</extension>
718
        <mime-type>audio/midi</mime-type>
719
    </mime-mapping>
720
    <mime-mapping>
721
        <extension>midi</extension>
722
        <mime-type>audio/midi</mime-type>
723
    </mime-mapping>
724
    <mime-mapping>
725
        <extension>mif</extension>
726
        <mime-type>application/vnd.mif</mime-type>
727
    </mime-mapping>
728
    <mime-mapping>
729
        <extension>mov</extension>
730
        <mime-type>video/quicktime</mime-type>
731
    </mime-mapping>
732
    <mime-mapping>
733
        <extension>movie</extension>
734
        <mime-type>video/x-sgi-movie</mime-type>
735
    </mime-mapping>
736
    <mime-mapping>
737
        <extension>mp1</extension>
738
        <mime-type>audio/x-mpeg</mime-type>
739
    </mime-mapping>
740
    <mime-mapping>
741
        <extension>mp2</extension>
742
        <mime-type>audio/mpeg</mime-type>
743
    </mime-mapping>
744
    <mime-mapping>
745
        <extension>mp3</extension>
746
        <mime-type>audio/mpeg</mime-type>
747
    </mime-mapping>
748
    <mime-mapping>
749
        <extension>mp4</extension>
750
        <mime-type>video/mp4</mime-type>
751
    </mime-mapping>
752
    <mime-mapping>
753
        <extension>mpa</extension>
754
        <mime-type>audio/x-mpeg</mime-type>
755
    </mime-mapping>
756
    <mime-mapping>
757
        <extension>mpe</extension>
758
        <mime-type>video/mpeg</mime-type>
759
    </mime-mapping>
760
    <mime-mapping>
761
        <extension>mpeg</extension>
762
        <mime-type>video/mpeg</mime-type>
763
    </mime-mapping>
764
    <mime-mapping>
765
        <extension>mpega</extension>
766
        <mime-type>audio/x-mpeg</mime-type>
767
    </mime-mapping>
768
    <mime-mapping>
769
        <extension>mpg</extension>
770
        <mime-type>video/mpeg</mime-type>
771
    </mime-mapping>
772
    <mime-mapping>
773
        <extension>mpv2</extension>
774
        <mime-type>video/mpeg2</mime-type>
775
    </mime-mapping>
776
    <mime-mapping>
777
        <extension>ms</extension>
778
        <mime-type>application/x-troff-ms</mime-type>
779
    </mime-mapping>
780
    <mime-mapping>
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff