import-bot (20211) [Avatar] Offline
#1
[Originally posted 11/7/03 by Anonymous]

When I try to run Cactus tests (page 177) in the book. I am getting following errors. Can you please help me.

Thanks
Mak

ERROR TRACE
org.apache.cactus.util.ChainedRuntimeException: Failed to get the test results at [http://localhost:8081/test/ServletRedirector]
at org.apache.cactus.client.connector.http.DefaultHttpClient.doTest_aroun dBody0(DefaultHttpClient.java:131)
at org.apache.cactus.client.connector.http.DefaultHttpClient.doTest_aroundBody1$advice(DefaultHttpClient.java:240)
at org.apache.cactus.client.connector.http.DefaultHttpClient.doTest(Defau ltHttpClient.java)
at org.apache.cactus.internal.client.WebClientTestCaseDelegate.runWebTest (WebClientTestCaseDelegate.java:333)
at org.apache.cactus.internal.client.WebClientTestCaseDelegate.runGeneric Test(WebClientTestCaseDelegate.java:281)
at org.apache.cactus.internal.client.WebClientTestCaseDelegate.runTest(We bClientTestCaseDelegate.java:257)
at org.apache.cactus.ServletTestCase.runCactusTest(ServletTestCase.java:3 00)
at org.apache.cactus.ServletTestCase.runBare(ServletTestCase.java:263)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:11smilie
at junit.framework.TestSuite.runTest(TestSuite.java:20smilie
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:395)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:279)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:171)
org.apache.cactus.client.ParsingException: Not a valid response [401 Unauthorized]
at org.apache.cactus.client.connector.http.DefaultHttpClient.callGetResult(DefaultHttpClient.java:249)
at org.apache.cactus.client.connector.http.DefaultHttpClient.doTest_aroundBody0(DefaultHttpClient.java:126)
at org.apache.cactus.client.connector.http.DefaultHttpClient.doTest_aroundBody1$advice(DefaultHttpClient.java:240)
at org.apache.cactus.client.connector.http.DefaultHttpClient.doTest(DefaultHttpClient.java)
at org.apache.cactus.internal.client.WebClientTestCaseDelegate.runWebTest(WebClientTestCaseDelegate.java:333)
at org.apache.cactus.internal.client.WebClientTestCaseDelegate.runGenericTest(WebClientTestCaseDelegate.java:281)
at org.apache.cactus.internal.client.WebClientTestCaseDelegate.runTest(WebClientTestCaseDelegate.java:257)
at org.apache.cactus.ServletTestCase.runCactusTest(ServletTestCase.java:300)
at org.apache.cactus.ServletTestCase.runBare(ServletTestCase.java:263)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:11smilie
at junit.framework.TestSuite.runTest(TestSuite.java:20smilie
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:395)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:279)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:171)