java.net.UnknownHostException! >From the machine you are using to work through the tutorial, are you even able to do this?
ping www.apache.org It seems like you are not on the internet. Substitute "www.apache.org" with a web server on your own network. If the web server is not listening on port 80 (or port 443 for "https"), be sure to include the port in the URL. yours, Julius On Thu, 2006-21-09 at 16:39 +0200, Ing. Jiří Nejedlý wrote: > Hi, > I cannot make HTTPClientTutorial work. I use Oracle's JDeveloper 10.1.2. I > added these libraries into my project - commons-codec-1.3.jar, > commons-httpclient-3.0.1.jar, commons-logging-1.1.jar, but it still gives me > this error: > > Fatal transport error: www.apache.org > > java.net.UnknownHostException: www.apache.org > > at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:153) > > at java.net.Socket.connect(Socket.java:452) > > at java.net.Socket.connect(Socket.java:402) > > at java.net.Socket.<init>(Socket.java:309) > > at java.net.Socket.<init>(Socket.java:184) > > at > org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:79) > > at > org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:121) > > at > org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706) > > at > org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:386) > > at > org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170) > > at > org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396) > > at > org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324) > > at HttpClientTutorial.main(HttpClientTutorial.java:24) > > > I am behind proxy but JDeveloper at runtime generates automatically these > parameters for me. > -Dhttp.proxyHost=... -Dhttp.proxyPort=... > > So what else could be wrong ? Thanks. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- Julius Davies Senior Application Developer, Technology Services Credit Union Central of British Columbia http://www.cucbc.com/ Tel: 416-652-0183 Cel: 647-232-7571 1441 Creekside Drive Vancouver, BC Canada V6J 4S7 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
