title: How do I set up Glassfish to go via a proxy server?
body: <p>I have been having issues with running a Glassfish v2.1.1 instance on my local machine from within the office, where we have a proxy server for outgoing connections. My initial workaround has been to work from home. </p>
  
  <p>I am calling a SOAP service on a HTTPS server outside of the company. As Glassfish is not going via the company's proxy server, I get the following error when trying to initialise my SOAP clients:</p>
  
  <pre><code>javax.xml.ws.WebServiceException: Failed to access the WSDL at: https://www.hostname.com...
  </code></pre>
  
  <p>and</p>
  
  <pre><code>Caused by: java.net.UnknownHostException: www.hostname.com
  </code></pre>
  
  <p>I have proxy environment variables set on my command line, as well as my system proxy settings all working correctly so that I can get to the WSDL with the browser. How should I configure Glassfish?</p>