Websphere中的充气城堡集成导致以下错误 [英] Bouncy-castle integration in Websphere causing the following error

查看:318
本文介绍了Websphere中的充气城堡集成导致以下错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在IBM Websphere App Server 7中配置bouncycastle,我的JRE版本是1.6.尝试运行代码时出现以下错误:

I am trying to configure bouncycastle in IBM Websphere App Server 7, my JRE Version is 1.6. I am getting the following error when trying to run the code:

Caused by: java.lang.ClassNotFoundException: sun.security.provider.Sun
                at java.net.URLClassLoader.findClass(URLClassLoader.java:434)
                at com.ibm.ws.bootstrap.ExtClassLoader.findClass(ExtClassLoader.java:191)
                at java.lang.ClassLoader.loadClass(ClassLoader.java:660)
                at com.ibm.ws.bootstrap.ExtClassLoader.loadClass(ExtClassLoader.java:111)
                at java.lang.ClassLoader.loadClass(ClassLoader.java:626)
                at com.ibm.ws.classloader.ProtectionClassLoader.loadClass(ProtectionClassLoader.java:62)
                at com.ibm.ws.classloader.ProtectionClassLoader.loadClass(ProtectionClassLoader.java:58)
                at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:511)
                at java.lang.ClassLoader.loadClass(ClassLoader.java:626)
                at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:543)
                at java.lang.ClassLoader.loadClass(ClassLoader.java:626)
                ... 47 more

我尝试了以下操作:

  1. 将bcprov-jdk15-145放入jre/lib/ext
  2. 将bouncycastle-1.20放置在项目lib中.
  3. 在java.security文件的末尾添加以下条目- security.provider.10 = org.bouncycastle.jce.provider.BouncyCastleProvider
  4. 将Sun JSSE jar放置在服务器的运行时文件夹中
  1. Placing bcprov-jdk15-145 in jre/lib/ext
  2. Placing bouncycastle-1.20 in project lib.
  3. Adding the following entry at the end in java.security file - security.provider.10=org.bouncycastle.jce.provider.BouncyCastleProvider
  4. Placed Sun JSSE jars in server's Runtime Folder

推荐答案

第三方JCE提供者(包括Sun JCE)

Third party JCE Providers (including Sun JCE) are not supported in IBM WebSphere Application Server.

如果继续使用它们,请为服务器中的奇怪问题做好准备...

Get ready for weird issues in your server if you continue using them...

这篇关于Websphere中的充气城堡集成导致以下错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆