简体   繁体   中英

Add tomcat server in netbeans

I am using netbeans and when I create a new web application project I click the "Add" to add a server cause in a tutorial they are using tomcat and not glassfish .

I then choose Tomcat 6.0 from the list and the next page is displayed where I have to input

Server Location
Username
Password

I don't get this part.

What location do they mean? And what username and password?

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

There's a file in Tomcat's conf directory called tomcat-users.xml . The Tomcat documentation tells you to add a user ID and password to this file so you can administer Tomcat. So those would need to be entered in NetBeans then.

Carl's answer is right, but there is a wiki page with instruction on how to register an existing Tomcat installation with NetBeans that is a bit more complete.

Also, the IDE will add the values of user name and password to the tomcat-users.xml for you if the checkbox with the label 'Create user if it does not exist' is selected (and you have write access to the tomcat-users.xml file).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM