Add tomcat server to netbeans

I use netbeans , and when I create a new web application project, I click "Add" to add the server reason to the tutorial that they use tomcat and not glassfish .

Then I select Tomcat 6.0 from the list, and the next page appears where I should enter

 Server Location Username Password 

I do not get this part.

What place do they mean? And what is the username and password?

+6
java tomcat netbeans
source share
2 answers

With Server Location they probably mean the root directory of the Tomcat installation, sometimes also known as CATALINA_HOME .

There is a file in the Tomcat conf directory named tomcat-users.xml . The Tomcat documentation tells you to add a user ID and password to this file so you can administer Tomcat. Thus, then they will need to be entered into NetBeans.

+5
source share

Carl's answer is correct, but there is a page with instructions on how to register an existing Tomcat installation with NetBeans , which is a bit more complete.

In addition, the IDE will add the username and password values ​​to tomcat-users.xml for you if the checkbox labeled "Create a user if he does not exist" is selected (and you have write access to tomcat-users.xml).

+2
source share

All Articles