添加BouncyCastleProvider的WSConfig失败

时间:2015-11-25 17:33:51

标签: jboss bouncycastle wss4j

如果我将loglevel转为debug,我会看到以下日志语句:

|DEBUG|service thread 1-15|ws.security.WSSConfig||The provider FirstProvider was added at position: 3

|DEBUG|service thread 1-15|security.util.Loader||org.bouncycastle.jce.provider.BouncyCastleProvider from [Module "org.jboss.as.webservices.server.integration:main" ...
    at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213)
    at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459)
    at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408)
    at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389)
    at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134)
    at org.apache.ws.security.util.Loader.loadClass(Loader.java:252)
    at org.apache.ws.security.util.Loader.loadClass(Loader.java:245)
    at org.apache.ws.security.WSSConfig.addJceProvider(WSSConfig.java:868)
    at org.apache.ws.security.WSSConfig$5.run(WSSConfig.java:446)
    at org.apache.ws.security.WSSConfig$5.run(WSSConfig.java:443)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.ws.security.WSSConfig.init(WSSConfig.java:443)
    at org.jboss.wsf.stack.cxf.config.CXFStackConfig.<init>(CXFStackConfigFactory.java:61)
    at org.jboss.wsf.stack.cxf.config.CXFStackConfigFactory.getStackConfig(CXFStackConfigFactory.java:45)
    at org.jboss.ws.common.management.AbstractServerConfig.create(AbstractServerConfig.java:272)
    at org.jboss.as.webservices.config.ServerConfigImpl.create(ServerConfigImpl.java:62)
    at org.jboss.as.webservices.service.ServerConfigService.start(ServerConfigService.java:72)
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1980)
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1913)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)

|DEBUG|service thread 1-15|ws.security.WSSConfig||The provider SecondProvider was added at position: 8

这是因为WSS4J库。我想知道我是否需要采取任何行动。如果我理解正确2添加提供商但添加bouncycastle失败。我知道我可以将bc库添加到jboss或jre但是这真的有必要吗?它只是一个调试语句的事实让我也想知道是否有必要。也许有人知道这实际意味着什么,可以帮助我。

1 个答案:

答案 0 :(得分:2)

WSS4J尝试安装BouncyCastle提供程序(如果可用),并记录DEBUG级别错误(如果不可用)(此行为将在下一个主要版本中更改)。如果您不需要安装BouncyCastle,则无需担心。