6

I'm trying to install Tomcat server on NetBeans. I have downloaded the Tomcat files and placed it in.

demo

But I am keeping getting error: "The specified Server Location (Catalina Home) folder is not valid."

error

Why is this happening, and how to solve it?

halfer
  • 19,824
  • 17
  • 99
  • 186
Thor
  • 9,638
  • 15
  • 62
  • 137
  • 1
    Try these two solutions: http://stackoverflow.com/questions/8371059/error-registering-a-tomcat-7-server-in-netbeans-7-catalina-home-folder-is-not-v and http://razius.com/articles/installing-and-adding-an-external-tomcat-server-in-netbeans/ – neohope Aug 25 '16 at 04:22
  • Do you have permission to create a directory within the /Library directory? I know that when you install software in that directory you need administrator permission to do so. – Claudio Corsi Aug 28 '16 at 23:26
  • @ClaudioCorsi yes i do – Thor Aug 29 '16 at 03:34

3 Answers3

4

I am running NetBeans 8.2 on my Mac. I have Tomcat 9.0.8 installed via homebrew. After extensive Googling I was unable to find a solution. It took me a few hours to solve this.

cd /usr/local/opt/tomcat/libexec/bin
ln -s catalina.sh catalina

Set up your server as follows:

Server dialog screenshot

alexander.polomodov
  • 5,396
  • 14
  • 39
  • 46
Steven Swart
  • 121
  • 1
  • 2
2

Please use Tomcat 8.x and try again. IMHO NetBeans currently does not support Tomcat 9, which is still under development and no production release is available.

Thomas
  • 11,272
  • 2
  • 24
  • 40
1

Netbeans 8.2 supports Tomcat 9.

If you're using Netbeans 8.1, upgrade it to Netbeans 8.2

Pikamander2
  • 7,332
  • 3
  • 48
  • 69