dcsimg
Problems connecting to external sites with HttpUnit and ServletUnit
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Arlie_Norwood
Posted On:   Tuesday, July 1, 2003 09:20 AM

I'm trying to get ServletUnit and HttpUnit working using WSAD, and I'm having problems loading my servlets from my web.xml file. The problem seems to be loading the DTD from the sun site defined in the doctype tag... This is the error I get: java.net.ConnectException: Operation timed out: connect I get the same error trying to use HtmlUnit in WSAD executing the following code: final WebClient webClient = new WebClient(); final URL url = new URL("http://htmlunit.sourceforge.net"); final HtmlPage page = (HtmlPage) webClient.getPage(url); the problem here occurs on with the .getPage(url) Have I forgoten to configure a sett   More>>

I'm trying to get ServletUnit and HttpUnit working using WSAD, and I'm having problems loading my servlets from my web.xml file. The problem seems to be loading the DTD from the sun site defined in the doctype tag...


This is the error I get:

java.net.ConnectException: Operation timed out: connect


I get the same error trying to use HtmlUnit in WSAD executing the following code:


final WebClient webClient = new WebClient();

final URL url = new URL("http://htmlunit.sourceforge.net");

final HtmlPage page = (HtmlPage) webClient.getPage(url);


the problem here occurs on with the .getPage(url)


Have I forgoten to configure a setting someplace??


In my error trace there are references to the following:

org.eclipse.jdt.internal.junit.runner.RemoteTestRunner

Anyone know what this is?


Thanks!

   <<Less
About | Sitemap | Contact