> -----Ursprüngliche Nachricht-----
> Von: Bourdais Nicolas <nicolas.bourd...@bodet-software.com.INVALID>
> Gesendet: Dienstag, 19. April 2022 18:08
> An: users@tomcat.apache.org
> Betreff: tomcat 9.0.61 : service incorrectly installed on windows
> 
> Hello everyone
> 
> We had an issue installing Tomcat as a service on windows after an upgrade
> to 9.0.62 : many parameters (startup class and method, jvm etc…) where
> missing.
> 
> We install tomcat as a service through a bat file which chains some
> commands to tomcat9.exe
> 
> For example :
> 
> tomcat9.exe //IS//BodetServiceTomcat --JavaHome "Path\to\jre" --
> Classpath="Path\to\apache-tomcat-9.0.62\bin\bootstrap.jar; Path\to\
> \apache-tomcat-9.0.62\bin\tomcat-juli.jar" --Jvm "
> Path\to\jre\bin\server\jvm.dll" --StartClass
> org.apache.catalina.startup.Bootstrap --StopClass
> org.apache.catalina.startup.Bootstrap --StartParams start --StopParams stop
> tomcat9.exe //US//BodetServiceTomcat --Startup=auto --StartMode jvm --
> StopMode jvm --JvmMx=%BODET_JVM_MX% --
> JvmMs=%BODET_JVM_MS% tomcat9.exe //US//BodetServiceTomcat --
> LogPath="%BODET_CATALINA_HOME%\logs"
> tomcat9.exe //US//BodetServiceTomcat ++JvmOptions "-
> XX:MaxMetaspaceSize=170m"
> 
> etc…
> 
> It turns out that Tomcat 9.0.61 comes with an upgrade of Commons Daemon
> (1.3.0) which has a bug regarding permissions for default log output :
> ttps://issues.apache.org/jira/browse/DAEMON-441
> 
> As stated in comments’ issue, defining –LogPath in our first command (//IS ..)
> resolved the issue
> 
> Nicolas Bourdais
> 

Hello,

I use junctions when updating tomcat.
Thus all paths remain the same and I only have to adjust server.xml to fit my 
needs and replace the junction with mklink.
Maybe it's also an option in your case to ease up tomcat updates.

Greetings, Thomas

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

Reply via email to