I am having a weird issue where a class is not found, and also a method, despite their JAR files being included in the build.
(FYI: Project is ActivePivot as a webapp and the sub-project is to connect to Murex for Realtime data).
Current project - WAR file running in Tomcat 8, with jdk8, and this sub-project / service I wrote works and connects to Murex.
New DEV build of the project is in a launchable SpringBoot JAR with AdoptOpenJDK11 and the sub-project fails due to:
(This class is definitely there as I can see it in the final JAR) java.lang.NoClassDefFoundError: Could not initialize class murex.shared.log.LoggerManager
(This is also there, in log4j 1.2.16 so is SpringBoot disabling it?) java.lang.NoSuchMethodError: 'org.apache.log4j.spi.LoggerRepository org.apache.log4j.LogManager.getLoggerRepository()'
My current thinking is that the shared path is not found by SpringBoot as it also has a com folder structure in the JAR. And Log4J that Murex expects, 1.2.16 in use and working in the Tomcat8 build, despite being in the build, is being eclipsed/stopped by Spring.
This is my first SpringBoot migration so I am learning as I go. I've read around and tried disabling logback and excluding stuff just in order to get the Log4J 1 stuff to be picked up.
I thought I'd put this out there to people ahead of me with SpringBoot who have seen this sort of thing before. I really like SpringBoot and I've got used to including/excluding stuff and config but this feels to me like stuff is being disabled.
Any and all advice greatly received!
Thanks
Leigh Tilley TilleyTech Ltd