You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wss4j-dev@ws.apache.org by Fabien Couvert <fa...@bull.net> on 2008/03/10 16:03:38 UTC

Error with rampart

Hello,

I try to deploy rampart for my webservice but i have en error when I try 
to send something in the client side :

Impossible to call remote service with url : 
http://localhost:8080/axis2/services/MYservice
.............................
Caused by: org.apache.axis2.AxisFault: CryptoFactory: Cannot load 
properties: service.properties
       at 
org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:486) 

       at 
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:343) 

       at 
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:389) 

       at 
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211) 

       at 
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
       ... 5 more


I had deployed Rampart on my webservices and I can show the rampart 
service in the admin page of tomcat.
In my build file I have added every libraries :        
rampart-policy-1.3.jar
   rampart/rampart-core-1.3.jar      rampart/rampart-trust-1.3.jar
   rampart/wss4j-1.5.3.jar
   rampart/opensaml-1.1.jar
   rampart/xmlsec-1.4.0.jar

I have added client.properties,client.jks, service.jks and 
service.properties in the conf directory on my client.
I use Rampart 1.3 with Axis2 1.3 and Tomcat 6.0.

Anyone can help me please ?



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


Error rampart : Must understand check failed

Posted by Fabien Couvert <fa...@bull.net>.
Hi all,

I have a problem with rampart 1.3 on axis2 1.3 on Tomcat 6.0.

I have this exception when i try to launch my client :

Caused by: org.apache.axis2.AxisFault: Must Understand check failed for 
header http://www.w3.org/2005/08/addressing

Currently I have added this line in my services.xml (server side):
        <module ref="rampart" />
        <parameter name="InflowSecurity">
          <action>
            <items>Encrypt</items>
            
<passwordCallbackClass>fr.bull.presto.recepteur.service.PWCBHandler</passwordCallbackClass>
            <decryptionPropFile>service.properties</decryptionPropFile>
          </action>
        </parameter>
        <parameter name="OutflowSecurity">
          <action>
            <items>Encrypt</items>
            <encryptionUser>client</encryptionUser>
            <encryptionPropFile>service.properties</encryptionPropFile>
          </action>
        </parameter>

And in client_axis2.xml :
<module ref="rampart"/>
    <parameter name="OutflowSecurity">
      <action>
        <items>Encrypt</items>
        <encryptionUser>service</encryptionUser>
        <encryptionPropFile>client.properties</encryptionPropFile>
      </action>
    </parameter>
    <parameter name="InflowSecurity">
      <action>
        <items>Encrypt</items>
        
<passwordCallbackClass>fr.bull.presto.recepteur.service.PWCBHandler</passwordCallbackClass>
        <decryptionPropFile>client.properties</decryptionPropFile>
      </action>
    </parameter>

In my aar jar I added service.jks and service.properties


How can I resolved this problem please ?

Thank you

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


Re: Error with rampart

Posted by Dimuthu Leelarathne <di...@wso2.com>.
Hello,

This error occurs in server side because service.properties cannot be
found by rampart. 

If you have build rampart samples you will see that service.properties
is inside the *.aar file. If yo have build samples you can look at one
of the following and see that.

samples/policy/build/service_repositories
or 
samples/basic/build/service_repositories

Thank you,
Dimuthu



On Mon, 2008-03-10 at 16:03 +0100, Fabien Couvert wrote:
> Hello,
> 
> I try to deploy rampart for my webservice but i have en error when I try 
> to send something in the client side :
> 
> Impossible to call remote service with url : 
> http://localhost:8080/axis2/services/MYservice
> .............................
> Caused by: org.apache.axis2.AxisFault: CryptoFactory: Cannot load 
> properties: service.properties
>        at 
> org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:486) 
> 
>        at 
> org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:343) 
> 
>        at 
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:389) 
> 
>        at 
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211) 
> 
>        at 
> org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
>        ... 5 more
> 
> 
> I had deployed Rampart on my webservices and I can show the rampart 
> service in the admin page of tomcat.
> In my build file I have added every libraries :        
> rampart-policy-1.3.jar
>    rampart/rampart-core-1.3.jar      rampart/rampart-trust-1.3.jar
>    rampart/wss4j-1.5.3.jar
>    rampart/opensaml-1.1.jar
>    rampart/xmlsec-1.4.0.jar
> 
> I have added client.properties,client.jks, service.jks and 
> service.properties in the conf directory on my client.
> I use Rampart 1.3 with Axis2 1.3 and Tomcat 6.0.
> 
> Anyone can help me please ?
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: wss4j-dev-help@ws.apache.org
> 


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