【问题标题】:rampart encryption error when execute WSO2 sample 100 (a WS-Security sample)执行 WSO2 示例 100(WS-Security 示例)时的壁垒加密错误
【发布时间】:2012-10-24 02:19:32
【问题描述】:

当我执行 WSO2 示例 100(WS-Security 示例)http://wso2.org/project/esb/java/4.0.3/docs/samples/qos_mediation_samples.html)时,我的 WSO2-ESB 抛出以下错误消息:

ERROR - Axis2Sender Unexpected error during sending message out org.apache.axis2.AxisFault: Error in encryption
    At org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:117)
....
    org.apache.xml.security.encryption.XMLEncryptionException: Illegal key size or default parameters

我的 WSO2-AS 抛出:

ERROR {org.apache.axis2.engine.AxisEngine} -  Missing wsse:Security header in request org.apache.axis2.AxisFault: Missing wsse:Security header in request

什么是“非法密钥大小或默认参数”是什么意思?如何解决此错误?

顺便说一句,我使用的是包含 JCE API 和 local_policy.jar、US_export_policy.jar 等的 JDK 1.6。所以,我想这不是 JCE 问题。 (http://wso2.org/node/2520/print)

【问题讨论】:

    标签: ws-security wso2esb rampart


    【解决方案1】:

    您可能需要修补与您的 jdk 版本相关的 local_policy.jar 和 US_export_policy.jar。

    请参考http://blog.rampartfaq.com/2009/08/faq-001-javasecurityinvalidkeyexception.html

    -- 提利尼

    【讨论】:

      【解决方案2】:

      在cmd中输入:java -version,查看这个版本是否和wso2启动时显示的版本一致。

      如果这些版本不相等,请修改路径并将 %JAVA_HOME%\bin 放在 %SystemRoot%\system32 之前。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2014-07-31
        • 2011-05-23
        • 1970-01-01
        • 2014-06-18
        • 2011-03-28
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多