C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem @echo off C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem Licensed to the Apache Software Foundation (ASF) under one or more C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem contributor license agreements. See the NOTICE file distributed with C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem this work for additional information regarding copyright ownership. C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem The ASF licenses this file to You under the Apache License, Version 2.0 C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem (the "License"); you may not use this file except in compliance with C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem the License. You may obtain a copy of the License at C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem http://www.apache.org/licenses/LICENSE-2.0 C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem Unless required by applicable law or agreed to in writing, software C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem distributed under the License is distributed on an "AS IS" BASIS, C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem See the License for the specific language governing permissions and C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem limitations under the License. C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem --------------------------------------------------------------------------- C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem Start/Stop Script for the CATALINA Server C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem Environment Variable Prerequisites C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem Do not set the variables in this script. Instead put them into a script C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem setenv.bat in CATALINA_BASE/bin to keep your customizations separate. C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem WHEN RUNNING TOMCAT AS A WINDOWS SERVICE: C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem Note that the environment variables that affect the behavior of this C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem script will have no effect at all on Windows Services. As such, any C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem local customizations made in a CATALINA_BASE/bin/setenv.bat script C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem will also have no effect on Tomcat when launched as a Windows Service. C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem The configuration that controls Windows Services is stored in the Windows C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem Registry, and is most conveniently maintained using the "tomcatXw.exe" C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem maintenance utility, where "X" is the major version of Tomcat you are C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem running. C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem CATALINA_HOME May point at your Catalina "build" directory. C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem CATALINA_BASE (Optional) Base directory for resolving dynamic portions C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem of a Catalina installation. If not present, resolves to C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem the same directory that CATALINA_HOME points to. C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem CATALINA_OPTS (Optional) Java runtime options used when the "start", C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem "run" or "debug" command is executed. C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem Include here and not in JAVA_OPTS all options, that should C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem only be used by Tomcat itself, not by the stop process, C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem the version command etc. C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem Examples are heap size, GC logging, JMX ports etc. C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem CATALINA_TMPDIR (Optional) Directory path location of temporary directory C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem the JVM should use (java.io.tmpdir). Defaults to C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem \temp. C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem JAVA_HOME Must point at your Java Development Kit installation. C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem Required to run the with the "debug" argument. C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem JRE_HOME Must point at your Java Runtime installation. C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem Defaults to JAVA_HOME if empty. If JRE_HOME and JAVA_HOME C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem are both set, JRE_HOME is used. C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem JAVA_OPTS (Optional) Java runtime options used when any command C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem is executed. C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem Include here and not in CATALINA_OPTS all options, that C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem should be used by Tomcat and also by the stop process, C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem the version command etc. C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem Most options should go into CATALINA_OPTS. C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem JPDA_TRANSPORT (Optional) JPDA transport used when the "jpda start" C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem command is executed. The default is "dt_socket". C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem JPDA_ADDRESS (Optional) Java runtime options used when the "jpda start" C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem command is executed. The default is localhost:8000. C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem JPDA_SUSPEND (Optional) Java runtime options used when the "jpda start" C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem command is executed. Specifies whether JVM should suspend C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem execution immediately after startup. Default is "n". C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem JPDA_OPTS (Optional) Java runtime options used when the "jpda start" C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem command is executed. If used, JPDA_TRANSPORT, JPDA_ADDRESS, C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem and JPDA_SUSPEND are ignored. Thus, all required jpda C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem options MUST be specified. The default is: C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem -agentlib:jdwp=transport=, C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem address=,server=y,suspend= C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem JSSE_OPTS (Optional) Java runtime options used to control the TLS C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem implementation when JSSE is used. Default is: C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem "-Djdk.tls.ephemeralDHKeySize=2048" C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem LOGGING_CONFIG (Optional) Override Tomcat's logging config file C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem Example (all one line) C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem set LOGGING_CONFIG="-Djava.util.logging.config.file=\conf\logging.properties" C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem LOGGING_MANAGER (Optional) Override Tomcat's logging manager C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem Example (all one line) C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem set LOGGING_MANAGER="-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager" C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem TITLE (Optional) Specify the title of Tomcat window. The default C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem TITLE is Tomcat if it's not specified. C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem Example (all one line) C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem set TITLE=Tomcat.Cluster#1.Server#1 [2023-04-25 8:35:55.13] C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem --------------------------------------------------------------------------- C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>setlocal C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem CUBA C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>set CATALINA_HOME= C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>set CATALINA_BASE= C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem Suppress Terminate batch job on CTRL+C C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>if not ""jpda"" == ""run"" goto mainEntry C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>del /Q "C:\Users\denis.kos\AppData\Local\Temp\catalina.bat.run" 1>NUL 2>&1 C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem Guess CATALINA_HOME if not defined C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>set "CURRENT_DIR=C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin" C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>if not "" == "" goto gotHome C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>set "CATALINA_HOME=C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin" C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>if exist "C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin\bin\catalina.bat" goto okHome C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>cd .. C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat>set "CATALINA_HOME=C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat" C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat>cd "C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin" C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>if exist "C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin\catalina.bat" goto okHome C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem Copy CATALINA_BASE from CATALINA_HOME if not defined C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>if not "" == "" goto gotBase C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>set "CATALINA_BASE=C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat" C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem Ensure that neither CATALINA_HOME nor CATALINA_BASE contains a semi-colon C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem as this is used as the separator in the classpath and Java provides no C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem mechanism for escaping if the same character appears in the path. Check this C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem by replacing all occurrences of ';' with '' and checking that neither C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem CATALINA_HOME nor CATALINA_BASE have changed C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>if "C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat" == "C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat" goto homeNoSemicolon C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>if "C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat" == "C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat" goto baseNoSemicolon C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem Ensure that any user defined CLASSPATH variables are not used on startup, C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem but allow them to be specified in setenv.bat, in rare case when it is needed. C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>set CLASSPATH= C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem Get standard environment variables C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>if not exist "C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin\setenv.bat" goto checkSetenvHome C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>call "C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin\setenv.bat" C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>set CATALINA_OPTS=-Xmx512m -Dfile.encoding=UTF-8 C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>set CATALINA_OPTS=-Xmx512m -Dfile.encoding=UTF-8 -Dlogback.configurationFile="C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat/conf/logback.xml" C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>set CATALINA_OPTS=-Xmx512m -Dfile.encoding=UTF-8 -Dlogback.configurationFile="C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat/conf/logback.xml" -Dcom.sun.management.jmxremote C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem set CATALINA_OPTS=-Xmx512m -Dfile.encoding=UTF-8 -Dlogback.configurationFile="C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat/conf/logback.xml" -Dcom.sun.management.jmxremote -Djava.rmi.server.hostname=localhost C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem set CATALINA_OPTS=-Xmx512m -Dfile.encoding=UTF-8 -Dlogback.configurationFile="C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat/conf/logback.xml" -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=7777 C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem set CATALINA_OPTS=-Xmx512m -Dfile.encoding=UTF-8 -Dlogback.configurationFile="C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat/conf/logback.xml" -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.ssl=false C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem set CATALINA_OPTS=-Xmx512m -Dfile.encoding=UTF-8 -Dlogback.configurationFile="C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat/conf/logback.xml" -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem set CATALINA_OPTS=-Xmx512m -Dfile.encoding=UTF-8 -Dlogback.configurationFile="C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat/conf/logback.xml" -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.password.file=../conf/jmxremote.password -Dcom.sun.management.jmxremote.access.file=../conf/jmxremote.access C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>set JPDA_OPTS=-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>set "CATALINA_OPTS=-Xmx512m -Dfile.encoding=UTF-8 -Dlogback.configurationFile="C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat/conf/logback.xml" -Dcom.sun.management.jmxremote " C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>goto setenvDone C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>rem Get standard Java environment variables C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>if exist "C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin\setclasspath.bat" goto okSetclasspath C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin>call "C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin\setclasspath.bat" jpda Using CATALINA_BASE: "C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat" Using CATALINA_HOME: "C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat" Using CATALINA_TMPDIR: "C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\temp" Using JRE_HOME: "C:/Program Files/Java/jdk1.8.0_361" Using CLASSPATH: "C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin\bootstrap.jar;C:\Users\denis.kos\IdeaProjects\BPS\deploy\tomcat\bin\tomcat-juli.jar" ERROR: JDWP unable to get necessary JVMTI capabilities.