Christoph,

On 1/9/24 08:05, Christoph Kukulies wrote:
I'm trying to install Tomcat-9.0.84 under Windows 10 as a service.
I unpacked it under C:\apache-tomcat-9.0.84 and after creating a file setenv.bat (as of the RUNNING.TXT document)
I ran:

C:\apache-tomcat-9.0.84\bin>set CATALINA_HOME=C:\apache-tomcat-9.0.84"

C:\apache-tomcat-9.0.84\bin>tomcat9 //IS
[2024-01-09 13:57:22] [warn]  [10572] Failed to grant service user 'NT AUTHORITY\LocalService' write permissions to log path 'C:\WINDOWS\system32\LogFiles\Apache' due to error '19: Das Medium ist schreibgesch³tzt.'

C:\apache-tomcat-9.0.84\bin>

This was done in a CMD Window with administrative rights. It's quite a couple of years back I did a tomcat installation under Windows.
Some help appreciated. Thank you.

The setenv.bat script is only run under these scenarios:

1. You launch Tomcat with bin\startup.bat or bin\catalina.bat start or bin\catalina.bat run
2. You run bin\service.bat

When you run bin\service.bat, the setenv.bat script will be run and any environment settings you have there will be set on the Windows Service if you are /creating/ the service.

When the service runs, it will not run bin\setenv.bat.

This means if you need to change something in bin\setenv.bat, you'll need to reinstall the service, or you can hand-edit the service using tomcat9 //ES and modify whatever you want -- usually the JVM options.

-chris

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to