Server Location (Catalina Home) folder is not valid

送分小仙女□ 提交于 2020-01-31 03:42:45

问题


Trying to create Web application based on Tomcat. Can't set Tomcat folder:

Error:

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

How to fix this problem?


回答1:


Netbeans 8.1 doesn't support Tomcat 9.

Upgrade your Netbeans to 8.2, or use Tomcat 8 instead.




回答2:


Try to set the environment variables:

PATH: ......C:\Progra..\Java\jdk1.7.0_51
C:\apache-tomcat-7.0.52-windows-x86\apache-tomcat-7.0.52\bin
CATALINA_HOME: F:\apache-tomcat-7.0.52-windows-x86\apache-tomcat-7.0.52
JAVA_HOME: C:\Progra..\Java\jdk1.7.0_51
JRE_HOME: C:\Progra..\Java\jre7

and restart apache after it!




回答3:


To solve this in (Netbeans 8.2), just add the directory of the Apache Tomcat server (where you unzipped your Tomcat server to)

The directory you see in Catalina Home in the picture is where I unzipped Tomcat to.

Set is also in System Environment:

Do not add a semicolon at the end




回答4:


Open the folder and then you find the single folder with apache tomcat 9.0. Press open then, before you just selected the main folder didn't opened it.




回答5:


Just download the appropriate tomcat file and unzip.




回答6:


Check Permissions

One possible reason that someone might receive this error, especially on MacOS or *nix platforms, is permissions. On MacOS, the NetBeans 8-ish installers will install Tomcat in the NetBeans Applications folder, e.g., /Applications/NetBeans/apache-tomcat-maj.min.patch.

If you are following that pattern and upgrade Tomcat to a currently compatible version with your version of NetBeans, you may be forced to unpack the binary as sudo, e.g., sudo tar xvf ~/Downloads/apache-tomcat-maj.min.patch.tar.gz -C /Applications/NetBeans. This will untar your NetBeans install without write permissions for group, other, e.g., 0755 or drwxr-xr-x ....

You can correct that with sudo chown -R user:group apache-tomcat-maj.min.patch as apropos, sudo chown -R javafueled:admin apache-tomcat-maj.min.patch



来源:https://stackoverflow.com/questions/37807636/server-location-catalina-home-folder-is-not-valid

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!