| Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 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.
 | 
| Hongqing Liu | 7189829 | 2014-10-15 13:31:32 +0800 | [diff] [blame] | 22 | package.access=sun.,org.apache.catalina.,org.apache.coyote.,org.apache.jasper.,\
 | 
| 刘洪青 | 6266f99 | 2017-05-15 21:21:03 +0800 | [diff] [blame^] | 23 | org.apache.naming.resources.,org.apache.tomcat.
 | 
| Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 24 | #
 | 
 | 25 | # List of comma-separated packages that start with or equal this string
 | 
 | 26 | # will cause a security exception to be thrown when
 | 
 | 27 | # passed to checkPackageDefinition unless the
 | 
 | 28 | # corresponding RuntimePermission ("defineClassInPackage."+package) has
 | 
 | 29 | # been granted.
 | 
 | 30 | #
 | 
 | 31 | # by default, no packages are restricted for definition, and none of
 | 
 | 32 | # the class loaders supplied with the JDK call checkPackageDefinition.
 | 
 | 33 | #
 | 
| Hongqing Liu | 7189829 | 2014-10-15 13:31:32 +0800 | [diff] [blame] | 34 | package.definition=sun.,java.,org.apache.catalina.,org.apache.coyote.,\
 | 
 | 35 | org.apache.jasper.,org.apache.naming.,org.apache.tomcat.
 | 
| Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 36 | 
 | 
 | 37 | #
 | 
 | 38 | #
 | 
| 刘洪青 | 6266f99 | 2017-05-15 21:21:03 +0800 | [diff] [blame^] | 39 | # List of comma-separated paths defining the contents of the "common"
 | 
| Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 40 | # classloader. Prefixes should be used to define what is the repository type.
 | 
 | 41 | # Path may be relative to the CATALINA_HOME or CATALINA_BASE path or absolute.
 | 
| 刘洪青 | 6266f99 | 2017-05-15 21:21:03 +0800 | [diff] [blame^] | 42 | # If left as blank,the JVM system loader will be used as Catalina's "common"
 | 
| Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 43 | # loader.
 | 
 | 44 | # Examples:
 | 
 | 45 | #     "foo": Add this folder as a class repository
 | 
| 刘洪青 | 6266f99 | 2017-05-15 21:21:03 +0800 | [diff] [blame^] | 46 | #     "foo/*.jar": Add all the JARs of the specified folder as class
 | 
| Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 47 | #                  repositories
 | 
 | 48 | #     "foo/bar.jar": Add bar.jar as a class repository
 | 
 | 49 | common.loader=${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jar
 | 
 | 50 | 
 | 
 | 51 | #
 | 
| 刘洪青 | 6266f99 | 2017-05-15 21:21:03 +0800 | [diff] [blame^] | 52 | # List of comma-separated paths defining the contents of the "server"
 | 
| Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 53 | # classloader. Prefixes should be used to define what is the repository type.
 | 
 | 54 | # Path may be relative to the CATALINA_HOME or CATALINA_BASE path or absolute.
 | 
| 刘洪青 | 6266f99 | 2017-05-15 21:21:03 +0800 | [diff] [blame^] | 55 | # If left as blank, the "common" loader will be used as Catalina's "server"
 | 
| Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 56 | # loader.
 | 
 | 57 | # Examples:
 | 
 | 58 | #     "foo": Add this folder as a class repository
 | 
| 刘洪青 | 6266f99 | 2017-05-15 21:21:03 +0800 | [diff] [blame^] | 59 | #     "foo/*.jar": Add all the JARs of the specified folder as class
 | 
| Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 60 | #                  repositories
 | 
 | 61 | #     "foo/bar.jar": Add bar.jar as a class repository
 | 
 | 62 | server.loader=
 | 
 | 63 | 
 | 
 | 64 | #
 | 
| 刘洪青 | 6266f99 | 2017-05-15 21:21:03 +0800 | [diff] [blame^] | 65 | # List of comma-separated paths defining the contents of the "shared"
 | 
| Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 66 | # classloader. Prefixes should be used to define what is the repository type.
 | 
 | 67 | # Path may be relative to the CATALINA_BASE path or absolute. If left as blank,
 | 
 | 68 | # the "common" loader will be used as Catalina's "shared" loader.
 | 
 | 69 | # Examples:
 | 
 | 70 | #     "foo": Add this folder as a class repository
 | 
| 刘洪青 | 6266f99 | 2017-05-15 21:21:03 +0800 | [diff] [blame^] | 71 | #     "foo/*.jar": Add all the JARs of the specified folder as class
 | 
| Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 72 | #                  repositories
 | 
| 刘洪青 | 6266f99 | 2017-05-15 21:21:03 +0800 | [diff] [blame^] | 73 | #     "foo/bar.jar": Add bar.jar as a class repository
 | 
| Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 74 | # Please note that for single jars, e.g. bar.jar, you need the URL form
 | 
 | 75 | # starting with file:.
 | 
 | 76 | shared.loader=
 | 
 | 77 | 
 | 
| 刘洪青 | 6266f99 | 2017-05-15 21:21:03 +0800 | [diff] [blame^] | 78 | # List of JAR files that should not be scanned using the JarScanner
 | 
 | 79 | # functionality. This is typically used to scan JARs for configuration
 | 
 | 80 | # information. JARs that do not contain such information may be excluded from
 | 
 | 81 | # the scan to speed up the scanning process. This is the default list. JARs on
 | 
 | 82 | # this list are excluded from all scans. Scan specific lists (to exclude JARs
 | 
 | 83 | # from individual scans) follow this. The list must be a comma separated list of
 | 
 | 84 | # JAR file names.
 | 
 | 85 | # The JARs listed below include:
 | 
 | 86 | # - Tomcat Bootstrap JARs
 | 
 | 87 | # - Tomcat API JARs
 | 
 | 88 | # - Catalina JARs
 | 
 | 89 | # - Jasper JARs
 | 
 | 90 | # - Tomcat JARs
 | 
 | 91 | # - Common non-Tomcat JARs
 | 
 | 92 | # - Test JARs (JUnit, Cobertura and dependencies)
 | 
 | 93 | tomcat.util.scan.DefaultJarScanner.jarsToSkip=\
 | 
 | 94 | bootstrap.jar,commons-daemon.jar,tomcat-juli.jar,\
 | 
 | 95 | annotations-api.jar,el-api.jar,jsp-api.jar,servlet-api.jar,websocket-api.jar,\
 | 
 | 96 | catalina.jar,catalina-ant.jar,catalina-ha.jar,catalina-tribes.jar,\
 | 
 | 97 | jasper.jar,jasper-el.jar,ecj-*.jar,\
 | 
 | 98 | tomcat-api.jar,tomcat-util.jar,tomcat-coyote.jar,tomcat-dbcp.jar,\
 | 
 | 99 | tomcat-jni.jar,tomcat-spdy.jar,\
 | 
 | 100 | tomcat-i18n-en.jar,tomcat-i18n-es.jar,tomcat-i18n-fr.jar,tomcat-i18n-ja.jar,\
 | 
 | 101 | tomcat-juli-adapters.jar,catalina-jmx-remote.jar,catalina-ws.jar,\
 | 
 | 102 | tomcat-jdbc.jar,\
 | 
 | 103 | tools.jar,\
 | 
 | 104 | commons-beanutils*.jar,commons-codec*.jar,commons-collections*.jar,\
 | 
 | 105 | commons-dbcp*.jar,commons-digester*.jar,commons-fileupload*.jar,\
 | 
 | 106 | commons-httpclient*.jar,commons-io*.jar,commons-lang*.jar,commons-logging*.jar,\
 | 
 | 107 | commons-math*.jar,commons-pool*.jar,\
 | 
 | 108 | jstl.jar,taglibs-standard-spec-*.jar,\
 | 
 | 109 | geronimo-spec-jaxrpc*.jar,wsdl4j*.jar,\
 | 
 | 110 | ant.jar,ant-junit*.jar,aspectj*.jar,jmx.jar,h2*.jar,hibernate*.jar,httpclient*.jar,\
 | 
 | 111 | jmx-tools.jar,jta*.jar,log4j.jar,log4j-1*.jar,mail*.jar,slf4j*.jar,\
 | 
 | 112 | xercesImpl.jar,xmlParserAPIs.jar,xml-apis.jar,\
 | 
 | 113 | junit.jar,junit-*.jar,hamcrest*.jar,org.hamcrest*.jar,ant-launcher.jar,\
 | 
 | 114 | cobertura-*.jar,asm-*.jar,dom4j-*.jar,icu4j-*.jar,jaxen-*.jar,jdom-*.jar,\
 | 
 | 115 | jetty-*.jar,oro-*.jar,servlet-api-*.jar,tagsoup-*.jar,xmlParserAPIs-*.jar,\
 | 
 | 116 | xom-*.jar
 | 
 | 117 | 
 | 
 | 118 | # Additional JARs (over and above the default JARs listed above) to skip when
 | 
 | 119 | # scanning for Servlet 3.0 pluggability features. These features include web
 | 
 | 120 | # fragments, annotations, SCIs and classes that match @HandlesTypes. The list
 | 
 | 121 | # must be a comma separated list of JAR file names.
 | 
 | 122 | org.apache.catalina.startup.ContextConfig.jarsToSkip=
 | 
 | 123 | 
 | 
 | 124 | # Additional JARs (over and above the default JARs listed above) to skip when
 | 
 | 125 | # scanning for TLDs. The list must be a comma separated list of JAR file names.
 | 
 | 126 | org.apache.catalina.startup.TldConfig.jarsToSkip=tomcat7-websocket.jar
 | 
 | 127 | 
 | 
| Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 128 | #
 | 
 | 129 | # String cache configuration.
 | 
 | 130 | tomcat.util.buf.StringCache.byte.enabled=true
 | 
 | 131 | #tomcat.util.buf.StringCache.char.enabled=true
 | 
 | 132 | #tomcat.util.buf.StringCache.trainThreshold=500000
 | 
 | 133 | #tomcat.util.buf.StringCache.cacheSize=5000
 | 
| 刘洪青 | 6266f99 | 2017-05-15 21:21:03 +0800 | [diff] [blame^] | 134 | 
 | 
 | 135 | # Allow for changes to HTTP request validation
 | 
 | 136 | # WARNING: Using this option will expose the server to CVE-2016-6816
 | 
 | 137 | #tomcat.util.http.parser.HttpParser.requestTargetAllow=|
 |