title: NetBeans 7.0.1: Access to Tomcat server has not been authorized
body: <p>i am a beginner, just started with JSP and am stuck at the starting. please help me out.
  i have downloaded <code>catalina.bat</code> and <code>setclasspath.bat</code> in there proper location <code>/tomcat/bin/</code>
  but still getting the error of authorization. i have seen a similar post and edited my <code>tomcat-users.xml</code> with this line <code>&lt;user username="root" password="1234" roles="manager-script"/&gt;</code></p>
  
  <p>but still NOT able to run it successfully.</p>
  
  <pre><code>See the server log for details.
      at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:232)
      at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:106)
      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
      at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:601)
      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
      at org.apache.tools.ant.Task.perform(Task.java:348)
      at org.apache.tools.ant.Target.execute(Target.java:390)
      at org.apache.tools.ant.Target.performTasks(Target.java:411)
      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
      at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
      at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
      at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
      at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:284)
      at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:539)
      at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)
  Caused by: java.lang.IllegalStateException: Access to Tomcat server has not been authorized. Set the correct username and password with the "manager-script" role in the Tomcat customizer in the Server Manager.
      at org.netbeans.modules.tomcat5.TomcatManagerImpl.list(TomcatManagerImpl.java:398)
      at org.netbeans.modules.tomcat5.TomcatManager.modules(TomcatManager.java:639)
      at org.netbeans.modules.tomcat5.TomcatManager.getAvailableModules(TomcatManager.java:450)
      at org.netbeans.modules.j2ee.deployment.impl.TargetServer.getAvailableTMIDsMap(TargetServer.java:417)
      at org.netbeans.modules.j2ee.deployment.impl.TargetServer.checkUndeployForSharedReferences(TargetServer.java:372)
      at org.netbeans.modules.j2ee.deployment.impl.TargetServer.checkUndeployForSharedReferences(TargetServer.java:321)
      at org.netbeans.modules.j2ee.deployment.impl.TargetServer.checkUndeployForSharedReferences(TargetServer.java:318)
      at org.netbeans.modules.j2ee.deployment.impl.TargetServer.processLastTargetModules(TargetServer.java:439)
      at org.netbeans.modules.j2ee.deployment.impl.TargetServer.init(TargetServer.java:174)
      at org.netbeans.modules.j2ee.deployment.impl.TargetServer.deploy(TargetServer.java:579)
      at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:197)
      ... 16 more
  Caused by: org.netbeans.modules.tomcat5.AuthorizationException
      at org.netbeans.modules.tomcat5.TomcatManagerImpl.list(TomcatManagerImpl.java:399)
      ... 26 more
  BUILD FAILED (total time: 11 seconds)
  </code></pre>
  
  <p>any help on this would be saviour for me, i am pretty much naive on this.
  thanx in advance :)</p>