Failed to add external Tomcat server in Netbeans 7.1

I am going to add a Tomcat server in Netbeans 7.1, it shows:

The specified Server Location (Catalina Home) folder is not valid. 

The specified Server Location (Catalina Home) folder is not valid.

Can this explain this body?

+5
tomcat netbeans
source share
6 answers

It seems that you did not indicate the correct path. Perhaps see this Netbeans Wiki page on how to add Tomcat as an external server might help.

+4
source share

CATALINA_HOME belongs to the Tomcat root directory. This is often set as a sytem variable along with JAVA_HOME, the location of your jdk.

When netbean asks for the path to your Tomcat server, give it the root path of your Tomcat installation, not the bin directory.

+5
source share

This is what he 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"

+3
source share

In my case, the necessary information made it possible to look at "It works!". the page that serves Tomcat by default in localhost:8080 .

He mentioned places CATALINA_HOME and CATALINA_BASE, which in my case, where:

 CATALINA_HOME=/usr/share/tomcat7 CATALINA_BASE=/var/lib/tomcat7 

Entering both paths in the Netbeans dialog box did the job.

NOTE. If you see the following warning, because you also need to add the CATALINA_BASE path, not just the home one.

The <CATALINA_HOME> /conf/server.xml can't be read.


You may have credential issues

Cannot lock read-only file /var/lib/tomcat7/conf/tomcat-users.xml

To solve this new problem, simply add a new user to the specified file and try again.

This error occurs because the file can only be written by the Root user, and not by Netbeans. And because of this, it is not recommended to use the Create user if it does not exist parameter.


For more information, check out the Ubuntu server manual and this Netbeans thread .

+3
source share

In my case, I needed to feed the tomcat directory -

  sudo chown -R username:username /opt/tomcat-8/ 

Because I set the owner and group in tomcat. Alternatively, my user is added to the tomcat group.

+1
source share

If you get:

Invalid folder with the specified server address (Catalan home)

it just means that you did not specify the correct directory for tomcat,

Right-click on the servers in Netbean-> Add Server-> Apache Tomcat or TomcatEE-> Next-> Overview Therefore, when you go to the extracted tomcat folder, be sure to click it one more time to get to the root directory, and the error will disappear and click Finish.

0
source share

All Articles