1, modify the file startup.bat
rem Get remaining unshifted command line arguments and save them in the set CMD_LINE_ARGS= :setArgs if ""%1""=="""" goto doneSetArgs set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1 shift goto setArgs :doneSetArgs call "%EXECUTABLE%" run %CMD_LINE_ARGS% :end
2, modify the file catalina.bat
Add the following to the console log file is redirected to file out
%ACTION% >> %CATALINA_HOME%/logs/catalina.%date:~0,4%.%date:~5,2%.%date:~8,2%.out
3, modify the file setclasspath.bat
rem Set standard command for invoking Java. rem Note that NT requires a window name argument when using start. rem Also note the quoting as JAVA_HOME may contain spaces. set _RUNJAVA="%JRE_HOME%\bin\javaw.exe" set _RUNJDB="%JAVA_HOME%\bin\jdb" goto end :exit exit /b 1 :end exit /b 0