Search code examples
javalinuxspring-bootjar

Start the SpringBoot project as a Jar package


My SpringBoot project can be started normally in the development tool in the form of source code, but when I package it as a jar and upload it to Linux to start, it prompts me this error, please give me some advice on how to troubleshoot the problem.....(The erased part is the startup class of my project)enter image description here


Solution

  • In your stacktrace it seems that

    enter image description here

    Can you check at CometClientRegistrar.java 209 line? I think when you run from your ide, you are adding few settings like environment variables, options which you are missing when you run jar manually with java -jar app.jar