项目持续集成任务gradle执行的时候,console会打印异常,但是build依然成功,猜测是环境问题
Can't load log handler "4host-manager.org.apache.juli.FileHandler"
解决办法如下:
以tomcat7为例,打开tomcatDir/bin下面的catalina.bat,找到代码为:
set JAVA_OPTS=%JAVA_OPTS% %LOGGING_CONFIG%
改成:
rem set JAVA_OPTS=%JAVA_OPTS% %LOGGING_CONFIG%
紧接着下面的:
set JAVA_OPTS=%JAVA_OPTS% %LOGGING_MANAGER%
改成:
rem set JAVA_OPTS=%JAVA_OPTS% %LOGGING_MANAGER%