Achini Samuditha
Achini Samuditha

Reputation: 301

How to setup Tomcat server in Netbeans?

I googled a bit and found that it can be done by services--->servers--->add new, but when I try to add new Tomcat server this way, it doesn't appear in the list. Actually nothing is displayed to select from. What can I do now? I have successfully configured Tomcat for Eclipse.

Upvotes: 19

Views: 167033

Answers (5)

Deepthi Tabitha Bennet
Deepthi Tabitha Bennet

Reputation: 1156

In addition to all the mentioned answers, I repeatedly got this error The specified Server Location (Catalina Home) folder is not valid. Mine is a Windows system.

It’s rather simple to sort this.

Go to File Explorer and locate your Tomcat Folder. (The path for mine was C:\Program Files\Apache Software Foundation\Tomcat 9.0)

Open the Tomcat Folder (Tomcat 9.0).

You will most likely get a message saying you have no permission (or something to that effect). Click the button which gives you Permanent Permission.

Now close File Explorer, and paste the path (C:\Program Files\Apache Software Foundation\Tomcat 9.0) in the required field in NetBeans and continue installation. That’s all!!

Hope this helps!

Upvotes: 2

Francuz
Francuz

Reputation: 461

If TomCat is install. Perhaps it is not installed Java EE. Services-> plug-ins-> additional plug-ins-> in the search dial tomcat. and install the module java ee. then in the services, servers, add the tomcat server.

Upvotes: 1

svarog
svarog

Reputation: 9847

In Netbeans 8 you may have to install the Tomcat plugin manually. After you download and extract Tomcat follow these steps:

  1. Tools -> Plugins -> Available plugins, search for 'tomcat' and install the one named "Java EE Base plugin".
  2. Restart Netbeans
  3. On the project view (default left side of the screen), go to services, right click on Servers and then "Add Server"
  4. Select Apache Tomcat, enter username and password and config the rest and finish

Upvotes: 18

MPV
MPV

Reputation: 395

I had same issue. No need to re install.

In Netbeans 6.0 , Find RunTime -> Servers - > Add server -> select Tomcat install 'root' directory

In Netbeans 7.x -> Tools -> Servers-> Add server -> select Tomcat install 'root' directory

Here is in Netbeans Wiki.

http://wiki.netbeans.org/AddExternalTomcat

Upvotes: 11

Anoop Pete
Anoop Pete

Reputation: 493

While installing Netbeans itself, you will get an option which servers needs to be installed and integrated with Netbeans. First screen itself will show.

Another option is to reinstall Netbeans by closing all the open projects.

Upvotes: 3

Related Questions