1) Did you add the web project as a module to your EAR?  The servlet has to
start up for you to be able to execute the cactus test.

Here is my web.xml for reference.  Note that I load two servlets, the first
is the redirector needed for the Junit Runner, the second is the TestRunner
for running through html.  The second is optional, the first is not.


<display-name>CactusWeb</display-name>
        <servlet>
                <servlet-name>ServletRedirector</servlet-name>
                <display-name>ServletRedirector</display-name>
        
<servlet-class>org.apache.cactus.server.ServletTestRedirector</servlet-class
>
                <load-on-startup>1</load-on-startup>
        </servlet>
        <servlet>
                <servlet-name>ServletTestRunner</servlet-name>
                <display-name>ServletTestRunner</display-name>
        
<servlet-class>org.apache.cactus.server.runner.ServletTestRunner</servlet-cl
ass>
                <init-param>
                        <param-name>xsl-stylesheet</param-name>
                        <param-value>styles/cactus-report.xsl</param-value>
                </init-param>
                <load-on-startup>2</load-on-startup>
        </servlet>
        <servlet-mapping>
                <servlet-name>ServletRedirector</servlet-name>
                <url-pattern>/ServletRedirector</url-pattern>
        </servlet-mapping>
        <servlet-mapping>
                <servlet-name>ServletTestRunner</servlet-name>
                <url-pattern>/ServletTestRunner</url-pattern>
        </servlet-mapping>


Also, would it be possible to post your console from when you start up your
server?

Thanks,
Aaron


> -----Original Message-----
> From: Kaushal Zagade [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, December 07, 2004 6:16 PM
> To: Cactus Users List
> Subject: Re: cactus and webphere - urgent please
> 
> 
> Thanks Aaron,
> 
> yes the author is not on the list and his tutorial was using wsad4.0.
> 
> i am a little new to this so don't mind if my questions are a 
> little basic.
> 
> about the port, as i am running the project on WSAD5.1.2 (and on RAD
> 6.0) the port to which the server listens is 9080 -
> http://localhost:9080/cactus_test.
> so i have modified the cactus.properties file to look like this - 
> 
> cactus.contextURL = http://localhost:9080/cactus_test  
> cactus.servletRedirectorName = ServletRedirector
> cactus.enableLogging = true
>  
> is this correct ?
> and
> the web.xml is
> 
> <servlet>  
> <servlet-name>ServletRedirector</servlet-name>  
> <servlet-class>org.apache.cactus.server.ServletTestRedirector<
> /servlet-class>  
> </servlet> 
> 
> <servlet-mapping>  
> <servlet-name>ServletRedirector</servlet-name>  
> <url-pattern>/ServletRedirector</url-pattern>  
> </servlet-mapping>
> 
> 
> there is nothing coming on my console after the server has 
> started other than 
> this after running the EJBServletTestCase as a Java Application:
> 
> =====
> 
> Dec 7, 2004 2:57:38 PM org.apache.commons.httpclient.HttpMethodBase
> INFO: Recoverable exception caught when processing request
> Dec 7, 2004 2:57:42 PM org.apache.commons.httpclient.HttpMethodBase
> WARNING: Recoverable exception caught but
> MethodRetryHandler.retryMethod() returned false, rethrowing exception
> 
> =====
> 
> and this is what i get on the JUnit dialog box that pops up:
> 
> =====
> 
> testHelloWorld3(test.EJBServletTestCase):
> org.apache.commons.httpclient.HttpRecoverableException:Error in
> parsing the status line from the response:unable to find the line
> starting with "HTTP".
> 
> =====
> 
> i am really not able to understand why the test is failing. is there
> anything you can think i am doing wrong ?
> 
> 
> Kaushal
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

Reply via email to