Add tomcat server to Netbeans

To add a tomcat server to netbeans I recommend installing directly Tomcat that comes with the full version of NetBeans or download the zip version from the website. In this tutorial we will assume that Tomcat is already well configured and we will only focus on how to add the server in Netbeans.

1. The first thing we will do is go to Tools> Servers

herramientas_servidores

2.  Once inside, click on «Add server …», then select the server, in this case «Apache Tomcat» and click on «Next».

agregar_servidor_tomcat

3. It is normal that it takes a while to move to the next window as it will start activating the services needed to work with Tomcat. Once you pass to the next window we must add the following fields:

  • Server Location:  Corresponds to the path of our Apache Tomcat server
agregar_server_location
  • Username y Password: they correspond to the user defined for Tomcat in the file «tomcat-users.xml» located in the conf directory of tomcat, in this case:

C:\Archivos de programa\Apache Software Foundation\Tomcat 7.0\conf\tomcat-users.xml

conf_axis_apache_deployment

4. Finally we only have to click on «Finish» and check that the service has been configured correctly. For this we perform the following steps:

  • Click on Window> Benefits
ventana_prestaciones
  • Go to the window that will appear and search Servers> Apache Tomcat
ventana_prestaciones2
  • Once we find it, we press right click on the Apache Tomcat server and we can see the properties, to verify that everything works we will click on Start.
propiedades_tomcat_netbeans
  • If our server is properly configured we should see something like the following:
start_apache

   This indicates that our server is ready to be used and we can start working directly on it with NetBeans.

regards

También te podría gustar...