ROOT.war replaces Tomcat's default ROOT application - $TOMCAT_HOME/webapps/ROOT
-
Install and use JDK 18
sdk install java 18.0.2-tem sdk use java 18.0.2-tem
-
Install Apache Maven 3.9.0
sdk install maven 3.9.0 sdk use maven 3.9.0
git clone [email protected]:AndriyKalashnykov/tomcat-root-war.git
cd tomcat-root-war
mvn clean package jetty:run
xdg-open http://localhost:8080/index.htmlAccess http://localhost:8080/index.html or see Tomcat ROOT WAR Web Application UI
git clone [email protected]:AndriyKalashnykov/tomcat-root-war.git
cd tomcat-root-war
mvn clean installjar tf ./target/ROOT.warEdit $TOMCAT_HOME/conf/server.xml: autoDeploy and deployOnStartUp needs to be set to false
<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="false" deployOnStartUp="false">Remove default ROOT folder and copy ROOT.war
rm -rf $TOMCAT_HOME/webapps/ROOT/
rm -f $TOMCAT_HOME/webapps/ROOT.war
cp ./target/ROOT.war $TOMCAT_HOME/webapps/ROOT.warDefault welcome page - http://localhost:8080/

JSP - http://localhost:8080/index.jsp

Servlet - http://localhost:8080/infoservlet

