Dan,

I see the following exception once I replace the wss4j jar as mentioned below.

java.lang.NoClassDefFoundError: org/bouncycastle/asn1/x509/X509Name
        
org.apache.ws.security.components.crypto.CryptoBase.getAliasForX509Cert(CryptoBase.java:302)
        
org.apache.ws.security.components.crypto.CryptoBase.getAliasForX509Cert(CryptoBase.java:272)
        
org.apache.ws.security.message.token.SecurityTokenReference.getX509IssuerSerialAlias(SecurityTokenReference.java:560)
        
org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:202)
        
org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:107)
        
org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:87)
        
org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:326)
        
org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:243)
        
org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor.handleMessage(WSS4JInInterceptor.java:179)
        
org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor.handleMessage(WSS4JInInterceptor.java:77)

Is wss4j using bouncycastle classes ?

Thanks,
Bharath

-----Original Message-----
From: Daniel Kulp [mailto:[email protected]] 
Sent: Thursday, June 11, 2009 3:33 PM
To: [email protected]
Cc: bharath thippireddy
Subject: Re: WS-Security RSA Excrytion exception..

On Thu June 11 2009 3:22:00 pm bharath thippireddy wrote:
> Dan , Can you please let me know how to pull in this fix?
 
Just replace your wss4j jar with the latest snapshot from:

http://people.apache.org/repo/m2-snapshot-
repository/org/apache/ws/security/wss4j/1.5.8-SNAPSHOT/

That should do it.

Dan


> Thanks and regards,
> Bharath
>
> -----Original Message-----
> From: Daniel Kulp [mailto:[email protected]]
> Sent: Thursday, June 11, 2009 1:19 PM
> To: Werner Dittmann
> Cc: [email protected]; [email protected]; bharath thippireddy
> Subject: Re: WS-Security RSA Excrytion exception..
>
> On Thu June 11 2009 12:56:20 pm Daniel Kulp wrote:
> > On Thu June 11 2009 7:31:19 am Daniel Kulp wrote:
> > > On Thu June 11 2009 7:08:31 am Werner Dittmann wrote:
> > > > Daniel Kulp schrieb:
> >
> > Thus, for those URI's, xmlsec always uses the provider in the JDK.   IMO,
> > WSS4J should match this, preferably by just calling into JCEMapper so it
> > always will use the same mapping.
> >
> > If there are no objections, I'll change the code to do just that.
>
> Just discovered Colm had already done this for trunk.   Thus, just needed
> to be pulled back to 1.5.x branch.
>
> --
> Daniel Kulp
> [email protected]
> http://www.dankulp.com/blog

--
Daniel Kulp
[email protected]
http://www.dankulp.com/blog

Reply via email to