On 8/4/07, Pavan Madiraju <[EMAIL PROTECTED]> wrote: > Thanks Dimuthu, > Does anyone have example code for WS security using only digital signature ?
Please see policy/sample02 in the Rampart distro. Thanks, Ruchith > > Tried to modify the simple example ( Sample4) to implement one way security. > Client has only OutflowSecurity and service has only InflowSecurity. > Can I do this using Rampart 1.2 ? > > Getting the following error on the client side > > \[java] Exception in thread "main" org.apache.axis2.AxisFault: > WSDoAllReceiver: security processing fail > and recieving the following error on the server > <faultstring>WSDoAllReceiver: security processing > failed</faultstring> > > > > > On 8/2/07, Dimuthu <[EMAIL PROTECTED]> wrote: > > Hi Pavan, > > > > I think this issue is related to > > https://issues.apache.org/jira/browse/RAMPART-10 > > > > Regards, > > Dimuthu > > > > On Thu, 2007-08-02 at 23:29 -0400, Pavan Madiraju wrote: > > > Hi, > > > I am trying to implement non-repudiation with signature with Axis2 > > > 1.2 & Rampart 1.2. > > > > > > Here is my service.xml enabling rampart > > > > > > <module ref="rampart" /> > > > <parameter name="InflowSecurity"> > > > <action> > > > <items>Signature</items> > > > > > > <signaturePropFile>service.properties</signaturePropFile> > > > </action> > > > </parameter> > > > > > > I have placed my service.properties file in > > > > > > .... > > > \base_v61\profiles\AppSrv01\installedApps\NW815856Node02Cell\axis2_war.ear\axis2.war\WEB-INF\classes > > > folder > > > > > > service.properties contents are > > > org.apache.ws.security.crypto.provider=org.apache.ws.security.components.crypto.Merlin > > > org.apache.ws.security.crypto.merlin.keystore.type=jks > > > org.apache.ws.security.crypto.merlin.keystore.password=servertrust > > > org.apache.ws.security.crypto.merlin.keystore.alias=wasclient > > > org.apache.ws.security.crypto.merlin.alias.password=servertrust > > > org.apache.ws.security.crypto.merlin.file=servertrust.jks > > > > > > I am getting the following error > > > > > > [8/2/07 8:28:10:326 EDT] 00000027 SystemErr R at > > > com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214) > > > [8/2/07 8:28:10:326 EDT] 00000027 SystemErr R at > > > com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113) > > > [8/2/07 8:28:10:326 EDT] 00000027 SystemErr R at > > > com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152) > > > [8/2/07 8:28:10:326 EDT] 00000027 SystemErr R at > > > com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213) > > > [8/2/07 8:28:10:326 EDT] 00000027 SystemErr R at > > > com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195) > > > [8/2/07 8:28:10:326 EDT] 00000027 SystemErr R at > > > com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136) > > > [8/2/07 8:28:10:326 EDT] 00000027 SystemErr R at > > > com.ibm.io.async.ResultHandler.complete(ResultHandler.java:194) > > > [8/2/07 8:28:10:326 EDT] 00000027 SystemErr R at > > > com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:741) > > > [8/2/07 8:28:10:326 EDT] 00000027 SystemErr R at > > > com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:863) > > > [8/2/07 8:28:10:326 EDT] 00000027 SystemErr R at > > > com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1510) > > > [8/2/07 8:28:10:326 EDT] 00000027 SystemErr R Caused by: > > > org.apache.ws.security.components.crypto.CredentialException: Failed > > > to load credentials. Inner Exception: [DerInputStream.getLength(): > > > lengthTag=109, too big.] > > > at > > > org.apache.ws.security.components.crypto.AbstractCrypto.load(AbstractCrypto.java:141) > > > at > > > org.apache.ws.security.components.crypto.AbstractCrypto.<init>(AbstractCrypto.java:97) > > > at > > > org.apache.ws.security.components.crypto.Merlin.<init>(Merlin.java:65) > > > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > > > Method) > > > at > > > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:67) > > > at > > > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) > > > > > > > > > > > > > > > at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136) > > > at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:194) > > > at > > > com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:741) > > > at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:863) > > > at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1510) > > > > > > [8/2/07 8:28:10:346 EDT] 00000027 SystemErr R at > > > org.apache.ws.security.components.crypto.AbstractCrypto.load(AbstractCrypto.java:141) > > > [8/2/07 8:28:10:346 EDT] 00000027 SystemErr R at > > > org.apache.ws.security.components.crypto.AbstractCrypto.<init>(AbstractCrypto.java:97) > > > [8/2/07 8:28:10:346 EDT] 00000027 SystemErr R at > > > org.apache.ws.security.components.crypto.Merlin.<init>(Merlin.java:65) > > > [8/2/07 8:28:10:346 EDT] 00000027 SystemErr R ... 40 more > > > [8/2/07 8:28:10:366 EDT] 00000027 SystemErr R > > > java.lang.InstantiationException: > > > org.apache.ws.security.components.crypto.Merlin > > > [8/2/07 8:28:10:366 EDT] 00000027 SystemErr R at > > > java.lang.Class.newInstanceImpl(Native Method) > > > [8/2/07 8:28:10:366 EDT] 00000027 SystemErr R at > > > java.lang.Class.newInstance(Class.java:1263) > > > [8/2/07 8:28:10:366 EDT] 00000027 SystemErr R at > > > org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:219) > > > [8/2/07 8:28:10:366 EDT] 00000027 SystemErr R at > > > org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:176) > > > [8/2/07 8:28:10:366 EDT] 00000027 SystemErr R at > > > org.apache.ws.security.handler.WSHandler.loadSignatureCrypto(WSHandler.java:347) > > > > > > > > > Did anyone encounter this error before ? > > > > > > Please help. > > > > > > Thanks, > > > Pavan > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > -- > > http://wso2.org > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- www.ruchith.org www.wso2.org --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
