Tomcat Logging while running as a windows service

前端 未结 5 1917
我在风中等你
我在风中等你 2021-01-23 14:13

I have a web application running under Tomcat.

Logging for various features is implemented using java.util.logging.

When running tomcat via startup.bat the loggi

5条回答
  •  感情败类
    2021-01-23 15:01

    This is probably a permissions issue when using Tomcat 9 on windows.

    The service.bat install tool from the bin folder of tomcat is registering tomcat as a local service account.

    This account type doesn't have enough permissions (among which writing its log files and compiling jsps). To fix this you can change the service account type and use a local user account to run the service.

    Alternatively the account can be changed to a local system acocunt (which used to be the case for the service installer), but due to security reasons, this is no longer recommended.

    See also Tomcat Service gets installed with “Local Service” account

提交回复
热议问题