You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rampart-dev@ws.apache.org by Nasreen Laghari <la...@hotmail.com> on 2007/10/11 11:06:42 UTC
JSP
Hi there,
i am trying to implement the rampart basic sample 07 with encryption and signature. I converted the client file from the sample to a JSP client, and deployed the SimpleService web service(which just does an echo) in axis2. I have put the properties file and keys (the ones that come with rampart 1.3) in the directory:
C:\Tomcat6\webapps\axis2\WEB-INF
and i have also compiled the PWCBhandler class and put it inside the service folder. Next, in my axis2.xml file, i added:
<axisconfig name="AxisJava2.0"><module ref="rampart" /> <parameter name="OutflowSecurity"> <action> <items>Timestamp Encrypt Signature</items> <user>client</user> <passwordCallbackClass>seven.PWCBHandler</passwordCallbackClass> <signaturePropFile>client.properties</signaturePropFile> <signatureKeyIdentifier>DirectReference</signatureKeyIdentifier> <encryptionKeyIdentifier>SKIKeyIdentifier</encryptionKeyIdentifier> <encryptionUser>service</encryptionUser> </action> </parameter>
<parameter name="InflowSecurity"> <action> <items>Timestamp Encrypt Signature</items> <passwordCallbackClass>seven.PWCBHandler</passwordCallbackClass> <signaturePropFile>client.properties</signaturePropFile> </action> </parameter>
and put this under global modules in the axis2.xml file:
<module ref="rampart" />however, once i get the following error in tcpmon:
the fault string says the pwcbhandler.class could not be instantiated, but i have put that in ther service folder.
After that i'm getting nothing in tcpmon and following exception in browser:
org.apache.axis2.AxisFault: CryptoFactory: Cannot load properties: client.properties
on a seperate note, when trying to implement this example, on the axis2 service page, i see random anonWebservices and self generated anon serivces in my tomcat/axis2/services folder. i have attached a print screen of this
Have i put the properties file/keys file in the wrong place ?
Regards
_________________________________________________________________
Boo! Scare away worms, viruses and so much more! Try Windows Live OneCare!
http://onecare.live.com/standard/en-us/purchase/trial.aspx?s_cid=wl_hotmailnews