Hi,

Would anybody please give some help on this exception. [In mailing list suggests to use axis.1.2.1 or higher but didn't work for me].

More detailed information is enclosed.

Cheers

Alex


[java] Exception in thread "main" java.lang.IllegalAccessError: tried to access method org.apache.axis.SOAPPart.setCurrentMessage(Ljava/lang/Object;I)V from class org.apache.ws.axis.security.WSDoAllSender [java] at org.apache.ws.axis.security.WSDoAllSender.invoke(WSDoAllSender.java:203) [java] at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71) [java] at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
    [java]     at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
[java] at org.apache.axis.client.AxisClient.invoke(AxisClient.java:167)
    [java]     at org.apache.axis.client.Call.invokeEngine(Call.java:2564)
    [java]     at org.apache.axis.client.Call.invoke(Call.java:2553)
    [java]     at org.apache.axis.client.Call.invoke(Call.java:1753)
[java] at org.apache.axis.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:105) [java] at org.kth.pdc.grid.test.STSClient.validateToken(Unknown Source)
    [java]     at org.kth.pdc.grid.test.STSClient.main(Unknown Source)
    [java] Java Result: 1

############# Some information,

Message Style web service invocation.
UsernameToken/digest password WSS scenario.

Tested with Axis 1.2.1 and Axis 1.3
Java -1.5
xalan -2.7.0
xerces -2.5.0

############ Call invoke part of client source code ...
.....
MessageFactory mf = MessageFactory.newInstance();
SOAPMessage reqSoapMessage = mf.createMessage();
org.apache.axis.SOAPPart soapPart = (org.apache.axis.SOAPPart)reqSoapMessage.getSOAPPart(); DOMSource domSource = new DOMSource(reqMessage.getAsDocument()); soapPart.setContent(domSource); SOAPConnection conn = SOAPConnectionFactory.newInstance().createConnection(); OAPMessage resSoapMessage = conn.call(reqSoapMessage,stsAddress); .....

############# Service interface .....

public void process(SOAPEnvelope reqMessage, SOAPEnvelope resMessage) {

.....

}

############  client_deploy.wsdd

<deployment xmlns="http://xml.apache.org/axis/wsdd/"; xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";> <transport name="http" pivot="java:org.apache.axis.transport.http.HTTPSender"/>
 <globalConfiguration >
  <requestFlow >
   <handler type="java:org.apache.ws.axis.security.WSDoAllSender" >
    <parameter name="action" value="UsernameToken"/>
    <parameter name="user" value="wss4j"/>
<parameter name="passwordCallbackClass" value="org.edu.de.service.PWCallback"/>
    <parameter name="passwordType" value="PasswordDigest"/>
   </handler>
  </requestFlow >
 </globalConfiguration >
</deployment>

#############




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to