I have a war that I want to deploy manually. I put my war in webapps and from the bin folder I started sh startup.sh Tomcat started with the following message:

 $ sh startup.sh Using CATALINA_BASE: /Users/pavel/GitHub/server/apache-tomcat-9.0.0.M26 Using CATALINA_HOME: /Users/pavel/GitHub/server/apache-tomcat-9.0.0.M26 Using CATALINA_TMPDIR: /Users/pavel/GitHub/server/apache-tomcat-9.0.0.M26/temp Using JRE_HOME: /Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home Using CLASSPATH: /Users/pavel/GitHub/server/apache-tomcat-9.0.0.M26/bin/bootstrap.jar:/Users/pavel/GitHub/server/apache-tomcat-9.0.0.M26/bin/tomcat-juli.jar Tomcat started. 

And on http://localhost:8080/ I open tomcat myself, and a folder with the same name as war appeared in the webapps , but according to the address of the servlet, nothing called war-nick opens.

What is needed to make Tomcat launch my war archive? Doesn't tomcat automatically scan webapps and run something that lies there?

    2 answers 2

    You did everything right. View the files in the {tomcat} / logs: catalina.out directory and localhost. [Data] .log. There most likely indicated an error when starting the WAR file.

      The easiest way: delete the contents of the \ webapps \ ROOT folder, and then unpack the contents of your web application ( war ) into the \ webapps \ ROOT folder. For convenience, you can configure in the development environment the assembly of the application directly to the \ webapps \ ROOT folder.