Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-9105

"ClassNotFoundException: org.bouncycastle.jce.provider.BouncyCastleProvider" when using SAML and Audit provider

XMLWordPrintable

    • Hide

      In modules/system/layers/base/org/picketlink/federation/main/module.xml, add org.bouncycastle as a dependency, i.e.,

                  <module name="org.bouncycastle" />
      
      Show
      In modules/system/layers/base/org/picketlink/federation/main/module.xml, add org.bouncycastle as a dependency, i.e., <module name= "org.bouncycastle" />

      PicketLink federation can not find Bouncy Castle Provider and throws ClassNotFoundException hitting the same issue of https://issues.jboss.org/browse/PLINK-718.

      Stack Trace:

      2017-02-24 09:38:29,741 DEBUG [org.picketlink.common] (ServerService Thread Pool -- 74) The provider BC could not be added: : java.lang.ClassNotFoundException: org.bouncycastle.jce.provider.BouncyCastleProvider from [Module "org.picketlink.federation:main" from local module loader @47d384ee (finder: local module finder @2d6a9952 (roots: /opt/jboss/EAP7/modules,/opt/jboss/EAP7/modules/system/layers/base/.overlays/layer-base-jboss-eap-7.0.3.CP,/opt/jboss/EAP7/modules/system/layers/base))]
      	at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:198)
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:363)
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:351)
      	at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:93)
      	at java.lang.Class.forName0(Native Method)
      	at java.lang.Class.forName(Class.java:264)
      	at org.picketlink.identity.federation.core.util.ProvidersUtil.addJceProvider(ProvidersUtil.java:115)
      	at org.picketlink.identity.federation.core.util.ProvidersUtil.access$100(ProvidersUtil.java:34)
      	at org.picketlink.identity.federation.core.util.ProvidersUtil$1.run(ProvidersUtil.java:47)
      	at org.picketlink.identity.federation.core.util.ProvidersUtil$1.run(ProvidersUtil.java:42)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at org.picketlink.identity.federation.core.util.ProvidersUtil.ensure(ProvidersUtil.java:42)
      	at org.picketlink.identity.federation.core.util.XMLSignatureUtil.<clinit>(XMLSignatureUtil.java:100)
      	at org.picketlink.identity.federation.bindings.wildfly.sp.SPFormAuthenticationMechanism.processConfiguration(SPFormAuthenticationMechanism.java:825)
      	at org.picketlink.identity.federation.bindings.wildfly.sp.SPFormAuthenticationMechanism.startPicketLink(SPFormAuthenticationMechanism.java:701)
      	at org.picketlink.identity.federation.bindings.wildfly.sp.SPFormAuthenticationMechanism.<init>(SPFormAuthenticationMechanism.java:186)
      	at org.picketlink.identity.federation.bindings.wildfly.sp.SPFormAuthenticationMechanism.<init>(SPFormAuthenticationMechanism.java:190)
      	at org.picketlink.identity.federation.bindings.wildfly.sp.SPServletExtension$1.create(SPServletExtension.java:107)
      	at io.undertow.servlet.core.DeploymentManagerImpl.setupSecurityHandlers(DeploymentManagerImpl.java:361)
      	at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:204)
      	at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:100)
      	at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:82)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	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)
      	at org.jboss.threads.JBossThread.run(JBossThread.java:320)
      

              Unassigned Unassigned
              rhn-support-hokuda Hisanobu Okuda
              Ondrej Kotek Ondrej Kotek
              Ondrej Kotek Ondrej Kotek
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: