I am going to add Tomcat server in Netbeans 7.1 , it shows:
The specified Server Location (Catalina Home) folder is not valid.
In my case I needed to chown the tomcat directory -
sudo chown -R username:username /opt/tomcat-8/
Because I had set the owner and group to tomcat. Alternately adding my user to the tomcat group works too.