jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deepak Shah <Ds...@ivega.com>
Subject RE: Missing service name parameter [Cactus_Service]
Date Fri, 02 Aug 2002 06:43:54 GMT
Well,

You can put this in the ant scripts which you use for launching the tests,
in sample-servlet it is build-tests-weblogic-61.xml for weblogic server

Cactus deploys a ServletRedirector servlet in test web application on target
server. 

        <runservertests
            testURL="  <http://localhost:$>
http://localhost:${test.port}/test/ServletRedirector?Cactus_Service=RUN_TEST
"
            startTarget="start.weblogic.61"
            stopTarget="stop.weblogic.61"
            testTarget="test"/>

about testTarget element, API specifications for runservertests custom ant
task states: 
"Call the test target. This target is supposed to start the test, usually by
running the junit Ant task"
Me too is exploring the way runservertests handles the testTarget element
and invokes junit tests.







-----Original Message-----
From: Kumar_maniranjan [mailto:Kumar_maniranjan@infosys.com]
Sent: Friday, August 02, 2002 11:51 AM
To: Cactus Users List
Subject: RE: Missing service name parameter [Cactus_Service]


hi Deepak,
But in which file do I need to put this value? 

regards,
Maniranjan Kumar

-----Original Message-----
From: Deepak Shah [mailto:Dshah@ivega.com]
Sent: Friday, August 02, 2002 11:46 AM
To: 'Cactus Users List'
Cc: Kumar_maniranjan
Subject: RE: Missing service name parameter [Cactus_Service]


The way tests are called from client is :

        [build-tests-weblogic-61.xml]
        <runservertests
            testURL="  <http://localhost:$>
http://localhost:${test.port}/test/ServletRedirector?Cactus_Service=RUN_TEST
"
            startTarget="start.weblogic.61"
            stopTarget="stop.weblogic.61"
            testTarget="test"/>

It is required to specify value for parameter Cactus_Service as shown in
above sample

The error logs suggest that value for this parameter is not set.


 
Regs,
Deepak






-----Original Message-----
From: Kumar_maniranjan [mailto:
Sent: Friday, August 02, 2002 11:30 AM
To: cactus-user@jakarta.apache.org
Subject: Missing service name parameter [Cactus_Service]


hi,

I m trying to run cactus test classes but getting this exception. Below is
the server log.

waiting fo a fast reply,
Maniranjan Kumar



<Aug 2, 2001 11:21:23 AM IST> <Error> <HTTP>
<[WebAppServletContext(597769,application
,/application)] Servlet failed with ServletException
javax.servlet.ServletException: Missing service name parameter
[Cactus_Service]
in HTTP request. Received query string is [null].
        at
org.apache.cactus.server.AbstractTestController.getServiceName(Abstra
ctTestController.java;org/apache/cactus/util/log/LogAspect.java(1k):185)
        at
org.apache.cactus.server.AbstractTestController.dispatch79_handleRequ
est(AbstractTestController.java;org/apache/cactus/util/log/LogAspect.java(1k
):11
6)
        at
org.apache.cactus.server.AbstractTestController.around79_handleReques
t(AbstractTestController.java;org/apache/cactus/util/log/LogAspect.java(1k):
1147
)
        at
org.apache.cactus.server.AbstractTestController.handleRequest(Abstrac
tTestController.java;org/apache/cactus/util/log/LogAspect.java(1k):101)
        at
org.apache.cactus.server.ServletTestRedirector.dispatch88_doPost(Serv
letTestRedirector.java;org/apache/cactus/util/log/LogAspect.java(1k):132)
        at
org.apache.cactus.server.ServletTestRedirector.around88_doPost(Servle
tTestRedirector.java;org/apache/cactus/util/log/LogAspect.java(1k):1147)
        at
org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedi
rector.java;org/apache/cactus/util/log/LogAspect.java(1k):118)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:265)
        at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:21)
        at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:27)
        at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:2464)
        at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2039)
        at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
        at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
>

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



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


--
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