2015-11-25 39 views
0

我看到下面的日誌語句,如果我打開日誌級別調試:WSCONFIG加入BouncyCastleProvider失敗

|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

WSS4J嘗試安裝BouncyCastle提供程序(如果可用),並記錄該DEBUG級別錯誤(如果不是這種行爲將在下一個主要版本中更改)。如果您不需要安裝BouncyCastle,則無需擔心。