Uploaded image for project: 'Magnolia Test Framework'
  1. Magnolia Test Framework
  2. MGNLTEST-197

NoClassDefFoundError: org/apache/commons/logging/LogFactory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 2.0-cloud
    • 2.0-cloud
    • None

      LogFactory class normally comes from commons-logging, which is a banned dependency in parent POMs. Instead we use the jcl-over-slf4j bridge so we can use other Apache Commons like beanutils.

      java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
      	at org.apache.commons.beanutils.ConvertUtilsBean.<init>(ConvertUtilsBean.java:154)
      	at org.apache.commons.beanutils.BeanUtilsBean.<init>(BeanUtilsBean.java:113)
      ...
      	at info.magnolia.test.setup.DirectInstances.<clinit>(DirectInstances.java:111)
      	at info.magnolia.test.setup.InstanceManager.instance(InstanceManager.java:57)
      	at info.magnolia.test.lightmodule.LightModulesSupport.lambda$loadLightModules$2(LightModulesSupport.java:137)
      ...
      at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:75)
      

        Acceptance criteria

              mgeljic Mikaël Geljić
              mgeljic Mikaël Geljić
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD