jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From laurent.duper...@masq.ca
Subject Re: Running cactus in a separate tree from source
Date Tue, 23 Apr 2002 15:20:03 GMT
On 23 Apr, To: Cactus Mailing List wrote:
> Hi,
> 
> We have a setup which generates a lot of war files in
> 
> /tmp/foo/foo.war
> /tmp/bar/bar.war
> .
> .
> .
> 
> I want to create some tests for Cactus which tests the classes in the above
> wars. I was hoping that I could put all my tests in a cactus.war file and
> run the tests correclty. Is this possible? Or do I have to have all my tests
> in the foo.war, bar.war, etc. files? Should I try to use an EAR file for my
> cactus tests?
> 

Ok, let me change this question. After rereading the config page, I decided
to take all the .class files and put them in my cactus.war file. However,
when I run my tests, I get this error:


    [junit] Testcase: testDoGet took 0.036 sec
    [junit] 	Caused an ERROR
    [junit] Not a valid response
    [junit] org.apache.cactus.util.ChainedRuntimeException: Not a valid response
    [junit] 	at org.apache.cactus.client.WebTestResultParser.readRootElement(WebTestResultParser.java;org/apache/cactus/util/log/LogAspect.java(1k):134)
    [junit] 	at org.apache.cactus.client.WebTestResultParser.dispatch29_parse(WebTestResultParser.java;org/apache/cactus/util/log/LogAspect.java(1k):101)
    [junit] 	at org.apache.cactus.client.WebTestResultParser.around29_parse(WebTestResultParser.java;org/apache/cactus/util/log/LogAspect.java(1k):1221)
    [junit] 	at org.apache.cactus.client.WebTestResultParser.parse(WebTestResultParser.java;org/apache/cactus/util/log/LogAspect.java(1k):96)
    [junit] 	at org.apache.cactus.client.AbstractHttpClient.callGetResult(AbstractHttpClient.java;org/apache/cactus/util/log/LogAspect.java(1k):231)
    [junit] 	at org.apache.cactus.client.AbstractHttpClient.dispatch1_doTest(AbstractHttpClient.java;org/apache/cactus/util/log/LogAspect.java(1k):123)
    [junit] 	at org.apache.cactus.client.AbstractHttpClient.around1_doTest(AbstractHttpClient.java;org/apache/cactus/util/log/LogAspect.java(1k):1221)
    [junit] 	at org.apache.cactus.client.AbstractHttpClient.doTest(AbstractHttpClient.java;org/apache/cactus/util/log/LogAspect.java(1k):115)
    [junit] 	at org.apache.cactus.AbstractTestCase.runGenericTest(AbstractTestCase.java:457)
    [junit] 	at org.apache.cactus.ServletTestCase.runTest(ServletTestCase.java:133)
    [junit] 	at org.apache.cactus.AbstractTestCase.runBare(AbstractTestCase.java:400)
    [junit] 	at junit.framework.TestResult$1.protect(TestResult.java:106)
    [junit] 	at junit.framework.TestResult.runProtected(TestResult.java:124)
    [junit] 	at junit.framework.TestResult.run(TestResult.java:109)
    [junit] 	at junit.framework.TestCase.run(TestCase.java:131)
    [junit] 	at junit.framework.TestSuite.runTest(TestSuite.java:173)
    [junit] 	at junit.framework.TestSuite.run(TestSuite.java:168)
    [junit] 	at junit.framework.TestSuite.runTest(TestSuite.java:173)
    [junit] 	at junit.framework.TestSuite.run(TestSuite.java:168)
    [junit] 	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:231)
    [junit] 	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:409)

What causes this in my setup?

L

-- 
Laurent Duperval <mailto:laurent.duperval@masq.ca>

LARKINSON'S LAW
    All laws are basically false.



--
To unsubscribe, e-mail:   <mailto:cactus-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:cactus-user-help@jakarta.apache.org>


Mime
View raw message