axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ali Sadik Kumlali <as_kuml...@yahoo.com>
Subject Re: [Axis2 v1.0] security sample problem
Date Wed, 19 Jul 2006 08:35:55 GMT
Hi Wan,

Since your message doesn't have security headers, your client application seems to load wrong
axis2.xml which isn't configured for secure communication. Have you added following VM arguments
before running your client application from Eclipse?

-Daxis2.repo=client_repo -Daxis2.xml=client_repo/conf/axis2.xml

I know you were able to run it successfully with one of the nightly builds. But just wanted
to remind this mostly forgotten part :)

Regards,

Ali Sadik Kumlali


----- Original Message ----
From: Wan Kaveevivitchai <wan1551@hotmail.com>
To: axis-user@ws.apache.org
Sent: Wednesday, July 19, 2006 10:40:40 AM
Subject: Re: [Axis2 v1.0] security sample problem

Ruchith,

      now my result from eclipse is equivalent to the one run by ant. 
However, it looks like this
Buildfile: build.xml

securitySample:
     [java] 19.07.2006 09:08:39 org.apache.axis2.deployment.DeploymentEngine 
prepareRepository
     [java] INFO: no services directory found , new one created
     [java] 19.07.2006 09:08:39 org.apache.axis2.deployment.DeploymentEngine 
doDeploy
     [java] INFO: Deploying module : addressing-1.0
     [java] 19.07.2006 09:08:40 org.apache.axis2.deployment.DeploymentEngine 
doDeploy
     [java] INFO: Deploying module : rampart-1.0
     [java] org.apache.axis2.AxisFault: WSDoAllReceiver: Request does not 
contain required Security header
     [java]     at 
org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:190)
     [java]     at 
org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82)
     [java]     at org.apache.axis2.engine.Phase.invoke(Phase.java:380)
     [java]     at 
org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:523)
     [java]     at 
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:492)
     [java]     at 
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:362)
     [java]     at 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:280)
     [java]     at 
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:538)
     [java]     at 
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:472)
     [java]     at sample.security.Client.main(Client.java:58)

BUILD SUCCESSFUL
Total time: 7 seconds

         I have deployed couple different version of Axis2 nightly builds. 
And i have discover something strange. In which the sample i used came with 
axis2-std-SNAPSHOT-bin, released on July 18th. I have been successfully run 
it with ant but with axis2 nightly build 6  June 06 version on the server 
side.

with the following result
Buildfile: build.xml

securitySample:
     [java] 19.07.2006 09:13:07 org.apache.axis2.deployment.DeploymentEngine 
prepareRepository
     [java] INFO: no services directory found , new one created
     [java] 19.07.2006 09:13:08 org.apache.axis2.deployment.DeploymentEngine 
doDeploy
     [java] INFO: Deploying module : addressing-1.0
     [java] 19.07.2006 09:13:08 org.apache.axis2.deployment.DeploymentEngine 
doDeploy
     [java] INFO: Deploying module : rampart-1.0
     [java] 19.07.2006 09:13:15 org.apache.xml.security.signature.Reference 
verify
     [java] INFO: Verification successful for URI "#id-25182688"
     [java] 19.07.2006 09:13:15 org.apache.xml.security.signature.Reference 
verify
     [java] INFO: Verification successful for URI "#SigConf-28291271"
     [java] Response: <example1:echo 
xmlns:example1="http://example1.org/example1"; 
xmlns:tns="http://ws.apache.org/axis2"; 
xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"; 
xmlns:wsa="http://www.w3.org/2005/08/addressing"; 
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";

xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><example1:Text>Axis2 
Echo String </example1:Text></example1:echo>
     [java] SecureService Invocation successful :-)

BUILD SUCCESSFUL
Total time: 9 seconds

          However, when i try to run the same sample with the latest nightly 
build version on the server side released on 18 July 06. I got

Buildfile: build.xml

securitySample:
     [java] 19.07.2006 09:08:39 org.apache.axis2.deployment.DeploymentEngine 
prepareRepository
     [java] INFO: no services directory found , new one created
     [java] 19.07.2006 09:08:39 org.apache.axis2.deployment.DeploymentEngine 
doDeploy
     [java] INFO: Deploying module : addressing-1.0
     [java] 19.07.2006 09:08:40 org.apache.axis2.deployment.DeploymentEngine 
doDeploy
     [java] INFO: Deploying module : rampart-1.0
     [java] org.apache.axis2.AxisFault: WSDoAllReceiver: Request does not 
contain required Security header
     [java]     at 
org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:190)
     [java]     at 
org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82)
     [java]     at org.apache.axis2.engine.Phase.invoke(Phase.java:380)
     [java]     at 
org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:523)
     [java]     at 
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:492)
     [java]     at 
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:362)
     [java]     at 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:280)
     [java]     at 
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:538)
     [java]     at 
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:472)
     [java]     at sample.security.Client.main(Client.java:58)

BUILD SUCCESSFUL
Total time: 7 seconds

       Any idea about how it happens? By the way i had put 
axiom-dom-SNAPSHOT.jar into the older axis version library as well.

        Please give me some advice.

        Wan



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org






Mime
View raw message