Skip to content

Instantly share code, notes, and snippets.

@antoniocaccamo
Last active December 23, 2020 13:25
Show Gist options
  • Save antoniocaccamo/4038ff722ad90dce7eb1b11c1b333e45 to your computer and use it in GitHub Desktop.
Save antoniocaccamo/4038ff722ad90dce7eb1b11c1b333e45 to your computer and use it in GitHub Desktop.
tomcat home & base

tomcat setup

apache-tomcat/
      |_ home/
      |   |_ X.Y.Z/
      |_ base/
      |   |_ server_X/ 
      |   |_ server_X.bat
      |_set_home.bat

tomcat : set catalina home

SET JAVA_OPTS=<java options>
SET JAVA_HOME=<JDK_PATH>

SET MYPATH=%~dp0
SET CATALINA_HOME=%MYPATH:~0,-1%\home\X.Y.Z

tomcat : set catalina base

@echo off

TITLE="server_X"
SET TITLE="server_X"

set JPDA_ADDRESS=5005

SET MYPATH=%~dp0
SET MYPATH=%MYPATH:~0,-1%

SET CATALINA_BASE=%MYPATH%\server_X
:: set CATALINA_HOME
call %MYPATH%\..\set_home.cmd

SET CATALINA_PID=%CATALINA_BASE%\pid\tomcat.pid
SET CATALINA_LOGS=%CATALINA_BASE%\logs

SET JAVA_ENDORSED_DIRS=%CATALINA_HOME%\endorsed
SET GC_LOG=%CATALINA_LOGS%\gc.log


call %CATALINA_HOME%\bin\catalina.bat jpda run


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment