Hi Stoil,

For this you have to patch your jdk with the JCE tool provided by oracle. It
is a limitation with default jdk allowd key size. Please follow the below
guide [1],

[1]
http://blog.rampartfaq.com/2009/08/faq-001-javasecurityinvalidkeyexception.html

<http://blog.rampartfaq.com/2009/08/faq-001-javasecurityinvalidkeyexception.html>
thanks,
SupunM
On Tue, May 3, 2011 at 10:07 AM, stoil valchkov <[email protected]> wrote:

> I've tried it, but got test failures:
>
> testEncryptionDecryptionRSA15(wssec.TestWSSecurityNew2)  Time elapsed:
> 0.283 sec  <<< ERROR!
> org.apache.ws.security.WSSecurityException: Cannot encrypt data; nested
> exception is:
>         org.apache.xml.security.encryption.XMLEncryptionException: Illegal
> key size or default parameters
> Original Exception was java.security.InvalidKeyException: Illegal key size
> or default parameters
>         at
> org.apache.ws.security.message.WSSecEncrypt.doEncryption(WSSecEncrypt.java:608)
>         at
> org.apache.ws.security.message.WSSecEncrypt.doEncryption(WSSecEncrypt.java:461)
>         at
> org.apache.ws.security.message.WSSecEncrypt.encryptForInternalRef(WSSecEncrypt.java:350)
>         at
> org.apache.ws.security.message.WSSecEncrypt.build(WSSecEncrypt.java:311)
>         at
> wssec.TestWSSecurityNew2.testEncryptionDecryptionRSA15(TestWSSecurityNew2.java:177)
> Caused by: org.apache.xml.security.encryption.XMLEncryptionException:
> Illegal key size or default parameters
> Original Exception was java.security.InvalidKeyException: Illegal key size
> or default parameters
>         at org.apache.xml.security.encryption.XMLCipher.encryptData(Unknown
> Source)
>         at org.apache.xml.security.encryption.XMLCipher.encryptData(Unknown
> Source)
>         at
> org.apache.xml.security.encryption.XMLCipher.encryptElement(Unknown Source)
>         at org.apache.xml.security.encryption.XMLCipher.doFinal(Unknown
> Source)
>         at
> org.apache.ws.security.message.WSSecEncrypt.doEncryption(WSSecEncrypt.java:602)
>         ... 32 more
>
> testSAMLUnsignedSenderVouches(wssec.TestWSSecurityNewST1)  Time elapsed:
> 0.01 sec  <<< ERROR!
> java.lang.NullPointerException
>         at
> org.apache.ws.security.saml.SAMLIssuerImpl.newAssertion(SAMLIssuerImpl.java:145)
>         at
> wssec.TestWSSecurityNewST1.testSAMLUnsignedSenderVouches(TestWSSecurityNewST1.java:121)
>
> testSAMLSignedSenderVouches(wssec.TestWSSecurityNewST2)  Time elapsed:
> 0.005 sec  <<< ERROR!
> java.lang.NullPointerException
>         at
> org.apache.ws.security.saml.SAMLIssuerImpl.newAssertion(SAMLIssuerImpl.java:145)
>         at
> wssec.TestWSSecurityNewST2.testSAMLSignedSenderVouches(TestWSSecurityNewST2.java:133)
>
>
> On Mon, May 2, 2011 at 8:30 PM, Afkham Azeez <[email protected]> wrote:
>
>> Do an online build with tests.
>>
>> On Mon, May 2, 2011 at 10:56 PM, stoil valchkov <[email protected]>wrote:
>>
>>>  I've tried to build carbon trunk but faced some issues -
>>> qpid failed to build due to missing
>>> carbon\dependencies\qpid\java\management\build.xml ,
>>>
>>> missing dependency:
>>> org.apache.commons:commons-vfs2:test-jar:tests:2.0-wso2v3
>>> probably more.
>>>
>>> I followed http://engwar.com/post/378 , probably some more intermediate
>>> steps are needed?
>>>
>>> Thanks,
>>> Stoil
>>>
>>> _______________________________________________
>>> Carbon-dev mailing list
>>> [email protected]
>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>>
>>
>>
>> --
>> *Afkham Azeez*
>> Senior Software Architect & Senior Manager; WSO2, Inc.; http://wso2.com,
>> *
>> *
>> *Member; Apache Software Foundation; 
>> **http://www.apache.org/*<http://www.apache.org/>
>> *
>> email: **[email protected]* <[email protected]>* cell: +94 77 3320919
>> blog: **http://blog.afkham.org* <http://blog.afkham.org>*
>> twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
>> *
>> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
>> *
>> *
>> *Lean . Enterprise . Middleware*
>>
>>
>> _______________________________________________
>> Carbon-dev mailing list
>> [email protected]
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
> _______________________________________________
> Carbon-dev mailing list
> [email protected]
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
Supun Malinga,

Software Engineer,
WSO2 Inc.
http://wso2.com
http://wso2.org
email - [email protected] <[email protected]>
mobile - 071 56 91 321
_______________________________________________
Carbon-dev mailing list
[email protected]
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to