Tomcat – Set up HTTP Proxy for Tomcat Web server

http-proxytomcat

Basically, I'm trying to make SOAP calls from a Tomcat server via a corporate proxy/ firewall (which I have no direct control over), I've tried to add info to the catalina.properties file as shown:

http.proxyPort=80
http.proxyHost=www-proxy.company.com

I'm still getting timeouts in the stdout logs.
Do I need to do anything else and if not is there another way to test the SOAP calls?

Best Answer

Create a setenv.sh (or setenv.bat if running windows), if you don't already have one, and add the following java options:

JAVA_OPTS="-Dhttp.proxySet=true -Dhttp.proxyHost=<proxy_hostname> -Dhttp.proxyPort=<port_number> -Dhttp.nonProxyHosts=<domain_one>|<domain two> $JAVA_OPTS"

This should work nicely.