Hello, I have recently set up Tomcat 8.5.4 on Ubuntu 14.04. I have the default page showing on port 8080, but when I click on the Manager App button I immediately get "403 Access Denied" and am not prompted to enter a username or password. I have set up roles and a user in conf/tomcat-users.xml in my Tomcat install directory (which I have named /opt/tomcat8-dev). Here's what that file looks like:
<tomcat-users xmlns="http://tomcat.apache.org/xml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://tomcat.apache.org/xml tomcat-users.xsd" version="1.0"> <role rolename="admin"/> <role rolename="admin-gui"/> <role rolename="manager"/> <role rolename="manager-gui"/> <user username="admin" password="[redacted]" roles="admin,admin-gui,manager,manager-gui"/> </tomcat-users> The server I'm running it on is a remote VM without a window manager, however I installed elinks (a command-line web browser) and tested the Manager App and it worked fine there; I was asked for credentials, and was able to view the app using the username/password I specified. However, this is obviously not an ideal solution. I have tried modifying context.xml as specified in the documentation. I have enabled privileged mode and added a valve allowing any IP to connect (specified using a regex). Here's what my context.xml file looks like currently: <?xml version="1.0" encoding="UTF-8"?> <Context privileged="true" antiResourceLocking="false" docBase="${catalina.home}/webapps/manager"> <Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="^.*$" /> <WatchedResource>WEB-INF/web.xml</WatchedResource> <WatchedResource>${catalina.base}/conf/web.xml</WatchedResource> <Manager pathname="" /> </Context> Any suggestions for how I can fix this issue? Thanks, Nick Klose