This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Servlets and the fly likes java.net.UnknownHostException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "java.net.UnknownHostException" Watch "java.net.UnknownHostException" New topic
Author

java.net.UnknownHostException

Ken Pullin
Ranch Hand

Joined: Jan 29, 2001
Posts: 43
Hi - I have a servlet that tries to make a HttpURLConnection to a website outside of my domain. Basically we send some info to another website so that the website can put a Cookie on the user's machine and then redirect back to our website(we use this to brand our site when user's come through a portal). anyway, this works in our QA and stage environment but not in production. Our environment consists of Weblogic 5.1 and Netscape on Unix (Sun Solaris) machines. We added the url to the host file in the production environment, but everytime we try to connect(which we do first to make sure the other website is "up"), our code throws a UnknownHostException - any clues?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16901
    
  26

I'd check to make sure that the failing server has domain name server connections and that there's no firewall blocking them.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
jQuery in Action, 3rd edition
 
subject: java.net.UnknownHostException
 
It's not a secret anymore!