Re: Windows 10 - installing tomcat 9.0.84 as a service

2024-01-10 Thread Christopher Schultz

Christoph,

On 1/9/24 09:36, Christoph Kukulies wrote:

Thanks for reading along :)

Gotit running now.

First off: too old Java Version bin/client or bin/server didn't exist
After removing that service using  tomcat9 //DS I reinstalled it using
service.bat install.

C:\apache-tomcat-9.0.84\bin>service.bat install 
                                                 Installing the service 
'Tomcat9' ...   
                          Using CATALINA_HOME:   
  "C:\apache-tomcat-9.0.84" 
                           Using CATALINA_BASE:   
  "C:\apache-tomcat-9.0.84" 
                           Using JAVA_HOME:        "c:\Program 
Files\Java\jre-8"   
             Using JRE_HOME:         "c:\Program Files\Java\jre-8"   
                                                             Using JVM: 
              "c:\Program Files\Java\jre-8\bin\server\jvm.dll"   
                                      The service 'Tomcat9' has been 
installed.


Stopping and starting the service using tomcat9w (setting everying to 
auto and start mode Automatic) finale made it working.


I think uninstalling and reinstalling the service is what did it for 
you. (See my previous message in this thread for why.)


-chris

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



Re: Windows 10 - installing tomcat 9.0.84 as a service

2024-01-10 Thread Christopher Schultz

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



Re: Windows 10 - installing tomcat 9.0.84 as a service

2024-01-09 Thread Christoph Kukulies
Thanks for reading along :)

Gotit running now.

First off: too old Java Version bin/client or bin/server didn't exist
After removing that service using  tomcat9 //DS I reinstalled it using 
service.bat install.

C:\apache-tomcat-9.0.84\bin>service.bat install 
Installing the service 'Tomcat9' ...

Using CATALINA_HOME:"C:\apache-tomcat-9.0.84"   
Using CATALINA_BASE:
"C:\apache-tomcat-9.0.84"   
Using JAVA_HOME:"c:\Program Files\Java\jre-8"   
Using JRE_HOME: 
"c:\Program Files\Java\jre-8"   
Using JVM:  "c:\Program 
Files\Java\jre-8\bin\server\jvm.dll"
The service 'Tomcat9' has been installed.   

 

Stopping and starting the service using tomcat9w (setting everying to auto and 
start mode Automatic) finale made it working.

--
Christoph

> Am 09.01.2024 um 15:03 schrieb Christoph Kukulies :
> 
> The picture has changed a bit:
> 
> C:\apache-tomcat-9.0.84\bin>service.bat install
> Installing the service 'Tomcat9' ...
> Using CATALINA_HOME:"C:\apache-tomcat-9.0.84"
> Using CATALINA_BASE:"C:\apache-tomcat-9.0.84"
> Using JAVA_HOME:"c:\Program Files\Java\jdk1.8.0_161"
> Using JRE_HOME: "c:\Program Files\Java\jdk1.8.0_161\jre"
> Using JVM:  "c:\Program 
> Files\Java\jdk1.8.0_161\jre\bin\server\jvm.dll"
> Failed installing 'Tomcat9' service
> 
> C:\apache-tomcat-9.0.84\bin>
> C:\apache-tomcat-9.0.84\logs\commons-daemon.2024-01-09.log :
> 
> [2024-01-09 14:57:32] [info]  [ 7400] Apache Commons Daemon procrun (1.3.4.0 
> 64-bit) started.
> [2024-01-09 14:57:32] [info]  [ 7400] Running Service 'tomcat9'...
> [2024-01-09 14:57:32] [error] [ 7400] StartServiceCtrlDispatcher for 
> 'tomcat9' failed.
> [2024-01-09 14:57:32] [error] [ 7400] Der Dienstprozess konnte keine 
> Verbindung mit dem Dienstcontroller herstellen.
> [2024-01-09 14:57:32] [error] [ 7400] Apache Commons Daemon procrun failed 
> with exit value: 4 (failed to run service).
> [2024-01-09 14:57:32] [error] [ 7400] Der Dienstprozess konnte keine 
> Verbindung mit dem Dienstcontroller herstellen.
> 
> 
>> Am 09.01.2024 um 14:31 schrieb Christoph Kukulies > >:
>> 
>> A few more observations: the tomcat9 service got installed nonetheless. I 
>> was able to chage the log path using tomcat9w afterwards.
>> But the logs don't look nice, not to talk  from seeing anything listening to 
>> port 8080:
>> 
>> 
>> [2024-01-09 14:19:27] [info]  [ 9876] Apache Commons Daemon procrun (1.3.4.0 
>> 64-bit) started.
>> [2024-01-09 14:19:27] [info]  [ 9876] Running Service 'tomcat9'...
>> [2024-01-09 14:19:27] [info]  [ 6216] Starting service...
>> [2024-01-09 14:19:27] [error] [ 6216] Missing service ImageFile.
>> [2024-01-09 14:19:27] [error] [ 6216] ServiceStart returned 1.
>> [2024-01-09 14:19:27] [info]  [ 9876] Run service finished.
>> [2024-01-09 14:19:27] [info]  [ 9876] Apache Commons Daemon procrun finished.
>> [2024-01-09 14:19:36] [info]  [ 8044] Apache Commons Daemon procrun (1.3.4.0 
>> 64-bit) started.
>> [2024-01-09 14:19:36] [info]  [ 8044] Running Service 'tomcat9'...
>> [2024-01-09 14:19:36] [info]  [ 5340] Starting service...
>> [2024-01-09 14:19:36] [error] [ 5340] Missing service ImageFile.
>> [2024-01-09 14:19:36] [error] [ 5340] ServiceStart returned 1.
>> [2024-01-09 14:19:36] [info]  [ 8044] Run service finished.
>> [2024-01-09 14:19:36] [info]  [ 8044] Apache Commons Daemon procrun finished.
>> [2024-01-09 14:21:25] [info]  [ 1388] Apache Commons Daemon procrun (1.3.4.0 
>> 64-bit) started.
>> [2024-01-09 14:21:25] [info]  [ 1388] Running Service 'tomcat9'...
>> [2024-01-09 14:21:25] [info]  [ 3424] Starting service...
>> [2024-01-09 14:21:25] [error] [ 3424] Missing service ImageFile.
>> [2024-01-09 14:21:25] [error] [ 3424] ServiceStart returned 1.
>> [2024-01-09 14:21:25] [info]  [ 1388] Run service finished.
>> [2024-01-09 14:21:25] [info]  [ 1388] Apache Commons Daemon procrun finished.
>> [2024-01-09 14:21:37] [info]  [ 9840] Apache Commons Daemon procrun (1.3.4.0 
>> 64-bit) started.
>> [2024-01-09 14:21:37] [info]  [ 9840] Running Service 'tomcat9'...
>> [2024-01-09 14:21:37] [info]  [ 9876] Starting service...
>> [2024-01-09 14:21:37] [error] [ 9876] Missing service ImageFile.
>> [2024-01-09 14:21:37] [error] [ 9876] ServiceStart returned 1.
>> [2024-01-09 14:21:37] [info]  [ 9840] Run service finished.
>> [2024-01-09 14:21:37] [info]  [ 

Re: Windows 10 - installing tomcat 9.0.84 as a service

2024-01-09 Thread Christoph Kukulies
The picture has changed a bit:

C:\apache-tomcat-9.0.84\bin>service.bat install
Installing the service 'Tomcat9' ...
Using CATALINA_HOME:"C:\apache-tomcat-9.0.84"
Using CATALINA_BASE:"C:\apache-tomcat-9.0.84"
Using JAVA_HOME:"c:\Program Files\Java\jdk1.8.0_161"
Using JRE_HOME: "c:\Program Files\Java\jdk1.8.0_161\jre"
Using JVM:  "c:\Program 
Files\Java\jdk1.8.0_161\jre\bin\server\jvm.dll"
Failed installing 'Tomcat9' service

C:\apache-tomcat-9.0.84\bin>
C:\apache-tomcat-9.0.84\logs\commons-daemon.2024-01-09.log :

[2024-01-09 14:57:32] [info]  [ 7400] Apache Commons Daemon procrun (1.3.4.0 
64-bit) started.
[2024-01-09 14:57:32] [info]  [ 7400] Running Service 'tomcat9'...
[2024-01-09 14:57:32] [error] [ 7400] StartServiceCtrlDispatcher for 'tomcat9' 
failed.
[2024-01-09 14:57:32] [error] [ 7400] Der Dienstprozess konnte keine Verbindung 
mit dem Dienstcontroller herstellen.
[2024-01-09 14:57:32] [error] [ 7400] Apache Commons Daemon procrun failed with 
exit value: 4 (failed to run service).
[2024-01-09 14:57:32] [error] [ 7400] Der Dienstprozess konnte keine Verbindung 
mit dem Dienstcontroller herstellen.


> Am 09.01.2024 um 14:31 schrieb Christoph Kukulies :
> 
> A few more observations: the tomcat9 service got installed nonetheless. I was 
> able to chage the log path using tomcat9w afterwards.
> But the logs don't look nice, not to talk  from seeing anything listening to 
> port 8080:
> 
> 
> [2024-01-09 14:19:27] [info]  [ 9876] Apache Commons Daemon procrun (1.3.4.0 
> 64-bit) started.
> [2024-01-09 14:19:27] [info]  [ 9876] Running Service 'tomcat9'...
> [2024-01-09 14:19:27] [info]  [ 6216] Starting service...
> [2024-01-09 14:19:27] [error] [ 6216] Missing service ImageFile.
> [2024-01-09 14:19:27] [error] [ 6216] ServiceStart returned 1.
> [2024-01-09 14:19:27] [info]  [ 9876] Run service finished.
> [2024-01-09 14:19:27] [info]  [ 9876] Apache Commons Daemon procrun finished.
> [2024-01-09 14:19:36] [info]  [ 8044] Apache Commons Daemon procrun (1.3.4.0 
> 64-bit) started.
> [2024-01-09 14:19:36] [info]  [ 8044] Running Service 'tomcat9'...
> [2024-01-09 14:19:36] [info]  [ 5340] Starting service...
> [2024-01-09 14:19:36] [error] [ 5340] Missing service ImageFile.
> [2024-01-09 14:19:36] [error] [ 5340] ServiceStart returned 1.
> [2024-01-09 14:19:36] [info]  [ 8044] Run service finished.
> [2024-01-09 14:19:36] [info]  [ 8044] Apache Commons Daemon procrun finished.
> [2024-01-09 14:21:25] [info]  [ 1388] Apache Commons Daemon procrun (1.3.4.0 
> 64-bit) started.
> [2024-01-09 14:21:25] [info]  [ 1388] Running Service 'tomcat9'...
> [2024-01-09 14:21:25] [info]  [ 3424] Starting service...
> [2024-01-09 14:21:25] [error] [ 3424] Missing service ImageFile.
> [2024-01-09 14:21:25] [error] [ 3424] ServiceStart returned 1.
> [2024-01-09 14:21:25] [info]  [ 1388] Run service finished.
> [2024-01-09 14:21:25] [info]  [ 1388] Apache Commons Daemon procrun finished.
> [2024-01-09 14:21:37] [info]  [ 9840] Apache Commons Daemon procrun (1.3.4.0 
> 64-bit) started.
> [2024-01-09 14:21:37] [info]  [ 9840] Running Service 'tomcat9'...
> [2024-01-09 14:21:37] [info]  [ 9876] Starting service...
> [2024-01-09 14:21:37] [error] [ 9876] Missing service ImageFile.
> [2024-01-09 14:21:37] [error] [ 9876] ServiceStart returned 1.
> [2024-01-09 14:21:37] [info]  [ 9840] Run service finished.
> [2024-01-09 14:21:37] [info]  [ 9840] Apache Commons Daemon procrun finished.
> 
> 
> 



smime.p7s
Description: S/MIME cryptographic signature


Re: Windows 10 - installing tomcat 9.0.84 as a service

2024-01-09 Thread Christoph Kukulies
A few more observations: the tomcat9 service got installed nonetheless. I was 
able to chage the log path using tomcat9w afterwards.
But the logs don't look nice, not to talk  from seeing anything listening to 
port 8080:


[2024-01-09 14:19:27] [info]  [ 9876] Apache Commons Daemon procrun (1.3.4.0 
64-bit) started.
[2024-01-09 14:19:27] [info]  [ 9876] Running Service 'tomcat9'...
[2024-01-09 14:19:27] [info]  [ 6216] Starting service...
[2024-01-09 14:19:27] [error] [ 6216] Missing service ImageFile.
[2024-01-09 14:19:27] [error] [ 6216] ServiceStart returned 1.
[2024-01-09 14:19:27] [info]  [ 9876] Run service finished.
[2024-01-09 14:19:27] [info]  [ 9876] Apache Commons Daemon procrun finished.
[2024-01-09 14:19:36] [info]  [ 8044] Apache Commons Daemon procrun (1.3.4.0 
64-bit) started.
[2024-01-09 14:19:36] [info]  [ 8044] Running Service 'tomcat9'...
[2024-01-09 14:19:36] [info]  [ 5340] Starting service...
[2024-01-09 14:19:36] [error] [ 5340] Missing service ImageFile.
[2024-01-09 14:19:36] [error] [ 5340] ServiceStart returned 1.
[2024-01-09 14:19:36] [info]  [ 8044] Run service finished.
[2024-01-09 14:19:36] [info]  [ 8044] Apache Commons Daemon procrun finished.
[2024-01-09 14:21:25] [info]  [ 1388] Apache Commons Daemon procrun (1.3.4.0 
64-bit) started.
[2024-01-09 14:21:25] [info]  [ 1388] Running Service 'tomcat9'...
[2024-01-09 14:21:25] [info]  [ 3424] Starting service...
[2024-01-09 14:21:25] [error] [ 3424] Missing service ImageFile.
[2024-01-09 14:21:25] [error] [ 3424] ServiceStart returned 1.
[2024-01-09 14:21:25] [info]  [ 1388] Run service finished.
[2024-01-09 14:21:25] [info]  [ 1388] Apache Commons Daemon procrun finished.
[2024-01-09 14:21:37] [info]  [ 9840] Apache Commons Daemon procrun (1.3.4.0 
64-bit) started.
[2024-01-09 14:21:37] [info]  [ 9840] Running Service 'tomcat9'...
[2024-01-09 14:21:37] [info]  [ 9876] Starting service...
[2024-01-09 14:21:37] [error] [ 9876] Missing service ImageFile.
[2024-01-09 14:21:37] [error] [ 9876] ServiceStart returned 1.
[2024-01-09 14:21:37] [info]  [ 9840] Run service finished.
[2024-01-09 14:21:37] [info]  [ 9840] Apache Commons Daemon procrun finished.





















































































> Am 09.01.2024 um 14:05 schrieb Christoph Kukulies :
> 
> 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.
> 
> --
> Christoph
> 
> 



smime.p7s
Description: S/MIME cryptographic signature


Windows 10 - installing tomcat 9.0.84 as a service

2024-01-09 Thread Christoph Kukulies
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.

--
Christoph




smime.p7s
Description: S/MIME cryptographic signature