Tomcat failed to deploy application, access 404

I deploy the project file directly. The structure of the project file is:

Test/src
    /WebRoot/index.html
            /WEB-INF/
           .......
                                        
                                        

throw it directly under the webapps folder and start successfully, but you need to add WebRott
http://localhost:8080/Test/WebRoot/index.html

when you want to access it.

so I took out the files in WebRoot to deploy

 /Test/index.html
      /WEB-INF/
      ......
            

so tomcat starts successfully, but the application deployment fails. The failed log is

.

tomcat8.0

I would like to ask why!

Mar.24,2021

looks like a version mismatch
it is recommended to check the appropriate versions of spring, tomcat and jdk


ROOT is the default project deployment directory for tomcat. In this directory, tomcat will read the war package and extract it, and then load the project file into the tomcat container. If your tomcat has not been manually modified, you should pay attention to your project configuration. If you do not specify servlet, then there may be problems with the tomcat configuration. Check the tomcat configuration file

.
$ vim conf/server.xml -sharptomcat

Container configuration for project deployment is found in the lower half of the configuration file


Thank you for your answers.

my final solution is to change the server.

probably because my current server has used apt to download the installation of tomcat8,tomcat8, the configuration file is scattered in Linux, and I didn't uninstall it cleanly when I uninstalled it, so I downloaded apacahe-tomcat-8.0xxx.tar.gz, and then there was a problem with deployment. I didn't look carefully to find out where the configuration file conflicts. I may have been calling the server.xml configuration that didn't uninstall the clean tomcat8. As a result, my tomcat configuration was clearly fine, but the deployment failed.

so I used another clean server that didn't have tomcat and jdk installed, and then downloaded the installation configuration and deployed it successfully, no problem.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bec1d6-31aeb.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bec1d6-31aeb.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?