2017-07-03 23 views
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のサーバウィンドウでI同じユーザー名とパスワードを提供しています。 Tomcat 7.0をインストールしました。私はこの問題が何であるか分からない。どんな助け?

答えて

0

次のことを試してみてください。

<?xml version='1.0' encoding='cp1252'?> 
<tomcat-users> 
<role rolename="manager-gui"/> 
<role rolename="manager-script"/> 
<user username="tomcat" password="tomcat" roles="manager-gui,manager-script"/> 
</tomcat-users> 
関連する問題