Document base /home/ec2-user/myproject/web does not exist or is not a readable directory
问题 I am deploying my project to AWS with Apache Tomcat 7. I added the ROOT.xml into Catalina/localhost/ like this <Context path="/" docBase="/home/ec2-user/myproject/web" workDir="/home/ec2-user/myproject/work" crossContext="true"> </Context> Starting Tomcat gives me the famous exception of Tomcat, but sadly, I cannot resolve it java.lang.IllegalArgumentException: Document base /home/ec2-user/myproject/web does not exist or is not a readable directory at org.apache.naming.resources