0
我tomcat-users.xml
文件看起來像:部署錯誤,訪問到tomcat無權錯誤
<?xml version='1.0' encoding='cp1252'?>
<tomcat-users>
<role rolename="manager-gui"/>
<user username="tomcat" password="tomcat" roles="manager-gui"/>
</tomcat-users>
當我嘗試生成項目,我得到錯誤:
Deployment error: 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.
See the server log for details.
BUILD FAILED (total time: 1 second)
在NetBeans的服務器窗口我提供了相同的用戶名和密碼。我已經安裝了Tomcat 7.0。我不知道這個問題是什麼。任何幫助?