I am trying to run a jar (spring app) as a Windows service. I am using nssm to do so.
When I run the jar file with java -jar myjar.jar
everything works fine. My webapp responds when I enter localhost:8080 where it runs.
After I run
nssm install MyService java -jar myjar.jar
nssm start MyService
I get in the console: MyService: START: The operation completed successfully
My application is usually logging to file as well, but it does not do so when running as a service. It seems like the application is not starting at all. When I try to access localhost:8080, nothing is responding.
Why isn't my app running when I start it as a service with nssm?