[MGNLTEST-197] NoClassDefFoundError: org/apache/commons/logging/LogFactory Created: 20/Jan/22  Updated: 24/Jan/22  Resolved: 20/Jan/22

Status: Closed
Project: Magnolia Test Framework
Component/s: None
Affects Version/s: 2.0-cloud
Fix Version/s: 2.0-cloud

Type: Bug Priority: Neutral
Reporter: Mikaël Geljić Assignee: Mikaël Geljić
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Epic Link: SaaS ITs

 Description   

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)

Generated at Mon Feb 12 07:46:31 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.