https://bz.apache.org/bugzilla/show_bug.cgi?id=60366
Bug ID: 60366 Summary: catalina.bat should not modify $JAVA_OPTS to add $LOGGING_MANAGER Product: Tomcat 8 Version: 8.5.8 Hardware: PC Status: NEW Severity: normal Priority: P2 Component: Catalina Assignee: dev@tomcat.apache.org Reporter: icerm...@gmail.com Target Milestone: ---- catalina.bat adds logging manager and logging configuration parameters to JAVA_OPTS. This can cause issues when sub-processes are spawned. As far as I understand, the sub-process tries to use java.util.logging but throws an ClassNotFoundException because org.apache.juli.ClassLoaderLogManager is not on classpath. This has already been solved for catalina.sh back in 2013, see bug 54601 for further explanations (https://bz.apache.org/bugzilla/show_bug.cgi?id=54601) The same issuses as described in bug 54601, with Jenkins and Gradle, are still present in the Windows version of Tomcat 8.5.8. Since the catalina.bat file looks the same in this regard for tomcat 7 and 9 it is reasonable to believe these versions are affected as well. A solution similar to the one for catalina.sh solves the issue for me. Remove the assignments to JAVA_OPTS in lines 213 and 218 and add the LOGGING_CONFIG and LOGGING_MANAGER variables to where the JAVA_OPTS is used in lines 336, 339, 343, 346 208 if not "%LOGGING_CONFIG%" == "" goto noJuliConfig 209 set LOGGING_CONFIG=-Dnop 210 if not exist "%CATALINA_BASE%\conf\logging.properties" goto noJuliConfig 211 set LOGGING_CONFIG=-Djava.util.logging.config.file="%CATALINA_BASE%\conf\logging.properties" 212 :noJuliConfig 213 - set "JAVA_OPTS=%JAVA_OPTS% %LOGGING_CONFIG%" 214 215 if not "%LOGGING_MANAGER%" == "" goto noJuliManager 216 set LOGGING_MANAGER=-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 217 :noJuliManager 218 - set "JAVA_OPTS=%JAVA_OPTS% %LOGGING_MANAGER%" 336 - %_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS% -classpath "%CLASSPATH%" 336 + %_EXECJAVA% %LOGGING_CONFIG% %LOGGING_MANAGER% %JAVA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS% -classpath "%CLASSPATH%" -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org