jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sushma <era_sus...@yahoo.co.in>
Subject Re: How to use JSPRedirector
Date Wed, 30 Aug 2006 09:42:22 GMT
Thanks 4 that...very very sorry I was really very
silly....
I guess there must be still some silly mistake which
I'm unalble to make out...as now I'm getting the below
error now...

<?xml version="1.0" encoding="UTF-8" ?> 
- <testsuites>
- <testsuite name="HTMLSampleTestCase" tests="1"
failures="0" errors="1" time="8.14">
- <testcase name="testJspOutput" time="8.063">
  <error message="The method [endJspOutput] has a bad
parameter of type
[com.meterware.httpunit.WebResponse]"
type="org.apache.cactus.internal.client.ClientException">org.apache.cactus.internal.client.ClientException:
The method [endJspOutput] has a bad parameter of type
[com.meterware.httpunit.WebResponse] at
org.apache.cactus.internal.client.ClientTestCaseCaller.callGenericEndMethod(ClientTestCaseCaller.java:417)
at
org.apache.cactus.internal.client.ClientTestCaseCaller.callEndMethod_aroundBody2(ClientTestCaseCaller.java:208)
at
org.apache.cactus.internal.client.ClientTestCaseCaller.callEndMethod_aroundBody3$advice(ClientTestCaseCaller.java:306)
at
org.apache.cactus.internal.client.ClientTestCaseCaller.callEndMethod(ClientTestCaseCaller.java)
at
org.apache.cactus.internal.client.ClientTestCaseCaller.runTest(ClientTestCaseCaller.java:148)
at
org.apache.cactus.internal.AbstractCactusTestCase.runBareClient(AbstractCactusTestCase.java:215)
at
org.apache.cactus.internal.AbstractCactusTestCase.runBare(AbstractCactusTestCase.java:133)
at
org.apache.cactus.server.runner.ServletTestRunner.run(ServletTestRunner.java:308)
at
org.apache.cactus.server.runner.ServletTestRunner.doGet_aroundBody0(ServletTestRunner.java:186)
at
org.apache.cactus.server.runner.ServletTestRunner.doGet_aroundBody1$advice(ServletTestRunner.java:224)
at
org.apache.cactus.server.runner.ServletTestRunner.doGet(ServletTestRunner.java)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:595)
org.apache.cactus.internal.client.ClientException:
Error calling [public static
com.meterware.httpunit.WebResponse
com.meterware.httpunit.WebResponse.newResponse(java.net.URLConnection)
throws java.io.IOException] at
org.apache.cactus.internal.client.WebResponseObjectFactory.createHttpUnitWebResponse(WebResponseObjectFactory.java:121)
at
org.apache.cactus.internal.client.WebResponseObjectFactory.getResponseObject_aroundBody0(WebResponseObjectFactory.java:67)
at
org.apache.cactus.internal.client.WebResponseObjectFactory.getResponseObject_aroundBody1$advice(WebResponseObjectFactory.java:306)
at
org.apache.cactus.internal.client.WebResponseObjectFactory.getResponseObject(WebResponseObjectFactory.java)
at
org.apache.cactus.internal.client.ClientTestCaseCaller.callGenericEndMethod(ClientTestCaseCaller.java:412)
at
org.apache.cactus.internal.client.ClientTestCaseCaller.callEndMethod_aroundBody2(ClientTestCaseCaller.java:208)
at
org.apache.cactus.internal.client.ClientTestCaseCaller.callEndMethod_aroundBody3$advice(ClientTestCaseCaller.java:306)
at
org.apache.cactus.internal.client.ClientTestCaseCaller.callEndMethod(ClientTestCaseCaller.java)
at
org.apache.cactus.internal.client.ClientTestCaseCaller.runTest(ClientTestCaseCaller.java:148)
at
org.apache.cactus.internal.AbstractCactusTestCase.runBareClient(AbstractCactusTestCase.java:215)
at
org.apache.cactus.internal.AbstractCactusTestCase.runBare(AbstractCactusTestCase.java:133)
at
org.apache.cactus.server.runner.ServletTestRunner.run(ServletTestRunner.java:308)
at
org.apache.cactus.server.runner.ServletTestRunner.doGet_aroundBody0(ServletTestRunner.java:186)
at
org.apache.cactus.server.runner.ServletTestRunner.doGet_aroundBody1$advice(ServletTestRunner.java:224)
at
org.apache.cactus.server.runner.ServletTestRunner.doGet(ServletTestRunner.java)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:595)
java.lang.ClassNotFoundException:
com.meterware.httpunit.WebResponse at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:854)
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:721)
at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method) at
java.lang.Class.forName(Class.java:164) at
org.apache.cactus.internal.client.WebResponseObjectFactory.createHttpUnitWebResponse(WebResponseObjectFactory.java:113)
at
org.apache.cactus.internal.client.WebResponseObjectFactory.getResponseObject_aroundBody0(WebResponseObjectFactory.java:67)
at
org.apache.cactus.internal.client.WebResponseObjectFactory.getResponseObject_aroundBody1$advice(WebResponseObjectFactory.java:306)
at
org.apache.cactus.internal.client.WebResponseObjectFactory.getResponseObject(WebResponseObjectFactory.java)
at
org.apache.cactus.internal.client.ClientTestCaseCaller.callGenericEndMethod(ClientTestCaseCaller.java:412)
at
org.apache.cactus.internal.client.ClientTestCaseCaller.callEndMethod_aroundBody2(ClientTestCaseCaller.java:208)
at
org.apache.cactus.internal.client.ClientTestCaseCaller.callEndMethod_aroundBody3$advice(ClientTestCaseCaller.java:306)
at
org.apache.cactus.internal.client.ClientTestCaseCaller.callEndMethod(ClientTestCaseCaller.java)
at
org.apache.cactus.internal.client.ClientTestCaseCaller.runTest(ClientTestCaseCaller.java:148)
at
org.apache.cactus.internal.AbstractCactusTestCase.runBareClient(AbstractCactusTestCase.java:215)
at
org.apache.cactus.internal.AbstractCactusTestCase.runBare(AbstractCactusTestCase.java:133)
at
org.apache.cactus.server.runner.ServletTestRunner.run(ServletTestRunner.java:308)
at
org.apache.cactus.server.runner.ServletTestRunner.doGet_aroundBody0(ServletTestRunner.java:186)
at
org.apache.cactus.server.runner.ServletTestRunner.doGet_aroundBody1$advice(ServletTestRunner.java:224)
at
org.apache.cactus.server.runner.ServletTestRunner.doGet(ServletTestRunner.java)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:595)</error> 
  </testcase>
  </testsuite>
  </testsuites>

please tell me what might be the reason.

Thanks a lot,
Suresh.
--- Franz Roth <franzroth@gmx.de> wrote:

> well, cactus is easy to use, really :))
> 
> I've taken the reading-glass an found:
> 
> 
> 	"<servlet-mapping>
> 	    <servlet-name>JspRedirector</servlet-name>
> 	    <url-pattern>/JspRedirector/</url-pattern>
> 	</servlet-mapping>"
> 
> 
> 	must be:
> 	<servlet-mapping>
> 	    <servlet-name>JspRedirector</servlet-name>
> 	    <url-pattern>/JspRedirector</url-pattern>
> 	</servlet-mapping>
> 	[without slash after JspRedirector]
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> cactus-user-help@jakarta.apache.org
> 
> 



		
__________________________________________________________
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/

Mime
View raw message