You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Pavan Madiraju <ma...@gmail.com> on 2007/08/03 05:29:37 UTC

non-repudiation with signature using rampart 1.2

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: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Tomcat 5.5.23/Rampart 1.2 not working for digital signature validation (Policy example 2)

Posted by Ruchith Fernando <ru...@gmail.com>.
Please see here :
http://marc.info/?l=axis-user&m=118671612624113&w=2

Thanks,
Ruchith

On 8/10/07, Ford, Jennifer M. <JE...@southernco.com> wrote:
> I've just discovered that digital signature validation appears to work
> with Tomcat 5.0.28, but not with Tomcat 5.5.23.   Is this a known bug or
> should I enter a ticket?
>
> Jennifer
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
www.ruchith.org
www.wso2.org

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


Tomcat 5.5.23/Rampart 1.2 not working for digital signature validation (Policy example 2)

Posted by "Ford, Jennifer M." <JE...@SOUTHERNCO.COM>.
I've just discovered that digital signature validation appears to work
with Tomcat 5.0.28, but not with Tomcat 5.5.23.   Is this a known bug or
should I enter a ticket?

Jennifer

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


Re: non-repudiation with signature using rampart 1.2

Posted by Ruchith Fernando <ru...@gmail.com>.
On 8/4/07, Pavan Madiraju <ma...@gmail.com> 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 <mu...@apache.org> 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: axis-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > >
> > --
> > http://wso2.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
www.ruchith.org
www.wso2.org

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


Re: non-repudiation with signature using rampart 1.2

Posted by Pavan Madiraju <ma...@gmail.com>.
Thanks Dimuthu,
Does anyone have example code for WS security using only digital signature ?

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 <mu...@apache.org> 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: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> --
> http://wso2.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

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


Re: non-repudiation with signature using rampart 1.2

Posted by Dimuthu <mu...@apache.org>.
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: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 
-- 
http://wso2.org


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