Unable to Add external Server Tomcat In Netbeans 7.1

后端 未结 7 1132
面向向阳花
面向向阳花 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 23:09

    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.

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


    You may still have troubles with the credentials

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

    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.

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