以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 XML安全 』  (http://bbs.xml.org.cn/list.asp?boardid=27)
----  在运行 apache xml security包里的加密例子时遇到如下问题  (http://bbs.xml.org.cn/dispbbs.asp?boardid=27&rootid=&id=27980)


--  作者:sunrisefe
--  发布时间:3/1/2006 5:29:00 PM

--  在运行 apache xml security包里的加密例子时遇到如下问题
when i run the  \xml-security-bin-1_2_1\xml-security-1_2_1\src_samples\org\apache\xml\security\samples\encryption\Encrypter.java error occured:  
**************************************the error as follows*************************************************
org.apache.xml.security.encryption.XMLEncryptionException: Cannot find any provider supporting DESedeWrap Original Exception was java.security.NoSuchAlgorithmException: Cannot find any provider supporting DESedeWrap
 at org.apache.xml.security.encryption.XMLCipher.getInstance(Unknown Source)
 at src.Encrypter.main(Encrypter.java:183)
java.security.NoSuchAlgorithmException: Cannot find any provider supporting DESedeWrap
 at javax.crypto.Cipher.getInstance(DashoA6275)
 at org.apache.xml.security.encryption.XMLCipher.getInstance(Unknown Source)
 at src.Encrypter.main(Encrypter.java:183)
Exception in thread "main"
*************************************the error end****************************************

so dear all friends,can you tell me the exact reason? thank you in advance!


--  作者:sunrisefe
--  发布时间:3/3/2006 8:37:00 AM

--  
关注ING
--  作者:sunrisefe
--  发布时间:3/3/2006 11:24:00 AM

--  
自己来回答。答案如下:
我用的是xml-security-bin-1_2_1, JDK刚开始用的是1.42的,找了半天才发现可能是版本的问题,结果我把JDK的版本换成1.40后就没有报那样的错误了。 谢谢大家
W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
46.875ms