Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "authenticating to proxy server" Watch "authenticating to proxy server" New topic
Author

authenticating to proxy server

J. Kevin Robbins
Bartender

Joined: Dec 16, 2010
Posts: 853
    
  13

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
 
jQuery in Action, 2nd edition
 
subject: authenticating to proxy server
 
Similar Threads
where to start with parsing XML
creating a task to run every hour
illegal access
NT Authorization through a servlet
Manipulating static web pages to get dynamic results!