rubyfox-server 2.16.0.0 → 2.16.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rubyfox/server/data/lib/apache-tomcat/LICENSE +1061 -1061
  3. data/lib/rubyfox/server/data/lib/apache-tomcat/NOTICE +68 -68
  4. data/lib/rubyfox/server/data/lib/apache-tomcat/README.md +79 -79
  5. data/lib/rubyfox/server/data/lib/apache-tomcat/RELEASE-NOTES +174 -173
  6. data/lib/rubyfox/server/data/lib/apache-tomcat/bin/bootstrap.jar +0 -0
  7. data/lib/rubyfox/server/data/lib/apache-tomcat/bin/catalina-tasks.xml +39 -39
  8. data/lib/rubyfox/server/data/lib/apache-tomcat/bin/catalina.bat +27 -13
  9. data/lib/rubyfox/server/data/lib/apache-tomcat/bin/catalina.sh +55 -14
  10. data/lib/rubyfox/server/data/lib/apache-tomcat/bin/ciphers.bat +0 -0
  11. data/lib/rubyfox/server/data/lib/apache-tomcat/bin/commons-daemon-native.tar.gz +0 -0
  12. data/lib/rubyfox/server/data/lib/apache-tomcat/bin/commons-daemon.jar +0 -0
  13. data/lib/rubyfox/server/data/lib/apache-tomcat/bin/configtest.bat +0 -0
  14. data/lib/rubyfox/server/data/lib/apache-tomcat/bin/daemon.sh +54 -36
  15. data/lib/rubyfox/server/data/lib/apache-tomcat/bin/digest.bat +0 -0
  16. data/lib/rubyfox/server/data/lib/apache-tomcat/bin/makebase.bat +0 -0
  17. data/lib/rubyfox/server/data/lib/apache-tomcat/bin/setclasspath.bat +0 -0
  18. data/lib/rubyfox/server/data/lib/apache-tomcat/bin/shutdown.bat +0 -0
  19. data/lib/rubyfox/server/data/lib/apache-tomcat/bin/startup.bat +0 -0
  20. data/lib/rubyfox/server/data/lib/apache-tomcat/bin/tomcat-juli.jar +0 -0
  21. data/lib/rubyfox/server/data/lib/apache-tomcat/bin/tomcat-native.tar.gz +0 -0
  22. data/lib/rubyfox/server/data/lib/apache-tomcat/bin/tool-wrapper.bat +0 -0
  23. data/lib/rubyfox/server/data/lib/apache-tomcat/bin/tool-wrapper.sh +4 -4
  24. data/lib/rubyfox/server/data/lib/apache-tomcat/bin/version.bat +0 -0
  25. data/lib/rubyfox/server/data/lib/apache-tomcat/conf/catalina.policy +259 -259
  26. data/lib/rubyfox/server/data/lib/apache-tomcat/conf/catalina.properties +206 -205
  27. data/lib/rubyfox/server/data/lib/apache-tomcat/conf/context.xml +31 -31
  28. data/lib/rubyfox/server/data/lib/apache-tomcat/conf/jaspic-providers.xml +23 -23
  29. data/lib/rubyfox/server/data/lib/apache-tomcat/conf/jaspic-providers.xsd +52 -52
  30. data/lib/rubyfox/server/data/lib/apache-tomcat/conf/logging.properties +0 -0
  31. data/lib/rubyfox/server/data/lib/apache-tomcat/conf/server.xml +0 -0
  32. data/lib/rubyfox/server/data/lib/apache-tomcat/conf/tomcat-users.xml +0 -0
  33. data/lib/rubyfox/server/data/lib/apache-tomcat/conf/tomcat-users.xsd +59 -59
  34. data/lib/rubyfox/server/data/lib/apache-tomcat/conf/web.xml +4733 -4737
  35. data/lib/rubyfox/server/data/lib/apache-tomcat/lib/annotations-api.jar +0 -0
  36. data/lib/rubyfox/server/data/lib/apache-tomcat/lib/catalina-ant.jar +0 -0
  37. data/lib/rubyfox/server/data/lib/apache-tomcat/lib/catalina-ha.jar +0 -0
  38. data/lib/rubyfox/server/data/lib/apache-tomcat/lib/catalina-ssi.jar +0 -0
  39. data/lib/rubyfox/server/data/lib/apache-tomcat/lib/catalina-storeconfig.jar +0 -0
  40. data/lib/rubyfox/server/data/lib/apache-tomcat/lib/catalina-tribes.jar +0 -0
  41. data/lib/rubyfox/server/data/lib/apache-tomcat/lib/catalina.jar +0 -0
  42. data/lib/rubyfox/server/data/lib/apache-tomcat/lib/ecj-4.15.jar +0 -0
  43. data/lib/rubyfox/server/data/lib/apache-tomcat/lib/el-api.jar +0 -0
  44. data/lib/rubyfox/server/data/lib/apache-tomcat/lib/jasper-el.jar +0 -0
  45. data/lib/rubyfox/server/data/lib/apache-tomcat/lib/jasper.jar +0 -0
  46. data/lib/rubyfox/server/data/lib/apache-tomcat/lib/jaspic-api.jar +0 -0
  47. data/lib/rubyfox/server/data/lib/apache-tomcat/lib/jsp-api.jar +0 -0
  48. data/lib/rubyfox/server/data/lib/apache-tomcat/lib/servlet-api.jar +0 -0
  49. data/lib/rubyfox/server/data/lib/apache-tomcat/lib/tomcat-api.jar +0 -0
  50. data/lib/rubyfox/server/data/lib/apache-tomcat/lib/tomcat-coyote.jar +0 -0
  51. data/lib/rubyfox/server/data/lib/apache-tomcat/lib/tomcat-dbcp.jar +0 -0
  52. data/lib/rubyfox/server/data/lib/apache-tomcat/lib/tomcat-i18n-cs.jar +0 -0
  53. data/lib/rubyfox/server/data/lib/apache-tomcat/lib/tomcat-i18n-de.jar +0 -0
  54. data/lib/rubyfox/server/data/lib/apache-tomcat/lib/tomcat-i18n-es.jar +0 -0
  55. data/lib/rubyfox/server/data/lib/apache-tomcat/lib/tomcat-i18n-fr.jar +0 -0
  56. data/lib/rubyfox/server/data/lib/apache-tomcat/lib/tomcat-i18n-ja.jar +0 -0
  57. data/lib/rubyfox/server/data/lib/apache-tomcat/lib/tomcat-i18n-ko.jar +0 -0
  58. data/lib/rubyfox/server/data/lib/apache-tomcat/lib/tomcat-i18n-pt-BR.jar +0 -0
  59. data/lib/rubyfox/server/data/lib/apache-tomcat/lib/tomcat-i18n-ru.jar +0 -0
  60. data/lib/rubyfox/server/data/lib/apache-tomcat/lib/tomcat-i18n-zh-CN.jar +0 -0
  61. data/lib/rubyfox/server/data/lib/apache-tomcat/lib/tomcat-jdbc.jar +0 -0
  62. data/lib/rubyfox/server/data/lib/apache-tomcat/lib/tomcat-jni.jar +0 -0
  63. data/lib/rubyfox/server/data/lib/apache-tomcat/lib/tomcat-util-scan.jar +0 -0
  64. data/lib/rubyfox/server/data/lib/apache-tomcat/lib/tomcat-util.jar +0 -0
  65. data/lib/rubyfox/server/data/lib/apache-tomcat/lib/tomcat-websocket.jar +0 -0
  66. data/lib/rubyfox/server/data/lib/apache-tomcat/lib/websocket-api.jar +0 -0
  67. data/lib/rubyfox/server/data/lib/apache-tomcat/temp/safeToDelete.tmp +0 -0
  68. data/lib/rubyfox/server/version.rb +1 -1
  69. metadata +4 -3
  70. data/lib/rubyfox/server/data/lib/apache-tomcat/lib/ecj-4.12.jar +0 -0
@@ -1,39 +1,39 @@
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
- <!--
19
- XML file for importing Catalina ant tasks.
20
- <import file="${catalina.home}/bin/catalina-tasks.xml"/>
21
- -->
22
-
23
- <project name="catalina-tasks">
24
- <description>Catalina Ant Manager, JMX and JSPC Tasks</description>
25
- <!-- set catalina.home if it's not already set -->
26
- <dirname property="catalina.home.bin.dir" file="${ant.file.catalina-tasks}"/>
27
- <property name="catalina.home" value="${catalina.home.bin.dir}/.."/>
28
- <typedef resource="org/apache/catalina/ant/catalina.tasks">
29
- <classpath>
30
- <fileset file="${catalina.home}/bin/tomcat-juli.jar"/>
31
- <fileset dir="${catalina.home}/lib" includes="*.jar"/>
32
- </classpath>
33
- </typedef>
34
- <typedef resource="org/apache/catalina/ant/jmx/jmxaccessor.tasks">
35
- <classpath>
36
- <fileset file="${catalina.home}/lib/catalina-ant.jar"/>
37
- </classpath>
38
- </typedef>
39
- </project>
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
+ <!--
19
+ XML file for importing Catalina ant tasks.
20
+ <import file="${catalina.home}/bin/catalina-tasks.xml"/>
21
+ -->
22
+
23
+ <project name="catalina-tasks">
24
+ <description>Catalina Ant Manager, JMX and JSPC Tasks</description>
25
+ <!-- set catalina.home if it's not already set -->
26
+ <dirname property="catalina.home.bin.dir" file="${ant.file.catalina-tasks}"/>
27
+ <property name="catalina.home" value="${catalina.home.bin.dir}/.."/>
28
+ <typedef resource="org/apache/catalina/ant/catalina.tasks">
29
+ <classpath>
30
+ <fileset file="${catalina.home}/bin/tomcat-juli.jar"/>
31
+ <fileset dir="${catalina.home}/lib" includes="*.jar"/>
32
+ </classpath>
33
+ </typedef>
34
+ <typedef resource="org/apache/catalina/ant/jmx/jmxaccessor.tasks">
35
+ <classpath>
36
+ <fileset file="${catalina.home}/lib/catalina-ant.jar"/>
37
+ </classpath>
38
+ </typedef>
39
+ </project>
@@ -17,6 +17,9 @@ rem limitations under the License.
17
17
  rem ---------------------------------------------------------------------------
18
18
  rem Start/Stop Script for the CATALINA Server
19
19
  rem
20
+ rem For supported commands call "catalina.bat help" or see the usage section
21
+ rem towards the end of this file.
22
+ rem
20
23
  rem Environment Variable Prerequisites
21
24
  rem
22
25
  rem Do not set the variables in this script. Instead put them into a script
@@ -28,9 +31,8 @@ rem script will have no effect at all on Windows Services. As such, any
28
31
  rem local customizations made in a CATALINA_BASE/bin/setenv.bat script
29
32
  rem will also have no effect on Tomcat when launched as a Windows Service.
30
33
  rem The configuration that controls Windows Services is stored in the Windows
31
- rem Registry, and is most conveniently maintained using the "tomcatXw.exe"
32
- rem maintenance utility, where "X" is the major version of Tomcat you are
33
- rem running.
34
+ rem Registry, and is most conveniently maintained using the "tomcat9w.exe"
35
+ rem maintenance utility.
34
36
  rem
35
37
  rem CATALINA_HOME May point at your Catalina "build" directory.
36
38
  rem
@@ -92,9 +94,14 @@ rem JSSE_OPTS (Optional) Java runtime options used to control the TLS
92
94
  rem implementation when JSSE is used. Default is:
93
95
  rem "-Djdk.tls.ephemeralDHKeySize=2048"
94
96
  rem
95
- rem LOGGING_CONFIG (Optional) Override Tomcat's logging config file
97
+ rem CATALINA_LOGGING_CONFIG (Optional) Override Tomcat's logging config file
96
98
  rem Example (all one line)
97
- rem set LOGGING_CONFIG="-Djava.util.logging.config.file=%CATALINA_BASE%\conf\logging.properties"
99
+ rem set CATALINA_LOGGING_CONFIG="-Djava.util.logging.config.file=%CATALINA_BASE%\conf\logging.properties"
100
+ rem
101
+ rem LOGGING_CONFIG Deprecated
102
+ rem Use CATALINA_LOGGING_CONFIG
103
+ rem This is only used if CATALINA_LOGGING_CONFIG is not set
104
+ rem and LOGGING_CONFIG starts with "-D..."
98
105
  rem
99
106
  rem LOGGING_MANAGER (Optional) Override Tomcat's logging manager
100
107
  rem Example (all one line)
@@ -204,7 +211,7 @@ set "CLASSPATH=%CLASSPATH%;%CATALINA_HOME%\bin\tomcat-juli.jar"
204
211
  :juliClasspathDone
205
212
 
206
213
  if not "%JSSE_OPTS%" == "" goto gotJsseOpts
207
- set JSSE_OPTS="-Djdk.tls.ephemeralDHKeySize=2048"
214
+ set "JSSE_OPTS=-Djdk.tls.ephemeralDHKeySize=2048"
208
215
  :gotJsseOpts
209
216
  set "JAVA_OPTS=%JAVA_OPTS% %JSSE_OPTS%"
210
217
 
@@ -212,10 +219,17 @@ rem Register custom URL handlers
212
219
  rem Do this here so custom URL handles (specifically 'war:...') can be used in the security policy
213
220
  set "JAVA_OPTS=%JAVA_OPTS% -Djava.protocol.handler.pkgs=org.apache.catalina.webresources"
214
221
 
215
- if not "%LOGGING_CONFIG%" == "" goto noJuliConfig
216
- set LOGGING_CONFIG=-Dnop
222
+ rem Check for the deprecated LOGGING_CONFIG
223
+ rem Only use it if CATALINA_LOGGING_CONFIG is not set and LOGGING_CONFIG starts with "-D..."
224
+ if not "%LOGGING_CONFIG:~0,2%"=="-D" goto noLoggingDeprecation
225
+ if not "%CATALINA_LOGGING_CONFIG%" == "" goto noLoggingDeprecation
226
+ set "CATALINA_LOGGING_CONFIG=%LOGGING_CONFIG%"
227
+ :noLoggingDeprecation
228
+
229
+ if not "%CATALINA_LOGGING_CONFIG%" == "" goto noJuliConfig
230
+ set CATALINA_LOGGING_CONFIG=-Dnop
217
231
  if not exist "%CATALINA_BASE%\conf\logging.properties" goto noJuliConfig
218
- set LOGGING_CONFIG=-Djava.util.logging.config.file="%CATALINA_BASE%\conf\logging.properties"
232
+ set CATALINA_LOGGING_CONFIG=-Djava.util.logging.config.file="%CATALINA_BASE%\conf\logging.properties"
219
233
  :noJuliConfig
220
234
 
221
235
  if not "%LOGGING_MANAGER%" == "" goto noJuliManager
@@ -356,17 +370,17 @@ goto setArgs
356
370
  rem Execute Java with the applicable properties
357
371
  if not "%JPDA%" == "" goto doJpda
358
372
  if not "%SECURITY_POLICY_FILE%" == "" goto doSecurity
359
- %_EXECJAVA% %LOGGING_CONFIG% %LOGGING_MANAGER% %JAVA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS% -D%ENDORSED_PROP%="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%
373
+ %_EXECJAVA% %CATALINA_LOGGING_CONFIG% %LOGGING_MANAGER% %JAVA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS% -D%ENDORSED_PROP%="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%
360
374
  goto end
361
375
  :doSecurity
362
- %_EXECJAVA% %LOGGING_CONFIG% %LOGGING_MANAGER% %JAVA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS% -D%ENDORSED_PROP%="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Djava.security.manager -Djava.security.policy=="%SECURITY_POLICY_FILE%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%
376
+ %_EXECJAVA% %CATALINA_LOGGING_CONFIG% %LOGGING_MANAGER% %JAVA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS% -D%ENDORSED_PROP%="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Djava.security.manager -Djava.security.policy=="%SECURITY_POLICY_FILE%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%
363
377
  goto end
364
378
  :doJpda
365
379
  if not "%SECURITY_POLICY_FILE%" == "" goto doSecurityJpda
366
- %_EXECJAVA% %LOGGING_CONFIG% %LOGGING_MANAGER% %JAVA_OPTS% %JPDA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS% -D%ENDORSED_PROP%="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%
380
+ %_EXECJAVA% %CATALINA_LOGGING_CONFIG% %LOGGING_MANAGER% %JAVA_OPTS% %JPDA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS% -D%ENDORSED_PROP%="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%
367
381
  goto end
368
382
  :doSecurityJpda
369
- %_EXECJAVA% %LOGGING_CONFIG% %LOGGING_MANAGER% %JAVA_OPTS% %JPDA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS% -D%ENDORSED_PROP%="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Djava.security.manager -Djava.security.policy=="%SECURITY_POLICY_FILE%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%
383
+ %_EXECJAVA% %CATALINA_LOGGING_CONFIG% %LOGGING_MANAGER% %JAVA_OPTS% %JPDA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS% -D%ENDORSED_PROP%="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Djava.security.manager -Djava.security.policy=="%SECURITY_POLICY_FILE%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%
370
384
  goto end
371
385
 
372
386
  :end
@@ -18,6 +18,9 @@
18
18
  # -----------------------------------------------------------------------------
19
19
  # Control Script for the CATALINA Server
20
20
  #
21
+ # For supported commands call "catalina.sh help" or see the usage section at
22
+ # the end of this file.
23
+ #
21
24
  # Environment Variable Prerequisites
22
25
  #
23
26
  # Do not set the variables in this script. Instead put them into a script
@@ -33,6 +36,14 @@
33
36
  # will be redirected.
34
37
  # Default is $CATALINA_BASE/logs/catalina.out
35
38
  #
39
+ # CATALINA_OUT_CMD (Optional) Command which will be executed and receive
40
+ # as its stdin the stdout and stderr from the Tomcat java
41
+ # process. If CATALINA_OUT_CMD is set, the value of
42
+ # CATALINA_OUT will be used as a named pipe.
43
+ # No default.
44
+ # Example (all one line)
45
+ # CATALINA_OUT_CMD="/usr/bin/rotatelogs -f $CATALINA_BASE/logs/catalina.out.%Y-%m-%d.log 86400"
46
+ #
36
47
  # CATALINA_OPTS (Optional) Java runtime options used when the "start",
37
48
  # "run" or "debug" command is executed.
38
49
  # Include here and not in JAVA_OPTS all options, that should
@@ -91,9 +102,14 @@
91
102
  # of the catalina startup java process, when start (fork) is
92
103
  # used
93
104
  #
94
- # LOGGING_CONFIG (Optional) Override Tomcat's logging config file
105
+ # CATALINA_LOGGING_CONFIG (Optional) Override Tomcat's logging config file
95
106
  # Example (all one line)
96
- # LOGGING_CONFIG="-Djava.util.logging.config.file=$CATALINA_BASE/conf/logging.properties"
107
+ # CATALINA_LOGGING_CONFIG="-Djava.util.logging.config.file=$CATALINA_BASE/conf/logging.properties"
108
+ #
109
+ # LOGGING_CONFIG Deprecated
110
+ # Use CATALINA_LOGGING_CONFIG
111
+ # This is only used if CATALINA_LOGGING_CONFIG is not set
112
+ # and LOGGING_CONFIG starts with "-D..."
97
113
  #
98
114
  # LOGGING_MANAGER (Optional) Override Tomcat's logging manager
99
115
  # Example (all one line)
@@ -252,13 +268,21 @@ JAVA_OPTS="$JAVA_OPTS $JSSE_OPTS"
252
268
  # Do this here so custom URL handles (specifically 'war:...') can be used in the security policy
253
269
  JAVA_OPTS="$JAVA_OPTS -Djava.protocol.handler.pkgs=org.apache.catalina.webresources"
254
270
 
271
+ # Check for the deprecated LOGGING_CONFIG
272
+ # Only use it if CATALINA_LOGGING_CONFIG is not set and LOGGING_CONFIG starts with "-D..."
273
+ if [ -z "$CATALINA_LOGGING_CONFIG" ]; then
274
+ if [ "${LOGGING_CONFIG#*-D}" != "$LOGGING_CONFIG" ]; then
275
+ CATALINA_LOGGING_CONFIG="$LOGGING_CONFIG"
276
+ fi
277
+ fi
278
+
255
279
  # Set juli LogManager config file if it is present and an override has not been issued
256
- if [ -z "$LOGGING_CONFIG" ]; then
280
+ if [ -z "$CATALINA_LOGGING_CONFIG" ]; then
257
281
  if [ -r "$CATALINA_BASE"/conf/logging.properties ]; then
258
- LOGGING_CONFIG="-Djava.util.logging.config.file=$CATALINA_BASE/conf/logging.properties"
282
+ CATALINA_LOGGING_CONFIG="-Djava.util.logging.config.file=$CATALINA_BASE/conf/logging.properties"
259
283
  else
260
284
  # Bugzilla 45585
261
- LOGGING_CONFIG="-Dnop"
285
+ CATALINA_LOGGING_CONFIG="-Dnop"
262
286
  fi
263
287
  fi
264
288
 
@@ -340,6 +364,10 @@ if [ "$1" = "jpda" ] ; then
340
364
  shift
341
365
  fi
342
366
 
367
+ # TODO: Bugzilla 63815
368
+ # This doesn't currently work (and can't be made to work) if values used in
369
+ # CATALINA_OPTS and/or JAVA_OPTS require quoting. See:
370
+ # https://bugs.openjdk.java.net/browse/JDK-8234808
343
371
  if [ "$1" = "debug" ] ; then
344
372
  if $os400; then
345
373
  echo "Debug command not available on OS400"
@@ -351,7 +379,7 @@ if [ "$1" = "debug" ] ; then
351
379
  echo "Using Security Manager"
352
380
  fi
353
381
  shift
354
- exec "$_RUNJDB" "$LOGGING_CONFIG" $LOGGING_MANAGER $JAVA_OPTS $CATALINA_OPTS \
382
+ exec "$_RUNJDB" "$CATALINA_LOGGING_CONFIG" $LOGGING_MANAGER $JAVA_OPTS $CATALINA_OPTS \
355
383
  -D$ENDORSED_PROP="$JAVA_ENDORSED_DIRS" \
356
384
  -classpath "$CLASSPATH" \
357
385
  -sourcepath "$CATALINA_HOME"/../../java \
@@ -362,7 +390,7 @@ if [ "$1" = "debug" ] ; then
362
390
  -Djava.io.tmpdir="$CATALINA_TMPDIR" \
363
391
  org.apache.catalina.startup.Bootstrap "$@" start
364
392
  else
365
- exec "$_RUNJDB" "$LOGGING_CONFIG" $LOGGING_MANAGER $JAVA_OPTS $CATALINA_OPTS \
393
+ exec "$_RUNJDB" "$CATALINA_LOGGING_CONFIG" $LOGGING_MANAGER $JAVA_OPTS $CATALINA_OPTS \
366
394
  -D$ENDORSED_PROP="$JAVA_ENDORSED_DIRS" \
367
395
  -classpath "$CLASSPATH" \
368
396
  -sourcepath "$CATALINA_HOME"/../../java \
@@ -381,7 +409,7 @@ elif [ "$1" = "run" ]; then
381
409
  echo "Using Security Manager"
382
410
  fi
383
411
  shift
384
- eval exec "\"$_RUNJAVA\"" "\"$LOGGING_CONFIG\"" $LOGGING_MANAGER $JAVA_OPTS $CATALINA_OPTS \
412
+ eval exec "\"$_RUNJAVA\"" "\"$CATALINA_LOGGING_CONFIG\"" $LOGGING_MANAGER "$JAVA_OPTS" "$CATALINA_OPTS" \
385
413
  -D$ENDORSED_PROP="\"$JAVA_ENDORSED_DIRS\"" \
386
414
  -classpath "\"$CLASSPATH\"" \
387
415
  -Djava.security.manager \
@@ -391,7 +419,7 @@ elif [ "$1" = "run" ]; then
391
419
  -Djava.io.tmpdir="\"$CATALINA_TMPDIR\"" \
392
420
  org.apache.catalina.startup.Bootstrap "$@" start
393
421
  else
394
- eval exec "\"$_RUNJAVA\"" "\"$LOGGING_CONFIG\"" $LOGGING_MANAGER $JAVA_OPTS $CATALINA_OPTS \
422
+ eval exec "\"$_RUNJAVA\"" "\"$CATALINA_LOGGING_CONFIG\"" $LOGGING_MANAGER "$JAVA_OPTS" "$CATALINA_OPTS" \
395
423
  -D$ENDORSED_PROP="\"$JAVA_ENDORSED_DIRS\"" \
396
424
  -classpath "\"$CLASSPATH\"" \
397
425
  -Dcatalina.base="\"$CATALINA_BASE\"" \
@@ -443,13 +471,26 @@ elif [ "$1" = "start" ] ; then
443
471
  fi
444
472
 
445
473
  shift
446
- touch "$CATALINA_OUT"
474
+ if [ -z "$CATALINA_OUT_CMD" ] ; then
475
+ touch "$CATALINA_OUT"
476
+ else
477
+ if [ ! -e "$CATALINA_OUT" ]; then
478
+ if ! mkfifo "$CATALINA_OUT"; then
479
+ echo "cannot create named pipe $CATALINA_OUT. Start aborted."
480
+ exit 1
481
+ fi
482
+ elif [ ! -p "$CATALINA_OUT" ]; then
483
+ echo "$CATALINA_OUT exists and is not a named pipe. Start aborted."
484
+ exit 1
485
+ fi
486
+ $CATALINA_OUT_CMD <"$CATALINA_OUT" &
487
+ fi
447
488
  if [ "$1" = "-security" ] ; then
448
489
  if [ $have_tty -eq 1 ]; then
449
490
  echo "Using Security Manager"
450
491
  fi
451
492
  shift
452
- eval $_NOHUP "\"$_RUNJAVA\"" "\"$LOGGING_CONFIG\"" $LOGGING_MANAGER $JAVA_OPTS $CATALINA_OPTS \
493
+ eval $_NOHUP "\"$_RUNJAVA\"" "\"$CATALINA_LOGGING_CONFIG\"" $LOGGING_MANAGER "$JAVA_OPTS" "$CATALINA_OPTS" \
453
494
  -D$ENDORSED_PROP="\"$JAVA_ENDORSED_DIRS\"" \
454
495
  -classpath "\"$CLASSPATH\"" \
455
496
  -Djava.security.manager \
@@ -461,7 +502,7 @@ elif [ "$1" = "start" ] ; then
461
502
  >> "$CATALINA_OUT" 2>&1 "&"
462
503
 
463
504
  else
464
- eval $_NOHUP "\"$_RUNJAVA\"" "\"$LOGGING_CONFIG\"" $LOGGING_MANAGER $JAVA_OPTS $CATALINA_OPTS \
505
+ eval $_NOHUP "\"$_RUNJAVA\"" "\"$CATALINA_LOGGING_CONFIG\"" $LOGGING_MANAGER "$JAVA_OPTS" "$CATALINA_OPTS" \
465
506
  -D$ENDORSED_PROP="\"$JAVA_ENDORSED_DIRS\"" \
466
507
  -classpath "\"$CLASSPATH\"" \
467
508
  -Dcatalina.base="\"$CATALINA_BASE\"" \
@@ -514,7 +555,7 @@ elif [ "$1" = "stop" ] ; then
514
555
  fi
515
556
  fi
516
557
 
517
- eval "\"$_RUNJAVA\"" $JAVA_OPTS \
558
+ eval "\"$_RUNJAVA\"" $LOGGING_MANAGER "$JAVA_OPTS" \
518
559
  -D$ENDORSED_PROP="\"$JAVA_ENDORSED_DIRS\"" \
519
560
  -classpath "\"$CLASSPATH\"" \
520
561
  -Dcatalina.base="\"$CATALINA_BASE\"" \
@@ -601,7 +642,7 @@ elif [ "$1" = "stop" ] ; then
601
642
 
602
643
  elif [ "$1" = "configtest" ] ; then
603
644
 
604
- eval "\"$_RUNJAVA\"" $LOGGING_MANAGER $JAVA_OPTS \
645
+ eval "\"$_RUNJAVA\"" $LOGGING_MANAGER "$JAVA_OPTS" \
605
646
  -D$ENDORSED_PROP="\"$JAVA_ENDORSED_DIRS\"" \
606
647
  -classpath "\"$CLASSPATH\"" \
607
648
  -Dcatalina.base="\"$CATALINA_BASE\"" \
@@ -90,7 +90,6 @@ test ".$MAX_FD" = . && MAX_FD="maximum"
90
90
  #
91
91
  test ".$TOMCAT_USER" = . && TOMCAT_USER=tomcat
92
92
  # Set JAVA_HOME to working JDK or JRE
93
- # JAVA_HOME=/opt/jdk-1.6.0.22
94
93
  # If not set we'll try to guess the JAVA_HOME
95
94
  # from java binary if on the PATH
96
95
  #
@@ -149,13 +148,22 @@ if [ -r "$CATALINA_BASE/bin/tomcat-juli.jar" ] ; then
149
148
  else
150
149
  CLASSPATH="$CLASSPATH:$CATALINA_HOME/bin/tomcat-juli.jar"
151
150
  fi
151
+
152
+ # Check for the deprecated LOGGING_CONFIG
153
+ # Only use it if CATALINA_LOGGING_CONFIG is not set and LOGGING_CONFIG starts with "-D..."
154
+ if [ -z "$CATALINA_LOGGING_CONFIG" ]; then
155
+ if [ "${LOGGING_CONFIG#*-D}" != "$LOGGING_CONFIG" ]; then
156
+ CATALINA_LOGGING_CONFIG="$LOGGING_CONFIG"
157
+ fi
158
+ fi
159
+
152
160
  # Set juli LogManager config file if it is present and an override has not been issued
153
- if [ -z "$LOGGING_CONFIG" ]; then
161
+ if [ -z "$CATALINA_LOGGING_CONFIG" ]; then
154
162
  if [ -r "$CATALINA_BASE/conf/logging.properties" ]; then
155
- LOGGING_CONFIG="-Djava.util.logging.config.file=$CATALINA_BASE/conf/logging.properties"
163
+ CATALINA_LOGGING_CONFIG="-Djava.util.logging.config.file=$CATALINA_BASE/conf/logging.properties"
156
164
  else
157
165
  # Bugzilla 45585
158
- LOGGING_CONFIG="-Dnop"
166
+ CATALINA_LOGGING_CONFIG="-Dnop"
159
167
  fi
160
168
  fi
161
169
 
@@ -183,6 +191,12 @@ if [ "$cygwin" = "false" ]; then
183
191
  fi
184
192
  fi
185
193
 
194
+ # Set UMASK unless it has been overridden
195
+ if [ -z "$UMASK" ]; then
196
+ UMASK="0027"
197
+ fi
198
+ umask $UMASK
199
+
186
200
  # Java 9 no longer supports the java.endorsed.dirs
187
201
  # system property. Only try to use it if
188
202
  # JAVA_ENDORSED_DIRS was explicitly set
@@ -199,49 +213,53 @@ fi
199
213
  case "$1" in
200
214
  run )
201
215
  shift
202
- "$JSVC" $* \
203
- $JSVC_OPTS \
204
- -java-home "$JAVA_HOME" \
205
- -pidfile "$CATALINA_PID" \
206
- -wait "$SERVICE_START_WAIT_TIME" \
216
+ eval exec "\"$JSVC\"" $* \
217
+ "$JSVC_OPTS" \
218
+ -java-home "\"$JAVA_HOME\"" \
219
+ -pidfile "\"$CATALINA_PID\"" \
220
+ -wait $SERVICE_START_WAIT_TIME \
221
+ -umask $UMASK \
207
222
  -nodetach \
208
- -outfile "&1" \
209
- -errfile "&2" \
210
- -classpath "$CLASSPATH" \
211
- "$LOGGING_CONFIG" $JAVA_OPTS $CATALINA_OPTS \
212
- -D$ENDORSED_PROP="$JAVA_ENDORSED_DIRS" \
213
- -Dcatalina.base="$CATALINA_BASE" \
214
- -Dcatalina.home="$CATALINA_HOME" \
215
- -Djava.io.tmpdir="$CATALINA_TMP" \
223
+ -outfile "\"&1\"" \
224
+ -errfile "\"&2\"" \
225
+ -classpath "\"$CLASSPATH\"" \
226
+ "\"$CATALINA_LOGGING_CONFIG\"" "$JAVA_OPTS" "$CATALINA_OPTS" \
227
+ -D$ENDORSED_PROP="\"$JAVA_ENDORSED_DIRS\"" \
228
+ -Dcatalina.base="\"$CATALINA_BASE\"" \
229
+ -Dcatalina.home="\"$CATALINA_HOME\"" \
230
+ -Djava.io.tmpdir="\"$CATALINA_TMP\"" \
216
231
  $CATALINA_MAIN
217
232
  exit $?
218
233
  ;;
219
234
  start )
220
- "$JSVC" $JSVC_OPTS \
221
- -java-home "$JAVA_HOME" \
235
+ eval "\"$JSVC\"" \
236
+ "$JSVC_OPTS" \
237
+ -java-home "\"$JAVA_HOME\"" \
222
238
  -user $TOMCAT_USER \
223
- -pidfile "$CATALINA_PID" \
224
- -wait "$SERVICE_START_WAIT_TIME" \
225
- -outfile "$CATALINA_OUT" \
226
- -errfile "&1" \
227
- -classpath "$CLASSPATH" \
228
- "$LOGGING_CONFIG" $JAVA_OPTS $CATALINA_OPTS \
229
- -D$ENDORSED_PROP="$JAVA_ENDORSED_DIRS" \
230
- -Dcatalina.base="$CATALINA_BASE" \
231
- -Dcatalina.home="$CATALINA_HOME" \
232
- -Djava.io.tmpdir="$CATALINA_TMP" \
239
+ -pidfile "\"$CATALINA_PID\"" \
240
+ -wait $SERVICE_START_WAIT_TIME \
241
+ -umask $UMASK \
242
+ -outfile "\"$CATALINA_OUT\"" \
243
+ -errfile "\"&1\"" \
244
+ -classpath "\"$CLASSPATH\"" \
245
+ "\"$CATALINA_LOGGING_CONFIG\"" "$JAVA_OPTS" "$CATALINA_OPTS" \
246
+ -D$ENDORSED_PROP="\"$JAVA_ENDORSED_DIRS\"" \
247
+ -Dcatalina.base="\"$CATALINA_BASE\"" \
248
+ -Dcatalina.home="\"$CATALINA_HOME\"" \
249
+ -Djava.io.tmpdir="\"$CATALINA_TMP\"" \
233
250
  $CATALINA_MAIN
234
251
  exit $?
235
252
  ;;
236
253
  stop )
237
- "$JSVC" $JSVC_OPTS \
254
+ eval "\"$JSVC\"" \
255
+ "$JSVC_OPTS" \
238
256
  -stop \
239
- -pidfile "$CATALINA_PID" \
240
- -classpath "$CLASSPATH" \
241
- -D$ENDORSED_PROP="$JAVA_ENDORSED_DIRS" \
242
- -Dcatalina.base="$CATALINA_BASE" \
243
- -Dcatalina.home="$CATALINA_HOME" \
244
- -Djava.io.tmpdir="$CATALINA_TMP" \
257
+ -pidfile "\"$CATALINA_PID\"" \
258
+ -classpath "\"$CLASSPATH\"" \
259
+ -D$ENDORSED_PROP="\"$JAVA_ENDORSED_DIRS\"" \
260
+ -Dcatalina.base="\"$CATALINA_BASE\"" \
261
+ -Dcatalina.home="\"$CATALINA_HOME\"" \
262
+ -Djava.io.tmpdir="\"$CATALINA_TMP\"" \
245
263
  $CATALINA_MAIN
246
264
  exit $?
247
265
  ;;