Set the correct username and password with the “manager-script” role in the Tomcat

后端 未结 15 1881
情话喂你
情话喂你 2021-01-17 12:26

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:

相关标签:
15条回答
  • 2021-01-17 12:47

    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"/>
    

    0 讨论(0)
  • 2021-01-17 12:52

    enter image description here

    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

    enter image description here

    This menu will appear:

    enter image description here 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.

    0 讨论(0)
  • 2021-01-17 12:57

    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.

    0 讨论(0)
  • 2021-01-17 12:57

    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.

    0 讨论(0)
  • 2021-01-17 12:59

    Go to C:\Users\ur folder\AppData\Roaming\NetBeans\8.0.2\apache-tomcat-8.0.15.0_base\conf\tomcat-users.xmland 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

    0 讨论(0)
  • 2021-01-17 13:01

    Short answer - don't know. Your tomcat-users.xml looks right. Things to check:

    1. Is the Manager app deployed?
    2. Has the web.xml used by the Manager (where manager-script is used) been changed?
    3. Use JMX to confirm that the users and roles are read correctly.
    4. Has the Realm been changed in server.xml?
    0 讨论(0)
提交回复
热议问题