Search code examples
apachetomcat

Apache Tomcat 9 unable to access manager webapp


I successfully install Apache Tomcat 9 and I access at servername:8080.

I follow documentation in order to access the manager web app and :

  • open $CATALINA_HOME/conf/tomcat-user.xml
  • add <role rolename="manager-gui"/>
  • add <user username="tomcat" password="s3cret" roles="manager-gui"/>
  • $CATALINA_HOME/bin/catalina.sh stop
  • check servername:8080 is down
  • $CATALINA_HOME/bin/catalina.sh start
  • check servername:8080 is up
  • servername:8080/manager/html return HTTP Status 403 – Forbidden

I can't find what config I am missing and will be greateful for any kind of help or suggestion.


Solution

  • I wanto to share the solution I found here not in the marked answer but in the fade's answer.

    Commenting the Valve attribute in CATALINA_HOME/webapps/manager/META-INF/context.xml and restarting Tomcat solve the problem and I can now assess the web manager