by XDK
26. September 2019 23:54
Exception:
The username you provided is not allowed to use the text-based Tomcat Manager (error 403)
Solution:
Configure tomcat to allow deployment from other source
$ sudo nano ./apache-tomcat-8.5.46/webapps/manager/META-INF/context.xml
<!-- <Valve className="org.apache.catalina.valves.RemoteAddrValve"
allow="127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1" /> -->
$ ./apache-tomcat-8.5.46/bin/shutdown.sh
$ ./apache-tomcat-8.5.46/bin/startup.sh
5e88d42d-8570-4ce8-a977-941b923b1db8|1|5.0|96d5b379-7e1d-4dac-a6ba-1e50db561b04
Tags: exceptions
JAVA | Tomcat