Uploaded image for project: 'EJBCA'
  1. EJBCA
  2. ECA-8278

WildFly 14 on Java 11 loads Bouncy Castle from wrong classloader (wildfly instead of ejbca)

    Details

    • Type: Task
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Since WildFly decided to bundle BouncyCastle, we have a check to verify that the BC provider is loaded from the EJBCA classloader and not using the bundled version in WildFly (which is almost always older which will break things).

      Running WildFly 14 (which is the lowest version working with Java 11). Running EJBCA (trunk as of june 2019) on WF 14 with Java 11 triggers our warning.

       


      13:56:34,925 ERROR [org.ejbca.core.ejb.StartupSingletonBean] (ServerService Thread Pool – 58) BouncyCastle is not loaded by an EJBCA classloader, version conflict is likely: org.bouncycastle.jcajce.provider.asymmetric.x509.X509CertificateObject:
      org.bouncycastle.jcajce.provider.asymmetric.x509.X509CertificateObject(32793e93).ClassLoader=ModuleClassLoader for Module "org.bouncycastle" from local module loader @2794eab6 (finder: local module finder @6340e5f0 (roots: /home/user/wildfly-14.0.1.Final/modules,/home/user/wildfly-14.0.1.Final/modules/system/layers/base))
      ++++CodeSource: (jar:file:/home/user/wildfly-14.0.1.Final/modules/system/layers/base/org/bouncycastle/main/bcprov-jdk15on-1.60.jar!/ [
      [

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                tomas Tomas Gustavsson
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: