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


Ce message et toutes les pieces jointes (ci-apres le "message") sont etablis a 
l'intention exclusive de ses destinataires.
Si vous recevez ce message par erreur, merci de le detruire et d'en avertir 
immediatement l'expediteur par e-mail.
Toute utilisation de ce message non conforme a sa destination, toute diffusion 
ou toute publication, totale ou partielle, est interdite, sauf autorisation 
expresse. Les communications sur Internet n'etant pas securisees, l'expediteur 
informe qu'il ne peut accepter aucune responsabilite quant au contenu de ce 
message.
This mail message and attachments (the "message") are solely intended for the 
addresses. It is confidential in nature.
If you receive this message in error, please delete it and immediately notify 
the sender by e-mail.
Any use other than its intended purpose, dissemination or disclosure, either 
whole or partial, is prohibited except if formal approval is granted. As 
communication on the Internet is not secure, the sender does not accept 
responsibility for the content of this message.

Reply via email to