First, put the corresponding war package directly under $tomcat_home/webapps (I upload it directly with the WINSCP tool) and then, modify the $tomcat_home/conf/server.xml, adding something similar to the following in the host configuration segment: < Context path= "/" docbase= "Hdfs-webdav.war" debug= "0" privileged= "true" reloadable= "true"/> which, The Docbase parameter identifies the name of the war package. Access is accessed using the following address: Http://ip:port/hdfs-webdav If you want to deploy the war package to the Tomcat root and access it directly using Http://ip:port, the following actions are required: First, unzip the war package and deploy it to the exception of $ Directories other than Tomcat_home/webapps. Delete all files under the $tomcat_home/webapps/root Directory III, in the $tomcat_home/conf/catalina/localhost directory, Create a new Root.xml file with a write similar to the following:
- <?xml version= ' 1.0 ' encoding= ' utf-8 '?>
- <context path= "/" docbase= "/usr/local/tomcat-6.0/webdav" debug= "0" privileged= "true" reloadable= "true"/>
Where docbase points to the name of the directory after the war package is extracted, the absolute path is required.