Access to Tomcat server has not been authorized

后端 未结 8 2006
遇见更好的自我
遇见更好的自我 2021-01-04 03:01

I have used glassfish server in netbeans, now I changed to tomcat and when I run my web application that I have created in glassfish gives me the error :

D         


        
8条回答
  •  长发绾君心
    2021-01-04 03:49

    I really should make this a comment if have enough reputation:

    PLEASE the first comment by @Satya advicing to remove should be ignored (at least on windows - which am sure of). check this if don't believe me

    After many hours on SO I resolved the issue by:

    1. Making sure IDE and text editors (notepad++) are launched with Admin rights
    2. Edit the %TOMCAT INSTALL DIR%\conf\tomcat-users.xml as directed in earlier answers especially this one on a duplicated question and this too
    3. Check that xml file again, I mean properly for syntax errors. Use a good editor for xml, notepad++ help me figured out my error. Thanks to this SO answer

    4. Save the file and start Tomcat

提交回复
热议问题