Hi - I'll need to look into it next week, I'll be traveling but hopefully it will be a simple fix, I guess BoumcyCastle would need to be set up even with Java 8 for this algorithm...
Sergey

On 14/11/14 23:47, jon.g.massey wrote:
Git cloned latest from https://git-wip-us.apache.org/repos/asf/cxf.git
Building on Win7 using JDK8 64 bit and latest maven2.
Calling maven from top-level cxf dir
mvn -Pfastinstall completes sucessfully, but when run with tests enabled,
the following tests in cxf.rt.rs.security.jose fail:
JweCompactReaderWriterTest.testEncryptDecryptAesGcmWrapA128CBCHS256:134 »
Security
JweCompactReaderWriterTest.testEncryptDecryptAesWrapA128CBCHS256:111 »
Security

with the following errors
java.lang.SecurityException: java.lang.SecurityException:
java.security.NoSuchAlgorithmException: Cannot find any provider supporting
AES/CBC/PKCS7Padding
         at javax.crypto.Cipher.getInstance(Cipher.java:535)
         at
org.apache.cxf.common.util.crypto.CryptoUtils.initCipher(CryptoUtils.java:522)
         at
org.apache.cxf.common.util.crypto.CryptoUtils.processBytes(CryptoUtils.java:487)
         at
org.apache.cxf.common.util.crypto.CryptoUtils.encryptBytes(CryptoUtils.java:418)
         at
org.apache.cxf.rs.security.jose.jwe.AbstractJweEncryption.encrypt(AbstractJweEncryption.java:97)
         at
org.apache.cxf.rs.security.jose.jwe.JweCompactReaderWriterTest.testEncryptDecryptAesGcmWrapA128CBCHS256(JweCompactReaderWriterTest.java:134)

testEncryptDecryptAesWrapA128CBCHS256(org.apache.cxf.rs.security.jose.jwe.JweCompactReaderWriterTest)
Time elapsed: 0.008 sec  <<< ERROR!
java.lang.SecurityException: java.lang.SecurityException:
java.security.NoSuchAlgorithmException: Cannot find any provider supporting
AES/CBC/PKCS7Padding
         at javax.crypto.Cipher.getInstance(Cipher.java:535)
         at
org.apache.cxf.common.util.crypto.CryptoUtils.initCipher(CryptoUtils.java:522)
         at
org.apache.cxf.common.util.crypto.CryptoUtils.processBytes(CryptoUtils.java:487)
         at
org.apache.cxf.common.util.crypto.CryptoUtils.encryptBytes(CryptoUtils.java:418)
         at
org.apache.cxf.rs.security.jose.jwe.AbstractJweEncryption.encrypt(AbstractJweEncryption.java:97)
         at
org.apache.cxf.rs.security.jose.jwe.JweCompactReaderWriterTest.testEncryptDecryptAesWrapA128CBCHS256(JweCompactReaderWriterTest.java:111)

I've installed the JCE unlimited length jars into my
$JAVA_HOME$\lib\security and tried again to no avail - could this be a
bouncy castle problem?

I need to run the tests as I wish to use Apache CXF as one of my test cases
for my test prioritisation research.

Many thanks,
Jon



--
View this message in context: 
http://cxf.547215.n5.nabble.com/build-help-cxf-rt-rs-security-jose-test-failures-tp5751186.html
Sent from the cxf-user mailing list archive at Nabble.com.



--
Sergey Beryozkin

Reply via email to