jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Massol" <vmas...@pivolis.com>
Subject RE: No Such Method Error
Date Mon, 21 Apr 2003 20:27:45 GMT


> -----Original Message-----
> From: Pete Hale [mailto:phale@cnnxn.com]
> Sent: 21 April 2003 22:23
> To: Cactus Users List
> Subject: RE: No Such Method Error
> 
> Vincent,
> 
> I had just thought of that and jBoss appears to use
commons-httpclient. I
> will replace it with the one from cactus and see if that fixes the
> problem.

Right. Now that you say it I remember a post of a few days ago of
someone asking the same thing on the jboss mailing list. But I don't
remember the outcome... Maybe you could check the jboss ML.

-Vincent

> 
> Pete
> 
> -----Original Message-----
> From: Vincent Massol [mailto:vmassol@pivolis.com]
> Sent: Monday, April 21, 2003 2:21 PM
> To: 'Cactus Users List'
> Subject: RE: No Such Method Error
> 
> Hi Pete,
> 
> Then it should be ok. Can you verify that you have no other httpclient
> jar present in your classpath (this is the only other possibility I
can
> see)?
> 
> Thanks
> -Vincent
> 
> > -----Original Message-----
> > From: Pete Hale [mailto:phale@cnnxn.com]
> > Sent: 21 April 2003 22:08
> > To: Cactus Users List
> > Subject: RE: No Such Method Error
> >
> > Vincent,
> >
> > That is what I used in the first attempt to get this to work.
Version
> 13-
> > 1.4.1 of cactus which contains the commons-httpclient-2.0alpha1-
> > 20020606.jar. I am assuming that this is the correct version. If
not,
> > please point me at the right one.
> >
> > Thanks
> >
> > Pete
> >
> > -----Original Message-----
> > From: Vincent Massol [mailto:vmassol@pivolis.com]
> > Sent: Monday, April 21, 2003 1:45 PM
> > To: 'Cactus Users List'
> > Subject: RE: No Such Method Error
> >
> > Hi Peter,
> >
> > The error means that the
> >
>
org.apache.commons.httpclient.methods.GetMethod.setRequestHeader(String,
> > String) cannot be found in the classpath. Thus, my guess is that you
> are
> > using an old version of HttpClient (which is incompatible with the
> > Cactus version you're using). Try using the httpclient version
> provided
> > with cactus.
> >
> > -Vincent
> >
> > -----Original Message-----
> > From: Pete Hale [mailto:phale@cnnxn.com]
> > Sent: 21 April 2003 21:38
> > To: cactus-user@jakarta.apache.org
> > Subject: No Such Method Error
> >
> > 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" ?>
> > - <testsuites>
> > - <testsuite name="ConverterTest" tests="1" failures="0" errors="1"
> > time="0.016">
> > - <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
> >
> >
> >
> >
> >
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: cactus-user-help@jakarta.apache.org
> >
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: cactus-user-help@jakarta.apache.org
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org



Mime
View raw message