Hi Jef,
 
To verify the server is set up correctly, after the server is started, open a browser and type the url for the servlet redirector (http://localhost:8080/test/ServletRedirector/) to see if the servlet can be called. It it cannot, it means either the port is wrong, the webapp context is not test or the servlet redirector mapping in web.xml is not /ServletRedirector/.
 
Also, I have noticed in your build-tests-weblogic-6.0.xml that the test URL you used for the runservertests task is http://localhost:7001/test/test. This seems strange to me : if you succeed in starting the tests with Ant, it means the start server target ran successfully and triggered the junit task, which means that the correct port if 7001. So, it would mean that the port 8080 that you specified in your cactus.properties if wrong ...
 
Hope it helps
-Vincent
 
----- Original Message -----
From: Jef Cumps
Sent: Friday, October 26, 2001 2:54 PM
Subject: Cactus sample for weblogic Server 6.0

Hi all,
 
 
I'm trying to run the sample tests on Weblogic Server 6.0, starting from Robert Hollamby's script (which helped me a lot, thanks!)
 
After everything is compiled and jarred, the server is started and the test-Web Application is deployed, I'm starting the swing TestRunner instead of the text version becuase then you get more feedback on errors. In the swing TextRunner I get the following Exception:
 
java.lang.Exception: Cannot connect to URL [http://localhost:8080/test/ServletRedirector/]. Reason : [Connection refused: connect]
Possible reasons :
 - The server is not running,
 - The server redirector is not correctly mapped in web.xml,
 - Something else ... !
 at org.apache.cactus.client.HttpClientHelper.addParametersUsingPost(HttpClientHelper.java:194)
 at org.apache.cactus.client.HttpClientHelper.connect(HttpClientHelper.java:416)
 at org.apache.cactus.client.AbstractHttpClient.doTest(AbstractHttpClient.java:129)
 at org.apache.cactus.AbstractTestCase.runGenericTest(AbstractTestCase.java:422)
 at org.apache.cactus.ServletTestCase.runTest(ServletTestCase.java:130)
 at org.apache.cactus.AbstractTestCase.runBare(AbstractTestCase.java:371)
I cannot get the text-version to run either, the script just hangs when it has started the target 'tests'.
 
Can anyone help me? I don't have a clue what's wrong, maybe I've missed or forgotten something silly, I don't know. I did not change anything in the web.xml, was I supposed to? Any help would be really appreciated. I'll attach my xml-files with the script.
 
Thanks, Jef Cumps
 

Reply via email to