Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.net.UnknownHostException

 
Ken Pullin
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18152
52
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd check to make sure that the failing server has domain name server connections and that there's no firewall blocking them.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic