I am running tomcat 9.0.52 on ubuntu 20.04 LTS I am able to compile my application but when I issue the "ant install" command it fails with the following error message
[barry] /home/barry/tomcat/hockey3 1106 ant install Buildfile: /home/barry/tomcat/hockey3/build.xml Trying to override old definition of datatype resources prepare: compile: install: BUILD FAILED /home/barry/tomcat/hockey3/build.xml:370: java.io.IOException: Server returned HTTP response code: 403 for URL: http://localhost:8080/manager/text/deploy?path=%2Fhockey3&war=file%3A%2F%2F%2Fhome%2Fbarry%2Ftomcat%2Fhockey3%2Fbuild at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1924) at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1520) at org.apache.catalina.ant.AbstractCatalinaTask.execute(AbstractCatalinaTask.java:224) at org.apache.catalina.ant.DeployTask.execute(DeployTask.java:180) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99) at org.apache.tools.ant.Task.perform(Task.java:350) at org.apache.tools.ant.Target.execute(Target.java:449) at org.apache.tools.ant.Target.performTasks(Target.java:470) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1391) at org.apache.tools.ant.Project.executeTarget(Project.java:1364) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1254) at org.apache.tools.ant.Main.runBuild(Main.java:830) at org.apache.tools.ant.Main.startAnt(Main.java:223) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:284) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:101) Total time: 0 seconds My tomcat-users.xml file has the following content (after the comments are removed) 1 <?xml version="1.0" encoding="UTF-8"?> 2 3 <tomcat-users xmlns="http://tomcat.apache.org/xml" 4 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 5 xsi:schemaLocation="http://tomcat.apache.org/xml tomcat-users.xsd" 6 version="1.0"> 7 8 <role rolename="tomcat"/> 9 <role rolename="role1"/> 10 <user username="tomcat" password="my-pass" roles="tomcat"/> 11 <user username="both" password="my-pass" roles="tomcat,role1"/> 12 <user username="role1" password="my-pass" roles="role1"/> 13 <user username="admin" password="my-pass" roles="manager-gui,admin-gui"/> 14 <user username="admin2" password="my-pass" roles="manager,admin"/> 15 16 </tomcat-users> my build.properties file has the following data # Context path to install this application on app.path=/hockey3 # Tomcat 9 installation directory catalina.home=/opt/tomcat # Manager webapp username and password manager.username=admin_user manager.password=admin_password I have been busy google searching but nothing usefull has turned up so far. How can I fix this 403 error problem ? Thanks. -- ================== Barry Kimelman Winnipeg, Manitoba, Canada