blob: 514cb412965143b84c277914e8635ee0d2af8b00 [file] [log] [blame]
Cheng Tang697ce242014-04-27 16:18:17 +08001# 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.
22package.access=sun.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.
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#
33package.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
47common.loader=${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jar,${catalina.home}/lib/ext,${catalina.home}/lib/ext/*.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
60server.loader=
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 single jars, e.g. bar.jar, you need the URL form
73# starting with file:.
74shared.loader=
75
76# List of JAR files that should not be scanned using the JarScanner
77# functionality. This is typically used to scan JARs for configuration
78# information. JARs that do not contain such information may be excluded from
79# the scan to speed up the scanning process. This is the default list. JARs on
80# this list are excluded from all scans. Scan specific lists (to exclude JARs
81# from individual scans) follow this. The list must be a comma separated list of
82# JAR file names.
83# The JARs listed below include:
84# - Tomcat Bootstrap JARs
85# - Tomcat API JARs
86# - Catalina JARs
87# - Jasper JARs
88# - Tomcat JARs
89# - Common non-Tomcat JARs
90tomcat.util.scan.DefaultJarScanner.jarsToSkip=\
91bootstrap.jar,commons-daemon.jar,tomcat-juli.jar,\
92annotations-api.jar,el-api.jar,jsp-api.jar,servlet-api.jar,\
93catalina.jar,catalina-ant.jar,catalina-ha.jar,catalina-tribes.jar,\
94jasper.jar,jasper-el.jar,ecj-*.jar,\
95tomcat-api.jar,tomcat-util.jar,tomcat-coyote.jar,tomcat-dbcp.jar,\
96tomcat-jni.jar,tomcat-spdy.jar,\
97tomcat-i18n-en.jar,tomcat-i18n-es.jar,tomcat-i18n-fr.jar,tomcat-i18n-ja.jar,\
98tomcat-juli-adapters.jar,catalina-jmx-remote.jar,catalina-ws.jar,\
99tomcat-jdbc.jar,\
100tools.jar,\
101commons-beanutils*.jar,commons-codec*.jar,commons-collections*.jar,\
102commons-dbcp*.jar,commons-digester*.jar,commons-fileupload*.jar,\
103commons-httpclient*.jar,commons-io*.jar,commons-lang*.jar,commons-logging*.jar,\
104commons-math*.jar,commons-pool*.jar,\
105jstl.jar,\
106geronimo-spec-jaxrpc*.jar,wsdl4j*.jar,\
107ant.jar,ant-junit*.jar,aspectj*.jar,jmx.jar,h2*.jar,hibernate*.jar,httpclient*.jar,\
108jmx-tools.jar,jta*.jar,log4j*.jar,mail*.jar,slf4j*.jar,\
109xercesImpl.jar,xmlParserAPIs.jar,xml-apis.jar,\
110junit.jar,junit-*.jar,ant-launcher.jar
111
112# Additional JARs (over and above the default JARs listed above) to skip when
113# scanning for Servlet 3.0 pluggability features. These features include web
114# fragments, annotations, SCIs and classes that match @HandlesTypes. The list
115# must be a comma separated list of JAR file names.
116org.apache.catalina.startup.ContextConfig.jarsToSkip=
117
118# Additional JARs (over and above the default JARs listed above) to skip when
119# scanning for TLDs. The list must be a comma separated list of JAR file names.
120org.apache.catalina.startup.TldConfig.jarsToSkip=
121
122#
123# String cache configuration.
124tomcat.util.buf.StringCache.byte.enabled=true
125#tomcat.util.buf.StringCache.char.enabled=true
126#tomcat.util.buf.StringCache.trainThreshold=500000
127#tomcat.util.buf.StringCache.cacheSize=5000