Whats the best approach to place servlet context to tomcat 7 root? I have tried this post here but didn\'t work for me; i\'m using Apache Tomcat/7.0.42
tomcat 7
Apache Tomcat/7.0.42
Without changing the .war file to ROOT follow below steps:
.war
ROOT
1. Create a file named ROOT.xml under the tomcat/conf/Catalina/localhost/
1.
ROOT.xml
tomcat/conf/Catalina/localhost/
2. paste below code into the ROOT.xml file:
2.
Now you can access your project in tomcat root.
To have a clean project remove tomcat/webapps/ROOT directory.
tomcat/webapps/ROOT