当我执行WS-Security示例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“非法密钥大小或默认参数”是什么意思?如何修复此错误?
顺便说一句,我使用的是JDK1.6,它包含了JCE和local_policy.jar、US_export_policy.jar等。所以,我猜这不是JCE的问题。(http://wso2.org/node/2520/print)
发布于 2012-11-03 20:09:30
您可能需要为与您的local_policy.jar版本相关的US_export_policy.jar和jdk打补丁。
请参考http://blog.rampartfaq.com/2009/08/faq-001-javasecurityinvalidkeyexception.html
--蒂里尼
发布于 2015-09-30 19:31:40
键入cmd: java -version,检查该版本是否与wso2启动时显示的版本相同。
如果这些版本不相同,请修改路径并将%JAVA_HOME%\bin放在%SystemRoot%\system32之前。
https://stackoverflow.com/questions/13042112
复制相似问题