Why is 404 error when deploying war file?

I have a Spring mvc application. I use ubuntu 16.04 and did everything according to the instructions: I installed Tomcat9, Apache, mysql. Through FileZilla I uploaded the war file, but when deploying it gives a 404 error. When I only access my IP address I get the Ubuntu welcome page, but when I add requests from my application I get an error. What could be the problem?

I put the war file in the webapps directory. I turned off auto-deployment I tried to run it via sudo cp /home/ftp/my_app.war /opt/tomcat/webapps I restarted everything


20-Feb-2021 23:56:22.302 INFO [Catalina-utility-1]<clinit> HCANN000001: Hibernate Commons Annotations {5.1.2.Final} 20-Feb-2021 23:56:23.723 INFO [Catalina-utility-1] org.hibernate.dialect.Dialect.<init> HHH000400: Using dialect: org.hibernate.dialect.MySQL8Dialect 20-Feb-2021 23:56:25.093 INFO [Catalina-utility-1] org.hibernate.engine.transaction.jta.platform.internal.JtaPlatformInitiator.initiateService HHH000490: Using JtaPlatform implementation: [ 
org .hibernate, engine .transaction. j ta .platform. internal. NoJtaPlatform] 20-Feb-2021 23:56:26.428 INFO [Catalina-utility-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [/opt/tomcat/webapps/my_app.war] has finished i n [12,247] ms 

[Sun Feb 21 00:28:13.958352 2021] [ssl:error] [pid 1763:tid 140522761787264] AH02604: Unable to configure certificate for stapling [Sun Feb 21 00:28:14.032213 2021] [ssl:warn] [pid 1775:tid 140522761787264] AH01906: server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Sun Feb 21 00:28:14.032350 2021] [ssl:error] [pid 1775:tid 140522761787264] AH02217: ssl stapling init cert: can't retrieve issuer certificate! [subject:, N=,O=LidiiaMoor,L=Amsterdam,ST=Amsterdam,C=NL / issuer:,CN=,0=LidiiaMoor,L=Amsterdam,ST=Amsterdam,C=NL / serial: ED8D3A46EFD 7482B / notbefore: Feb 20 15:18:41 2021 GMT / notafter: Feb 20 15:18:41 2022 GMT] [Sun Feb 21 00:28:14.032359 2021] [ssl:error] [pid 1775:tid 140522761787264] AH02604: Unable to configure certificate for stapling [Sun Feb 21 00:28:14.033279 2021] [mpm event:notice] [pid 1775:tid 140522761787264] AH00489: Apache/2.4.18 (Ubuntu) mod jk/1.2.41 OpenSSL/1.0.2g configured -- resuming normal operations [Sun Feb 21 00:28:14.033309 2021] [core:notice] [pid 1775:tid 140522761787264] 

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer