Home > Software design >  Deploy war file into tomcat inside VPS
Deploy war file into tomcat inside VPS

Time:05-04

I'm trying to add a war file to the tomcat inside a VPS and not working at the moment. I have watched a tutorial to setup the tomcat and i think a have the part inside the VPS working.

The tomcat opens with the GUI in the web. And connecting with the ip of the VPS.

I also added the inside the class that has the main file in it.

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(DaiApplication.class);
    } 

But when i'm trying to upload to deploy the war file it doesn't run to me.

This is what shows when i try open to access some path of the api:

Printscreen of the 404 error that appears

CodePudding user response:

There seems to be an issue with your endpoint, take a look in your "logs" directory (should be in $catalina_home/$catalina_base next to your "webapps" directory).

Else are you using Spring Version <= 5 ? Don't use Tomcat 10.xx.xx yet, try the latest Tomcat 9.xx.xx, Tomcat 10 uses Jakarta 9EE and the package names changed from javax.* to jakarta.* . the primary package for all implemented APIs has changed from javax.* to jakarta.* .

  • Related