1. Extract the contents of the Tomcat zip file to a folder in your disk. This should create a directory that would look something like this:
C:\apache-tomcat-6.0.10\
Note: In this guide, $TOMCAT refers to the root Tomcat installation directory.
2. Since Tomcat does not come bundled with any default users that could be used for administrative purposes we need to add a user with the proper roles assigned to it.
Go into your $TOMCAT/conf/ folder and open tomcat-users.xml in a text editor. Add a username and password to the list of users in the file with a 'manager' role assigned to that user.
Here is how your tomcat-users.xml should look like:
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="manager"/>
<role rolename="standard"/>
<user username="admin" password="pwd" roles="standard,manager"/>
</tomcat-users>
There are 2 workarounds for this issue:
(Please note that Tomcat versions 6.0.13 and higher do not require this step.)
1. The first step is to start up Netbeans and open up the Runtime tab in the right panel. Right click on the Servers node and in the context menu click on Add server.
2. Select Tomcat 6.0 or Tomcat 5.5 depending on which version you are using and click Next.
3. Browse and select the Tomcat installation directory. This should be the root Tomcat directory, i.e. if you have installed Tomcat at C:\Tomcat5.5\ then this should be what you would browse and select.
If you are using a custom base directory then select ‘Use Private Configuration Folder’, browse to the base directory and select it. Next put in the user name and password that we added in the tomcat-users.xml file at the beginning of this article.
4.Click Finish. You should now be able to see Tomcat as an added server under the Servers Node.
This concludes this article on installing and adding external Tomcat servers. For deploying applications on these servers you might want to take a look at this article on Deploying to an External Tomcat server .
| Run time tab.jpg | ![]() |
28274 bytes |
| server added.jpg | ![]() |
28719 bytes |
| server wizard 1.jpg | ![]() |
45833 bytes |
| server wizard 2.jpg | ![]() |
66599 bytes |