apachetomcatnetbeansnetbeans-9

Not able to setup apache tomcat in Netbeans 9


I am trying to setup apache tomcat in Netbeans IDE 9. I have tried following steps, but could not setup.

  1. In the Tools->Servers, I clicked on the Add server button. Following message displayed.

No Server Plugins are installed in the IDE

  1. So, I tried to install plugins from the Tools->Plugins, a dialog box is displayed but when I try to update plugins list it is not able to connect. In effect NB IDE tries to connect to non-existant page.

  2. So, I am effectively not able to succeed in installing Apache Tomcat server. I am also using NB 8.2 and everything works fine. Any Help will be appreciated.

  3. I am using Windows 10 Prof with JDK 10.

Thanks in anticipation.


Solution

  • You are hitting this problem because of a larger and more general issue: NetBeans 9 does not officially support Java EE or web application development. For example, as well as not being able to add a Tomcat server, you will notice that you can't create a web project through the Project Wizard either.

    There is a reason for this: NetBeans has been migrated from Oracle to Apache and the initial focus has been on providing a stable Java SE environment, including support for JDK releases 9 and 10 in NetBeans 9.

    However, it is possible to add the plugins needed for web and Java EE development to NetBeans 9 at your own risk:

    Step 1 of 2: Make the Java Web and EE plugins available.

    Step 2 of 2: Install the Java Web and EE plugins.