Vincent,

I presumed that TestRunner is the servlet which can be used to run tests
by providing classname parameter with appropriate test class name.
Anyhow I am getting the exact same results when I run the test through
junit.awtui.TestRunner.

I do not have junit.jar in WEB-INF/lib but I do have the expanded junit
classes under WEB-INF/classes ( i.e. junit/framework, junit/extensions
etc.. )

--Navjeet


> -----Original Message-----
> From: Vincent Massol [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 03, 2001 2:08 PM
> To: [EMAIL PROTECTED]
> Subject: Re: cactus and Iplanet App Server 6.0
> 
> 
> Hi,
> 
> * What is TestRunner ? I usually run the tests by either 
> starting the JUnit
> text runner or the awt/swing runner ones.
> * Can you verify that you have junit.jar in your WEB-INF/lib 
> directory ?
> 
> Thanks
> -Vincent
> 
> ----- Original Message -----
> From: "Chabbewal, Navjeet" <[EMAIL PROTECTED]>
> To: "Chabbewal, Navjeet" <[EMAIL PROTECTED]>;
> <[EMAIL PROTECTED]>
> Sent: Friday, August 03, 2001 6:58 PM
> Subject: RE: cactus and Iplanet App Server 6.0
> 
> 
> > I got thru the initial hurdles and now I am at the stage 
> when I run the
> > test thru browser( url:
> > 
> http://localhost/NASApp/sample/TestRunner?classname=org.apache
> .commons.c
> > actus.sample.unit.TestServletTestCase1
> >
> > I get the the following errors for 7 of the 9  test cases:
> > java.io.FileNotFoundException:
> > http://localhost/NASApp/sample/ServletTestRedirector
> > at <http://localhost/NASApp/sample/ServletTestRedirector at>
> > 
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(Htt
> pURLConnec
> > tion.java:530)
> > at
> > 
> org.apache.commons.cactus.client.ServletHttpClient.doTest(Serv
> letHttpCli
> > ent.java:123)
> > at
> > 
> org.apache.commons.cactus.ServletTestCase.runGenericTest(Servl
> etTestCase
> > .java:158)
> > at
> > 
> org.apache.commons.cactus.ServletTestCase.runTest(ServletTestC
> ase.java:1
> > 28)
> > at
> > 
> org.apache.commons.cactus.sample.unit.TestServletTestCase1_Int
> erceptorSe
> > 
> rvletTestCase.runTest(TestServletTestCase1_InterceptorServletT
> estCase.ja
> > va:88)
> > at
> > 
> org.apache.commons.cactus.AbstractTestCase.runBare(AbstractTes
> tCase.java
> > :281)
> > at junit.framework.TestResult$1.protect(TestResult.java:100)
> > at junit.framework.TestResult.runProtected(TestResult.java:117)
> > at junit.framework.TestResult.run(TestResult.java:103)
> > at junit.framework.TestCase.run(TestCase.java:120)
> > at junit.framework.TestSuite.run(TestSuite.java:144)
> > at junit.servletui.TestRunner.doRun(TestRunner.java:128)
> > at junit.servletui.TestRunner.doGet(TestRunner.java:102)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
> > at
> > 
> com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
> > Source)
> > at
> > 
> com.netscape.server.servlet.servletrunner.ServletRunner.execut
> e(Unknown
> > Source)
> > at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
> > at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
> > at com.kivasoft.thread.ThreadBasic.run(Native Method)
> > at java.lang.Thread.run(Thread.java:479)
> >
> > But when I go to this url (
> > http://localhost/NASApp/sample/ServletTestRedirector
> > ) thru browser I get the following error:
> > [03/Aug/2001 13:42:46:4] error: Exception: SERVLET-execution_failed:
> > Error in ex
> > ecuting servlet ServletTestRedirector: 
> javax.servlet.ServletException:
> > Missing p
> > arameter [ServletTestRedirector_Service] in HTTP request.
> > Exception Stack Trace:
> > javax.servlet.ServletException: Missing parameter
> > [ServletTestRedirector_Service
> > ] in HTTP request.
> >         at
> > 
> org.apache.commons.cactus.server.ServletTestRedirector.doPost(Servlet
> > TestRedirector.java:134)
> > which tells me the the redirector servlet is there and it runs. The
> > cactus.properties does have the entry:
> > cactus.servletRedirectorURL =
> > http://localhost/NASApp/sample/ServletTestRedirector
> >
> > Am I running into some IPlanet specific issue or am I doing 
> something
> > wrong ?
> >
> > --Navjeet
> >
> >
> >
> 

Reply via email to