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, the information needed was giving looking on the "It works!" page that serves Tomcat by default at localhost:8080
.
It mentioned the CATALINA_HOME and CATALINA_BASE locations, which in my case where:
CATALINA_HOME=/usr/share/tomcat7
CATALINA_BASE=/var/lib/tomcat7
Entering both paths on the Netbeans dialog did the work.
NOTE: if you see the following warning is because you need to also add the CATALINA_BASE path, not only the home.
You may still have troubles with the credentials
To solve this new problem just add a new user into the mentioned file and try again.
This error is because the file can only be written by the Root user, not Netbeans. And because of this, it's not recommendable to use the Create user if it does not exist
option.
For more information checkout the Ubuntu server guide and this Netbeans thread.