I know this has been asked many before. But I have already placed my user to role \"manager-script\".
I keep getting this when trying to deploy:
Open xampp control panel. Select Config=>tomcat_users.xml Un-comment this at the end of the file:
<role rolename="tomcat"/>
<role rolename="role1"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>
<user password="space" roles="manager-script,admin" username="root"/>
First, you have to go the services and right click on the server properties after that new screen will appear where you have to insert your user name and password
This menu will appear:
In the above image you can see the user name and password. After that go to
C:\Users\your_folder\AppData\Roaming\NetBeans\8.0.2\apache-tomcat-8.0.15.0_base\conf\tomcat-users.xml
where you can see the following details and that must be the same credential as you have input in the Tomcat properties section:
<user password="admin" roles="manager-script,admin" username="admin"/>
The above tag shows the user's credentials.
same problem.. fixéd it by adding:
<tomcat-users>
<role rolename="manager-script"/>
<user username="user" password="user" roles="manager-script"/>
</tomcat-users>
to C:\Program files\apache-tomcat-7.0.47\conf\tomcat-users.xml
and remember to run netbeans as administrator.
Very Simple friends.! No need to change that XML file. only go into tools>server>remove server. then add the server again it will ask you to create a username and password. Check the box "create new user if not exist." I tried a minute ago.
Go to
C:\Users\ur folder\AppData\Roaming\NetBeans\8.0.2\apache-tomcat-8.0.15.0_base\conf\tomcat-users.xml
and delete the line
<user password="admin" roles="manager-script,admin" username="admin"/> `
within the tomcat users tab.
remove the apache tomcat server from netbeans
and add it again setting catalina
home to
C:\Program Files\Apache Software Foundation\Apache Tomcat 8.0.15\conf\Catalina\localhost\conf\Catalina\localhost
and
create a new user. Then it will be fixed
Short answer - don't know. Your tomcat-users.xml looks right. Things to check: