File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes authenticating to proxy server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "authenticating to proxy server" Watch "authenticating to proxy server" New topic

authenticating to proxy server

J. Kevin Robbins

Joined: Dec 16, 2010
Posts: 1522

I've created an app that uses a web service. It works fine from my local install of Tomcat on my desktop (Windoze). But when I move it to the Linux box, I get "unknown host exception" on the proxy server. I'm using Apache HttpClient for authentication like so:

..with the creds coming from a properties file. I've tried using the IP address and the fully qualified server name, all to no avail. I can ping and nslookup the proxy server from the Linux box, so I'm puzzled as to why I'm getting this error. Is this some configuration in Tomcat that needs to be setup?

fyi, my Linux/Tomcat server and the proxy server are NOT the same box. The proxy server is at our headquarters several hundred miles away.

"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." -- Ted Nelson
I agree. Here's the link:
subject: authenticating to proxy server
It's not a secret anymore!