Flowable REST API Setup in Ubuntu18.04

I followed instructions given in guide to setup Flowable REST API on Ubuntu 18.04. After running sudo ./catalina run , I do get Apache Tomcat up and running on port 8080. However, when I try REST APIs of flowable-rest , I get a 404 error.

java --version
java 17.0.1 2021-10-19 LTS
Java(TM) SE Runtime Environment (build 17.0.1+12-LTS-39)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.1+12-LTS-39, mixed mode, sharing)

I tried this on Windows and it worked without a problem. Therefore, I think this happens due to a permissions issue, environment variable issue or Java version/path related issue. However, I’m not that familiar with Java and I’m unable to isolate the exact cause.