Hi Nate,
I would suggest you first try to run the Cactus sample as they are packaged
(see doc for running them at
http://jakarta.apache.org/cactus/howto_sample.html). From the package name
below, you have set up your own build mechanism and the problem might come
from that. Lets work from the exact Samples first and then we'll start
making modifications to accomodate the environment you'd like to have.
-Vincent
----- Original Message -----
From: "Nate Sarr" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 21, 2001 6:25 PM
Subject: Input Stream does not conatin a serialized object
> Hello,
>
> I've just started trying to install cactus and I'm having trouble
getting
> it to work with the sample test. I am currently using tomcat 3.2, JUnit
3.7
> and cactus 1.1. I know it recognizes the property file and also begins
the
> test but on the very first test it crashes with the error InputStream does
> not contain a serialized object. If you could offer any information on
this
> error and what may be causing it, I would greatly appreciate it. I have
> also included the stack trace just in case it can provide more information
> on the given problem.
>
> Thank you very much.
> Nathan Sarr
>
> tests:
> [junit] Running net.m2methods.accident.TestSimpleServlet
> [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.812 sec
> [junit] Testsuite: net.m2methods.accident.TestSimpleServlet
> [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.812 sec
> [junit]
> [junit] Testcase: testRegisterUser took 0.691 sec
> [junit] Caused an ERROR
> [junit] InputStream does not contain a serialized object
> [junit] java.io.StreamCorruptedException: InputStream does not contain
a
> ser
> ialized object
> [junit] at
> java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.
> java:849)
> [junit] at
> java.io.ObjectInputStream.<init>(ObjectInputStream.java:168)
> [junit] at
> org.apache.commons.cactus.client.ServletHttpClient.doTest(Ser
> vletHttpClient.java:123)
> [junit] at
> org.apache.commons.cactus.ServletTestCase.runGenericTest(Serv
> letTestCase.java:158)
> [junit] at
> org.apache.commons.cactus.ServletTestCase.runTest(ServletTest
> Case.java:128)
> [junit] at
> org.apache.commons.cactus.AbstractTestCase.runBare(AbstractTe
> stCase.java:281)
> [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
> 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)
> [junit]
>
> stop_tomcat_32:
> [java] Stop tomcat
> [runservertests] Server stopped !
>
> BUILD FAILED
>
>