Do we need to stop jenkins services before run your command? I got this issue when ran:
stop your Jenkins service first by stopping it from services (in windows)
start --> search services Desktop app–>select Jenkins --> stop the service
and then start Jenkins as process
java -jar jenkins.war
Thank you Timo! The issue was fixed by your solution.