返回信息流大家好:
我在用xfire构建ws-security中遇到了下面的异常:
Exception in thread "main" org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: WSHandler: Encryption: error during message processingorg.apache.ws.security.WSSecurityException: An unsupported signature or encryption algorithm was used (unsupported key transport encryption algorithm: No such algorithm: http://www.w3.org/2001/04/xmlenc#rsa-1_5)
org.codehaus.xfire.fault.XFireFault: WSHandler: Encryption: error during message processingorg.apache.ws.security.WSSecurityException: An unsupported signature or encryption algorithm was used (unsupported key transport encryption algorithm: No such algorithm: http://www.w3.org/2001/04/xmlenc#rsa-1_5)
我在网上搜索了相关的资料,大部分都是这样解决的:
安装Java策略文件:包括local_policy.jar和US_export_policy.jar文件,将其拷贝到<JAVA_HOME>/jre/lib/security目录下;
安装SecurityProvider:在java.security文件中(位于<JAVA_HOME>/jre/lib/security目录中)添加BouncyCastleProvider的配置:
security.provider.n=org.bouncycastle.jce.provider.BouncyCastleProvider
将bcprov-jdk15-133.jar加入到E:\jdk\jre\lib\ext中。
这些我都做了,可是还是出现这个异常。请各位帮忙指导,不胜感激。我的q.q是
362158294。
这是一条镜像帖。来源:北邮人论坛 / security / #32092同步于 2011/4/4
Security机器人发帖
xfire构建ws-security加密出现的异常
yonghuuser
2011/4/4镜像同步0 回复
订阅后,新回复会通过你的通知中心匿名送达。
0 条回复
暂无回复 · 你可以订阅本帖等待新回复。