I am going to add Tomcat server in Netbeans 7.1 , it shows:
The specified Server Location (Catalina Home) folder is not valid.
This is what it is looking for: D:\Program Files\Apache Software Foundation\Apache Tomcat 7.0.22
Using CATALINA_BASE: "D:\Program Files\Apache Software Foundation\Apache Tomcat 7.0.22"
Using CATALINA_HOME: "D:\Program Files\Apache Software Foundation\Apache Tomcat 7.0.22"
Using CATALINA_TMPDIR: "D:\Program Files\Apache Software Foundation\Apache Tomcat 7.0.22\temp"
Using JRE_HOME: "D:\Program Files\Java\jdk1.6.0_21"
Using CLASSPATH: "D:\Program Files\Apache Software Foundation\Apache Tomcat 7.0.22\bin\bootstrap.jar;D:\Program Files\Apache Software Foundation\Apache Tomcat 7.0.22\bin\tomcat-juli.jar"
If you are getting:
The specified Server location(catalina home) folder not valid
error, it simply means you have not specified the correct directory to the tomcat,
Right click on Servers in your Netbean->Add server-> Apache Tomcat or TomcatEE->Next->Browse So when you navigate to the the extracted folder of the tomcat make sure you click it one more time to get into the root directory and the error will disappear, then click finish.
Netbeans 12.0 apache-tomcat-8.5.60
this will give you the catalina.home
directory
ps aux | grep catalina
catalina.home=/opt/tomcat/apache-tomcat-8.5.60
catalina.base=/opt/tomcat/apache-tomcat-8.5.60
chown the tomcat directory worked for me
sudo chmod -R 775 /opt/tomcat/
CATALINA_HOME refers to the root directory of Tomcat. This is often set as a sytem variable along with JAVA_HOME, the location of your jdk.
When netbean asks for a path to your Tomcat server, give it the root path of your Tomcat installation, not the bin directory.
It looks like you did not specify the correct path. Maybe looking at this Netbeans Wiki Page on how to add Tomcat as an External server might help.
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.