无法创建加密类org.apache.ws.security.components.crypto.Merlin [英] Cannot create Crypto class org.apache.ws.security.components.crypto.Merlin

查看:181
本文介绍了无法创建加密类org.apache.ws.security.components.crypto.Merlin的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用eclipse和JBoss WildFly 10创建了一个安全的cxf Web服务。

I have created a secured cxf web service using eclipse and JBoss WildFly 10.

然后,我使用cxf 3.1.4创建了一个新项目来测试安全的Web服务,并且工作正常

Then I created a new project using cxf 3.1.4 for testing the secured web service and It's working fine.

最后,我决定在具有相同java / eclipse / cxf版本的虚拟机中运行客户端项目,并且无法引发此异常:

Finally I decided to run the client project in a virtual machine that has the same java/eclipse/cxf versions and fails throwing this exception:


org.apache.cxf.interceptor.Fault:无法创建加密类org.apache.ws.security.components.crypto.Merlin

org.apache.cxf.interceptor.Fault: Cannot create Crypto class org.apache.ws.security.components.crypto.Merlin

原始异常为组织.apache.wss4j.common.ext.WSSecurityException:无法加载凭据。

Original Exception was org.apache.wss4j.common.ext.WSSecurityException: Failed to load credentials.

原始异常为java.io.IOException:展开私有密钥的异常-java.security.InvalidKeyException:密钥大小非法

Original Exception was java.io.IOException: exception unwrapping private key - java.security.InvalidKeyException: Illegal key size

有人知道如何解决吗?

推荐答案

听起来像您需要安装无限强度的安全罐,例如:

Sounds like you need to install the unlimited strength security jars, e.g.:

http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html

这篇关于无法创建加密类org.apache.ws.security.components.crypto.Merlin的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆