问题描述
大家好:我在用xfire构建ws-security中遇到了下面的异常:Exceptioninthread"main"org.codehaus.xfire.XFireRuntimeException:Couldnotinvokeservice..Nestedexceptionisorg.codehaus.xfire.fault.XFireFault:WSHandler:Encryption:errorduringmessageprocessingorg.apache.ws.security.WSSecurityException:Anunsupportedsignatureorencryptionalgorithmwasused(unsupportedkeytransportencryptionalgorithm:Nosuchalgorithm:http://www.w3.org/2001/04/xmlenc#rsa-1_5)org.codehaus.xfire.fault.XFireFault:WSHandler:Encryption:errorduringmessageprocessingorg.apache.ws.security.WSSecurityException:Anunsupportedsignatureorencryptionalgorithmwasused(unsupportedkeytransportencryptionalgorithm:Nosuchalgorithm: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:jdkjrelibext中。这些我都做了,可是还是出现这个异常。请各位帮忙指导,不胜感激。我的q.q是362158294。另外,怎么样把bcprov-jdk15-133.jar加入到类路径?