Unable to Add external Server Tomcat In Netbeans 7.1

后端 未结 7 1131
面向向阳花
面向向阳花 2020-12-20 22:29

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

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

相关标签:
7条回答
  • 2020-12-20 22:58

    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"

    0 讨论(0)
  • 2020-12-20 22:58

    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.

    0 讨论(0)
  • 2020-12-20 22:58

    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/

    0 讨论(0)
  • 2020-12-20 23:00

    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.

    0 讨论(0)
  • 2020-12-20 23:03

    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.

    0 讨论(0)
  • 2020-12-20 23:07

    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.

    0 讨论(0)
提交回复
热议问题