java as service - error 1067 when starting
See original GitHub issueI am trying to use winsw to start a jar as a Windows Service. For now, I’m trying on a simple Hello World Spring Boot Application. I manage to install the service but when I try to start the service I got an error 1067
My log file is not really usefull : 2020-12-08 14:51:08,235 INFO - Installing service ‘MyApp (MyApp)’… 2020-12-08 14:51:08,256 INFO - Service ‘MyApp (MyApp)’ was installed successfully. 2020-12-08 14:51:18,283 DEBUG - Starting WinSW in service mode. 2020-12-08 14:51:18,303 INFO - Starting java 2020-12-08 14:51:18,359 INFO - Started process java (22364). 2020-12-08 14:51:18,378 INFO - Service started successfully. 2020-12-08 14:51:18,381 WARN - Child process ‘java (22364)’ finished with code -1073741502.
All my files are on the same folder as follow :
And my xml configuration is the following :
<service>
<id>MyApp</id>
<name>MyApp</name>
<description>This runs Spring Boot as a Service.</description>
<executable>java</executable>
<arguments>-jar "%BASE%\MyApp.jar"</arguments>
<logmode>rotate</logmode>
<logpath>%BASE%\logs\</logpath>
</service>
I try with the full path to the java.exe also but I have the same issue. Any idea what my be wrong in my configuration ?
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (5 by maintainers)
Top GitHub Comments
Yes indeed, apparently that was the update KB4592449 for Windows 10.
Who knows what the update has to do with this? Anyway thanks for following up on the issue!