Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-9556

NoClassDefFoundError Log4J2Logger when running the fat-server in Openshift

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 9.4.0.Final
    • Component/s: Server
    • Labels:
      None
    • Sprint:
      Sprint 9.4.0.Final
    • Steps to Reproduce:
      Hide

      1) Create a docker file `Dockerfile-infinispan-server`

      Unable to find source-code formatter for language: docker. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      FROM jboss/infinispan-server
      COPY infinispan-server-cloud.xml /opt/jboss/infinispan-server/standalone/configuration/
      

      2) Build using: docker build -t infinispan-server-dlovison -f Dockerfile-infinispan-server .

      3) Execute:

      cat /etc/resolv.conf | grep nameserver | awk '{print $2}'
      

      Copy the first address. Example: 1.1.1.1

      4) Execute: docker run -i -t infinispan-server-dlovison:latest -c infinispan-server-cloud.xml -Djboss.default.jgroups.stack=dnsping -Djgroups.dns_address=1.1.1.1

      Keep in mind that you need change '1.1.1.1' and use the value returned from the step 3


      It will return an error:

      18:25:53,529 WARN  [org.jboss.modules.define] (MSC service thread 1-6) Failed to define class io.netty.util.internal.logging.Log4J2Logger in Module "io.netty:ispn-9.4" version 4.1.28.Final from local module loader @79b4d0f (finder: local module finder @6b2fad11 (roots: /opt/jboss/infinispan-server/modules,/opt/jboss/infinispan-server/modules/system/layers/base,/opt/jboss/infinispan-server/modules/system/add-ons/ispn)): java.lang.NoClassDefFoundError: Failed to link io/netty/util/internal/logging/Log4J2Logger (Module "io.netty:ispn-9.4" version 4.1.28.Final from local module loader @79b4d0f (finder: local module finder @6b2fad11 (roots: /opt/jboss/infinispan-server/modules,/opt/jboss/infinispan-server/modules/system/layers/base,/opt/jboss/infinispan-server/modules/system/add-ons/ispn))): org/apache/logging/log4j/spi/ExtendedLoggerWrapper
      

      Maybe the fix is the same from: ISPN-9534

      Show
      1) Create a docker file `Dockerfile-infinispan-server` Unable to find source-code formatter for language: docker. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml FROM jboss/infinispan-server COPY infinispan-server-cloud.xml /opt/jboss/infinispan-server/standalone/configuration/ 2) Build using: docker build -t infinispan-server-dlovison -f Dockerfile-infinispan-server . 3) Execute: cat /etc/resolv.conf | grep nameserver | awk '{print $2 }' Copy the first address. Example: 1.1.1.1 4) Execute: docker run -i -t infinispan-server-dlovison:latest -c infinispan-server-cloud.xml -Djboss.default.jgroups.stack=dnsping -Djgroups.dns_address=1.1.1.1 Keep in mind that you need change '1.1.1.1' and use the value returned from the step 3 It will return an error: 18:25:53,529 WARN [org.jboss.modules.define] (MSC service thread 1-6) Failed to define class io.netty.util.internal.logging.Log4J2Logger in Module "io.netty:ispn-9.4" version 4.1.28.Final from local module loader @79b4d0f (finder: local module finder @6b2fad11 (roots: /opt/jboss/infinispan-server/modules,/opt/jboss/infinispan-server/modules/system/layers/base,/opt/jboss/infinispan-server/modules/system/add-ons/ispn)): java.lang.NoClassDefFoundError: Failed to link io/netty/util/internal/logging/Log4J2Logger (Module "io.netty:ispn-9.4" version 4.1.28.Final from local module loader @79b4d0f (finder: local module finder @6b2fad11 (roots: /opt/jboss/infinispan-server/modules,/opt/jboss/infinispan-server/modules/system/layers/base,/opt/jboss/infinispan-server/modules/system/add-ons/ispn))): org/apache/logging/log4j/spi/ExtendedLoggerWrapper Maybe the fix is the same from: ISPN-9534

      Description

      When running Infinispan server in Openshift it is failing due:

      18:25:53,529 WARN  [org.jboss.modules.define] (MSC service thread 1-6) Failed to define class io.netty.util.internal.logging.Log4J2Logger in Module "io.netty:ispn-9.4" version 4.1.28.Final from local module loader @79b4d0f (finder: local module finder @6b2fad11 (roots: /opt/jboss/infinispan-server/modules,/opt/jboss/infinispan-server/modules/system/layers/base,/opt/jboss/infinispan-server/modules/system/add-ons/ispn)): java.lang.NoClassDefFoundError: Failed to link io/netty/util/internal/logging/Log4J2Logger (Module "io.netty:ispn-9.4" version 4.1.28.Final from local module loader @79b4d0f (finder: local module finder @6b2fad11 (roots: /opt/jboss/infinispan-server/modules,/opt/jboss/infinispan-server/modules/system/layers/base,/opt/jboss/infinispan-server/modules/system/add-ons/ispn))): org/apache/logging/log4j/spi/ExtendedLoggerWrapper
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                NadirX Tristan Tarrant
                Reporter:
                dlovison Diego Lovison
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: