I downloaded the Java source from the following link GitHub - Esri/resource-proxy: Proxy files for DotNet, Java and PHP.
and I have hosted that in Apache Tomcat 9.
when i tried to use my direction widget in my web application, this proxy is throwing 500 Internal Server Error for the POST request.but the same is working when it comes through GET request.
NOTE: " I'm getting the error when my application is trying to reach Internal Network Service for getting the Routes "
Please help me to solve this.