NetBeans web app deployment problem (to Apache Tomcat) solved!

If you get the following error in NetBeans when you try to deploy your web app to Apache Tomcat:
Access to Tomcat server has not been authorized. Set the correct username and password with the "manager" role in the Tomcat customizer in the Server Manager.
Try configuring the "tomcat-users.xml" file so the "manager" role is present – file should be in "%CATALINA_HOME%conf" (don’t forget to change the username and password!):

  <role rolename="manager"/>
  <role rolename="standard"/>
  <user username="mgr_usr" password="you_password_here" roles="standard,manager"/>

Then configure NetBeans to use the same credentials (Tools > Servers):
NetBeans Servers configuration dialogue
Then restart NetBeans and Tomcat – you should be good to go now!
It looks like the problem occurs if you install Tomcat separately from NetBeans.
Below is the article where I got the above from:
—- Update —-
2007-10-20 @ 07:35:
Article’s up on NetBeans Wiki:

One Response to “NetBeans web app deployment problem (to Apache Tomcat) solved!”

  1. Unknown Says:

    Hi,My name is James Branam and I’m the NetBeans Community Docs Manager. Your blog entry would make a fantastic tutorial for our Community Docs wiki (  Would you be willing to contribute it? If you need any help or have any questions, please contact me at I look forward to hearing from you.–James Branam

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: