jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pete Hale" <ph...@cnnxn.com>
Subject No Such Method Error
Date Mon, 21 Apr 2003 19:37:45 GMT
I am working with the EJB Howto examples and I am trying to get this
code to run under jBoss (jboss-3.2.0_tomcat-4.1.24). When I run the test
via ServletTestRunner I receive the following stack trace:

 

  <?xml version="1.0" encoding="UTF-8" ?> 

-
<http://localhost:8080/cactusEJB/ServletTestRunner?suite=ConverterTest##
>  <testsuites>

-
<http://localhost:8080/cactusEJB/ServletTestRunner?suite=ConverterTest##
>  <testsuite name="ConverterTest" tests="1" failures="0" errors="1"
time="0.016">

-
<http://localhost:8080/cactusEJB/ServletTestRunner?suite=ConverterTest##
>  <testcase name="testConvert" time="0">

  <error
message="org.apache.commons.httpclient.methods.GetMethod.setRequestHeade
r(Ljava/lang/String;Ljava/lang/String;)V"
type="java.lang.NoSuchMethodError">java.lang.NoSuchMethodError:
org.apache.commons.httpclient.methods.GetMethod.setRequestHeader(Ljava/l
ang/String;Ljava/lang/String;)V at
org.apache.cactus.client.HttpClientConnectionHelper.dispatch24_connect(H
ttpClientConnectionHelper.java;org/apache/cactus/util/log/LogAspect.aj(1
k):142) at
org.apache.cactus.client.HttpClientConnectionHelper.around24_connect(Htt
pClientConnectionHelper.java;org/apache/cactus/util/log/LogAspect.aj(1k)
:1218) at
org.apache.cactus.client.HttpClientConnectionHelper.connect(HttpClientCo
nnectionHelper.java;org/apache/cactus/util/log/LogAspect.aj(1k):106) at
org.apache.cactus.client.AbstractHttpClient.callRunTest(AbstractHttpClie
nt.java;org/apache/cactus/util/log/LogAspect.aj(1k):186) at
org.apache.cactus.client.AbstractHttpClient.dispatch2_doTest(AbstractHtt
pClient.java;org/apache/cactus/util/log/LogAspect.aj(1k):109) at
org.apache.cactus.client.AbstractHttpClient.around2_doTest(AbstractHttpC
lient.java;org/apache/cactus/util/log/LogAspect.aj(1k):1218) at
org.apache.cactus.client.AbstractHttpClient.doTest(AbstractHttpClient.ja
va;org/apache/cactus/util/log/LogAspect.aj(1k):104) at
org.apache.cactus.AbstractWebTestCase.runGenericTest(AbstractWebTestCase
.java:260) at
org.apache.cactus.ServletTestCase.runTest(ServletTestCase.java:133) at
org.apache.cactus.AbstractTestCase.runBare(AbstractTestCase.java:195) at
junit.framework.TestResult$1.protect(TestResult.java:106) at
junit.framework.TestResult.runProtected(TestResult.java:124) at
junit.framework.TestResult.run(TestResult.java:109) at
junit.framework.TestCase.run(TestCase.java:131) at
junit.framework.TestSuite.runTest(TestSuite.java:173) at
junit.framework.TestSuite.run(TestSuite.java:168) at
org.apache.cactus.server.runner.ServletTestRunner.dispatch92_run(Servlet
TestRunner.java;org/apache/cactus/util/log/LogAspect.aj(1k):161) at
org.apache.cactus.server.runner.ServletTestRunner.around92_run(ServletTe
stRunner.java;org/apache/cactus/util/log/LogAspect.aj(1k):1218) at
org.apache.cactus.server.runner.ServletTestRunner.run(ServletTestRunner.
java;org/apache/cactus/util/log/LogAspect.aj(1k):137) at
org.apache.cactus.server.runner.ServletTestRunner.dispatch91_doGet(Servl
etTestRunner.java;org/apache/cactus/util/log/LogAspect.aj(1k):121) at
org.apache.cactus.server.runner.ServletTestRunner.around91_doGet(Servlet
TestRunner.java;org/apache/cactus/util/log/LogAspect.aj(1k):1149) at
org.apache.cactus.server.runner.ServletTestRunner.doGet(ServletTestRunne
r.java;org/apache/cactus/util/log/LogAspect.aj(1k):101) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247) at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193) at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:256) at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643) at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80) at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:191) at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643) at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.ja
va:246) at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641) at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80) at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241
5) at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180) at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643) at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:171) at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641) at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:172) at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641) at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509
) at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641) at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80) at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:174) at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643) at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80) at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:59
4) at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:392) at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:56
5) at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:619) at java.lang.Thread.run(Unknown Source)</error> 

  </testcase>

  </testsuite>

  </testsuites>

 

I have reviewed other list threads concerning this error including
upgrading the commons-httpclient to alpha 3. Any help you can throw my
way would be greatly appreciated.

 

Thanks

 

Pete Hale

 

 

 

 


Mime
View raw message