You rock! Nope, I hadn't thought of using System.setProperty. That did the trick. Sometimes the hardest questions have the easiest answers...
Thanks! David -----Original Message----- From: Pascal Forget [mailto:[EMAIL PROTECTED]] Sent: Friday, January 24, 2003 1:54 PM To: Tomcat Users List Subject: Re: Tomcat behind a proxy server Have you tried setting these system properties by using System.setProperty(...) from within your servlet (for instance in a static initializer). Each servlet runs in the web app's sandbox, and maybe the properties were not propagated from the main VM to the web app's "space"? Pascal JOHAM,DAVID (HP-Boise,ex1) wrote: >Hello all, > >I know I'm missing something stupid here, but I can't seem to figure this >out. I'm hoping someone can help me out. > >The servlet that I'm running inside of Tomcat needs to be able to see the >real internet. At the moment, Tomcat is running behind a proxy that I have >to connect through to see the world. > >My basic question is this: how do I tell Tomcat what it's proxy settings are >for the servlets that run inside of it? > >I've tried adding -Dhttp.proxyHost and -Dhttp.proxyPort to the catalina.sh >file with no success >I've also googled and searched through the mail archives but I haven't found >anything helpful. Most of the proxy stuff I've found is for the Apache to >Tomcat proxy. > >My code works great for everything inside of our network. But as soon as I >try to go outside, I get a connection refused. The same code works great in >a little class that just runs straight from the VM. > >Thanks in advance for any help! > >Best regards, > >David > >-- >To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > > > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
