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

后端 未结 15 2059
情话喂你
情话喂你 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 13:07

    For those using tomcat 7.0.72 still having the same issue. do the following

    1. after setting users with manager-script in the tomcat-users.xml
    
    
      
      
    
    
    1. goto C:\Users\[yourname]\AppData\Roaming\NetBeans\8.1 and edit "tomcat70.properties" by adding the following if not included
    tomcat.home=C:\\Program Files\\Apache Software Foundation\\Tomcat 7.0
    tomcat.url=http://localhost:8080
    tomcat.username=manager
    tomcat.password=tomcat
    

    Note: change the username and password as above to the username and password you set in the tomcat-users.xml in c:\Program Files\apache...\

    1. Remove the server in Netbeans

    2. Add the tomcat server in Netbeans again and set the username and password as those in tomcat-users.xml

    3. exit both tomcat server and Netbeans

    4. restart your PC and start tomcat server

    5. Run Netbeans as administrator.

    These should work.

提交回复
热议问题