I have not used the Eclipse plugin, I would try looking at the axis.jar I am
guessing it is an older version and you need to remove it. Some where there
is code trying to call a method that does not exist. I would start from
scratch and get the Axis2.war working first in Tomcat with no service, then
try to include Rampart. Then try adding a service.
Chad
On 6/22/07, Evandro P. Contato <[EMAIL PROTECTED]> wrote:
Chad
I use Eclipse plugin for generator client class, in debugging the error
occurs in code next
// create a message context
org.apache.axis2.context.MessageContext _messageContext =
*new* org.apache.axis2.context.MessageContext();
// create SOAP envelope with that payload
org.apache.axiom.soap.SOAPEnvelope env =
*null*;
env = toEnvelope(*getFactory*
(_operationClient.getOptions().getSoapVersionURI()),testeTexto6,optimizeContent(
*new* javax.xml.namespace.QName("","testeTexto")));
//adding SOAP soap_headers
_serviceClient.addHeadersToEnvelope(env);
// set the message context with that soap envelope
_messageContext.setEnvelope(env);
// add the message contxt to the operation client
_operationClient.addMessageContext(_messageContext);
//execute the operation client
_operationClient.execute(*true*);
Some idea ?:)
thanks for helping me
Evandro
----- Original Message -----
*From:* Chad DeBauch <[EMAIL PROTECTED]>
*To:* [EMAIL PROTECTED] ; [email protected]
*Sent:* Thursday, June 21, 2007 10:36 PM
*Subject:* Re: NoSuchMethodError error while engagin rampart
Some code that is executing is calling the method isEngaged(QName) but
with the latest release of Axis2 if you look at the java docs the only
isEngaged method accepts a String. Make sure you don't have any code that
calls the method isEngaged(QName) and that you are using the latest 1.2jars of
both Rampart and Axis2. You also might want to check that you don't
have duplicate jars, that is an older version is loaded before your newer
version jar.
Chad
On 6/21/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi Chad,
>
>
> I made download of the archive however still the error occurs
> java.lang.NoSuchMethodError:
> org.apache.axis2.context.MessageContext.isEngaged
> (Ljavax/xml/namespace/QName;)Z
>
> some idea of as I can decide?
>
> Link download
> http://www.apache.org/dist/ws/rampart/1_2/
>
> thanks,
>
> Evandro P. Contato
> Curitiba - ParanĂ¡ - Brasil
>
>
> Chad DeBauch wrote:
> >
> > You need to be using rampart-1.2.mar with axis2-1.2.
> >
> > Chad
> >
> > On 6/19/07, Shantaram Nadkarni <[EMAIL PROTECTED]> wrote:
> >>
> >> Hi
> >>
> >>
> >>
> >> I am trying to engage rampart module. I get the following error
> >>
> >>
> >>
> >> org.apache.axis2.AxisFault: java.lang.NoSuchMethodError : boolean
> >> org.apache.axis2.context.MessageContext.isEngaged(
> javax.xml.namespace.QN
> >>
> >> ame)
> >>
> >> at
> >>
> >> org.apache.axis2.util.Utils.getInboundFaultFromMessageContext (
> Utils.java
> >>
> >> :434)
> >>
> >> at
> >>
> >> org.apache.axis2.description.OutInAxisOperationClient.send
> (OutInAxisOper
> >>
> >> ation.java:373)
> >>
> >> at
> >>
> >> org.apache.axis2.description.OutInAxisOperationClient.execute
> (OutInAxisO
> >>
> >> peration.java:294)
> >>
> >>
> >>
> >> I am using rampart-1.1.mar and axis2-1.2
> >>
> >>
> >>
> >> I have included the module in the service.xml as well as axis2.xml
> >>
> >>
> >>
> >> Please advice.
> >>
> >>
> >>
> >> Thanks
> >>
> >>
> >>
> >> Shantaram
> >>
> >>
> >>
> >
> >
> Quoted from:
>
>
http://www.nabble.com/NoSuchMethodError-error-while-engagin-rampart-tf3947792.html#a11200135
>
>