c0nnexx10n : C0nnect1ng L1fe w1th Techn010gy

Byte by Byte Impressions on Technology, People and Process !

QuickTip: Accessing External HTTP Resources by Tomcat and Eclipse Behind a Proxy

Posted by vikashazrati on Thursday, October 9, 2008

If you are working in an enterprise environment chances are that you would be accessing this page behind a proxy. Your browser would have a proxy setting like hostname : abc.blah.blher.com and port would be something like 8080.

However if you are sitting behind the proxy and you need you tomcat server to access resources over the internet then these are the VM arguments that the launch configuration should have along with the standard list. Of course, you could also increase the heap size that you want to allocate to tomcat

-Dhttp.proxyHost=battleground.us.abc.com
-Dhttp.proxyPort=8080

and to increase the heap just mention -Xmx1024m

Now for using the proxy settings on Eclipse

Note that this is required to download any plug ins etc i.e. whenever Eclipse wants to access the internet or the HTTP resource outside your enterprise network

Goto Window -> Preferences ->General->Network connections and add the proxy settings there

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>