On Thu, 6 Feb 2003, James Mitchell wrote:

> Date: Thu, 6 Feb 2003 21:21:55 -0500
> From: James Mitchell <[EMAIL PROTECTED]>
> Reply-To: Struts Developers List <[EMAIL PROTECTED]>
> To: Struts Developers List <[EMAIL PROTECTED]>
> Subject: Re: Cactus Test Failures?
>
> ...
> ...
>     [junit] Testcase: testGetForAProperty took 0 sec
>     [junit] Testcase: testAddMessages took 0.03 sec
>     [junit] Running org.apache.struts.action.TestActionServlet
>     [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 2.264 sec
>     [junit] Testsuite: org.apache.struts.action.TestActionServlet
>     [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 2.264 sec
>
>     [junit] Testcase: testInitDestroyInternal took 2.234 sec
>     [junit]  Caused an ERROR
>     [junit] Connection refused: connect
>     [junit] java.net.ConnectException: Connection refused: connect
>     [junit]  at java.net.PlainSocketImpl.socketConnect(Native Method)
>     [junit]  at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
>     [junit]  at
> java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
>     [junit]  at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
>     [junit]  at java.net.Socket.connect(Socket.java:426)
> ...
> ...
>
>
> You thinking what I'm thinking?
>
>


That is odd all right, but definitely not what I got -- see attached.

In my case, it seems that the connection actually happened, because I get
the Tomcat 404 error page back. ... well, that was last time.  Grumble
grumble ... now it says the "testInitDestroyMethod" does not exist, on
both 4.0 and 4.1.

> --
> James Mitchell

Craig


>
>
>
>
>
> ----- Original Message -----
> From: "James Mitchell" <[EMAIL PROTECTED]>
> To: "Struts Developers List" <[EMAIL PROTECTED]>
> Sent: Thursday, February 06, 2003 9:13 PM
> Subject: Re: Cactus Test Failures?
>
>
> > No, I haven't updated since this morning.  I'll try that.
> >
> >
> > --
> > James Mitchell
> >
> >
> >
> >
> >
> > ----- Original Message -----
> > From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
> > To: "Struts Developers List" <[EMAIL PROTECTED]>
> > Sent: Thursday, February 06, 2003 9:11 PM
> > Subject: Re: Cactus Test Failures?
> >
> >
> > > Wierd ... it doesn't appear to be related to testInitDestroyInternal in
> > > particular -- I tried commenting that out and replacing it with a
> > > trivially simple test, and got the same sort of error.  Yet, the servlet
> > > mapping for /ServletRedirector looks right in the web.xml file.
> > >
> > > James, did you try this with the commit I just did that switched the
> port
> > > numbers?  I want to make sure that *that* didn't mess anything up.
> > >
> > > Craig
> > >
> > > On Thu, 6 Feb 2003, James Mitchell wrote:
> > >
> > > > Date: Thu, 6 Feb 2003 20:59:17 -0500
> > > > From: James Mitchell <[EMAIL PROTECTED]>
> > > > Reply-To: Struts Developers List <[EMAIL PROTECTED]>
> > > > To: Struts Developers List <[EMAIL PROTECTED]>
> > > > Subject: Re: Cactus Test Failures?
> > > >
> > > > I recently added a few tests under o.a.s.t.logic
> > > >
> > > > I've attached a test run I just did about 3 minutes ago.
> > > > I'm using Cactus (1.4) or JUnit (3.8.1)
> > > >
> > > >
> > > >
> > > > --
> > > > James Mitchell
> > > >
> > > >
> > > > ----- Original Message -----
> > > > From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Thursday, February 06, 2003 8:36 PM
> > > > Subject: Cactus Test Failures?
> > > >
> > > >
> > > > > Trying to run the "test.tomcat.40" and "test.tomcat.41" targets, I
> get
> > a
> > > > > JUnit failure on the "testInitDestroyInternal" testcase.  The logged
> > > > > message implies that this is because Tomcat is returning a 404 error
> > for
> > > > > "/test/ServletRedirector".
> > > > >
> > > > > Did something change in this test recently?  Or maybe I need a
> > different
> > > > > version of Cactus (1.4) or JUnit (3.8.1)?
> > > > >
> > > > > Craig
> > > > >
> > > > >
> > > >
> > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > > >
> > > > >
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
Buildfile: build.xml

skip.tomcat.41:

init:
     [echo] --------- jakarta-struts 1.1-b4-dev ---------

     [echo] java.class.path = 
/usr/local/ant/lib/xml-apis.jar:/usr/local/ant/lib/xercesImpl.jar:/usr/local/ant/lib/xalan.jar:/usr/local/ant/lib/stylebook-1.0-b3_xalan-2.jar:/usr/local/ant/lib/optional.jar:/usr/local/ant/lib/log4j.jar:/usr/local/ant/lib/junit.jar:/usr/local/ant/lib/jdom.jar:/usr/local/ant/lib/checkstyle.jar:/usr/local/ant/lib/catalina-ant.jar:/usr/local/ant/lib/cactus-ant-1.4.1.jar:/usr/local/ant/lib/aspectjrt-1.0.5.jar:/usr/local/ant/lib/ant.jar:/usr/local/java/lib/tools.jar

     [echo] java.home = /usr/local/j2sdk1.4.1_01/jre
     [echo] user.home = /home/craigmcc

prepare.library:

compile.library:
    [style] Transforming into /home/craigmcc/Jakarta/jakarta-struts-1.1/target/library

test.tomcat.41:
     [echo] tomcat.home.41 = /usr/local/tomcat-4.1

init:

prepare.test:
    [mkdir] Created dir: /home/craigmcc/Jakarta/jakarta-struts-1.1/target/test/classes
    [mkdir] Created dir: /home/craigmcc/Jakarta/jakarta-struts-1.1/target/test/servers
    [mkdir] Created dir: /home/craigmcc/Jakarta/jakarta-struts-1.1/target/test/lib

compile.test:
    [javac] Compiling 32 source files to 
/home/craigmcc/Jakarta/jakarta-struts-1.1/target/test/classes
     [copy] Copying 14 files to 
/home/craigmcc/Jakarta/jakarta-struts-1.1/target/test/classes
     [copy] Copying 3 files to 
/home/craigmcc/Jakarta/jakarta-struts-1.1/target/test/classes

prepare.test.war:
     [copy] Copying 1 file to 
/home/craigmcc/Jakarta/jakarta-struts-1.1/target/test/lib
     [copy] Copying 1 file to 
/home/craigmcc/Jakarta/jakarta-struts-1.1/target/test/lib
     [copy] Copying 1 file to 
/home/craigmcc/Jakarta/jakarta-struts-1.1/target/test/lib
     [copy] Copying 1 file to 
/home/craigmcc/Jakarta/jakarta-struts-1.1/target/test/lib
     [copy] Copying 1 file to 
/home/craigmcc/Jakarta/jakarta-struts-1.1/target/test/lib
     [copy] Copying 1 file to 
/home/craigmcc/Jakarta/jakarta-struts-1.1/target/test/lib
     [copy] Copying 1 file to 
/home/craigmcc/Jakarta/jakarta-struts-1.1/target/test/lib
     [copy] Copying 1 file to 
/home/craigmcc/Jakarta/jakarta-struts-1.1/target/test/lib
     [copy] Copying 1 file to 
/home/craigmcc/Jakarta/jakarta-struts-1.1/target/test/lib
     [copy] Copying 1 file to 
/home/craigmcc/Jakarta/jakarta-struts-1.1/target/test/lib
     [copy] Copying 1 file to 
/home/craigmcc/Jakarta/jakarta-struts-1.1/target/test/lib
     [copy] Copying 1 file to 
/home/craigmcc/Jakarta/jakarta-struts-1.1/target/test/lib
      [war] Building war: 
/home/craigmcc/Jakarta/jakarta-struts-1.1/target/test/test.war

prepare.test.tomcat.41:
    [mkdir] Created dir: 
/home/craigmcc/Jakarta/jakarta-struts-1.1/target/test/servers/tomcat41/webapps
    [mkdir] Created dir: 
/home/craigmcc/Jakarta/jakarta-struts-1.1/target/test/servers/tomcat41/conf
     [copy] Copying 1 file to 
/home/craigmcc/Jakarta/jakarta-struts-1.1/target/test/servers/tomcat41/webapps
     [copy] Copying 1 file to 
/home/craigmcc/Jakarta/jakarta-struts-1.1/target/test/servers/tomcat41/conf

test.tomcat.41:

start.tomcat.41:
     [java] Feb 6, 2003 6:30:57 PM org.apache.commons.modeler.Registry loadRegistry
     [java] INFO: Loading registry information
     [java] Feb 6, 2003 6:30:57 PM org.apache.commons.modeler.Registry getRegistry
     [java] INFO: Creating new Registry instance
     [java] Feb 6, 2003 6:30:59 PM org.apache.commons.modeler.Registry getServer
     [java] INFO: Creating MBeanServer
     [java] Feb 6, 2003 6:31:01 PM org.apache.coyote.http11.Http11Protocol init
     [java] INFO: Initializing Coyote HTTP/1.1 on port 9090
     [java] Starting service Tomcat-Standalone
     [java] Apache Tomcat/4.1.18
     [java] Feb 6, 2003 6:31:07 PM org.apache.coyote.http11.Http11Protocol start
     [java] INFO: Starting Coyote HTTP/1.1 on port 9090

run.test:
    [junit] Running org.apache.struts.action.TestActionMessage
    [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.049 sec
    [junit] Testsuite: org.apache.struts.action.TestActionMessage
    [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.049 sec

    [junit] Testcase: testActionMessageWithNoValue took 0.035 sec
    [junit] Testcase: testActionMessageWithAStringValue took 0 sec
    [junit] Running org.apache.struts.action.TestActionMessages
    [junit] Tests run: 8, Failures: 0, Errors: 0, Time elapsed: 0.081 sec
    [junit] Testsuite: org.apache.struts.action.TestActionMessages
    [junit] Tests run: 8, Failures: 0, Errors: 0, Time elapsed: 0.081 sec

    [junit] Testcase: testEmpty took 0.045 sec
    [junit] Testcase: testNotEmpty took 0.003 sec
    [junit] Testcase: testSizeWithOneProperty took 0 sec
    [junit] Testcase: testSizeWithManyProperties took 0.003 sec
    [junit] Testcase: testSizeAndEmptyAfterClear took 0 sec
    [junit] Testcase: testGetWithNoProperty took 0.009 sec
    [junit] Testcase: testGetForAProperty took 0.001 sec
    [junit] Testcase: testAddMessages took 0.009 sec
    [junit] Running org.apache.struts.action.TestActionServlet
    [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 1.527 sec
    [junit] Testsuite: org.apache.struts.action.TestActionServlet
    [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 1.527 sec

    [junit] Testcase: testInitDestroyInternal took 1.507 sec
    [junit]     FAILED
    [junit] Method [testInitDestroyInternal()] does not exist for class 
[org.apache.struts.action.TestActionServlet].
    [junit] junit.framework.AssertionFailedError: Method [testInitDestroyInternal()] 
does not exist for class [org.apache.struts.action.TestActionServlet].
    [junit]     at 
org.apache.cactus.AbstractTestCase.runServerTest(AbstractTestCase.java:324)
    [junit]     at 
org.apache.cactus.AbstractTestCase.runBareServerTest(AbstractTestCase.java:235)
    [junit]     at 
org.apache.cactus.server.AbstractWebTestCaller.doTest(AbstractWebTestCaller.java:149)
    [junit]     at 
org.apache.cactus.server.AbstractWebTestController.dispatch87_handleRequest(AbstractWebTestController.java;org/apache/cactus/util/log/LogAspect.aj(1k):125)

    [junit]     at 
org.apache.cactus.server.AbstractWebTestController.around87_handleRequest(AbstractWebTestController.java;org/apache/cactus/util/log/LogAspect.aj(1k):1156)

    [junit]     at 
org.apache.cactus.server.AbstractWebTestController.handleRequest(AbstractWebTestController.java;org/apache/cactus/util/log/LogAspect.aj(1k):101)

    [junit]     at 
org.apache.cactus.server.ServletTestRedirector.dispatch113_doPost(ServletTestRedirector.java;org/apache/cactus/util/log/LogAspect.aj(1k):123)

    [junit]     at 
org.apache.cactus.server.ServletTestRedirector.around113_doPost(ServletTestRedirector.java;org/apache/cactus/util/log/LogAspect.aj(1k):1156)

    [junit]     at 
org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirector.java;org/apache/cactus/util/log/LogAspect.aj(1k):109)

    [junit]     at 
org.apache.cactus.server.ServletTestRedirector.dispatch112_doGet(ServletTestRedirector.java;org/apache/cactus/util/log/LogAspect.aj(1k):96)

    [junit]     at 
org.apache.cactus.server.ServletTestRedirector.around112_doGet(ServletTestRedirector.java;org/apache/cactus/util/log/LogAspect.aj(1k):1156)

    [junit]     at 
org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirector.java;org/apache/cactus/util/log/LogAspect.aj(1k):92)

    [junit]     at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    [junit]     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    [junit]     at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)

    [junit]     at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)

    [junit]     at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
    [junit]     at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)

    [junit]     at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    [junit]     at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    [junit]     at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    [junit]     at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)

    [junit]     at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    [junit]     at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    [junit]     at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
    [junit]     at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
    [junit]     at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)

    [junit]     at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
    [junit]     at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)

    [junit]     at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
    [junit]     at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)

    [junit]     at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    [junit]     at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    [junit]     at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
    [junit]     at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)

    [junit]     at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    [junit]     at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    [junit]     at 
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
    [junit]     at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
    [junit]     at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)

    [junit]     at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
    [junit]     at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
    [junit]     at java.lang.Thread.run(Thread.java:536)

    [junit] Testcase: testInitDestroyInternal

stop.tomcat.41:
     [java] Stopping service Tomcat-Standalone
[runservertests] Server stopped !
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to