Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.0.0 JBIG2, 3.0.1 JBIG2, 3.0.2 JBIG2, 3.0.3 JBIG2
-
None
-
Java 16
Description
When used in a Tomcat servelet LoggerBridge has a different class loader to JDKLoggerBridge so when it dose if (service.isAssignableFrom(clazz)) { in java.util.ServiceLoader it fails.
took the source to 3.0.3 and replaced all.
private static final Logger log
with
private final Logger log
and also added , Thread.currentThread().getContextClassLoader() as a parameter to LoggerFactory.getLogger .
This fixed the problem for me, not too sure if Thread.currentThread().getContextClassLoader() is over kill as I think it is the static that is causing the problem.
Attachments
Issue Links
- requires
-
PDFBOX-4671 NoClassDefFoundError: Could not initialize class org.apache.pdfbox.jbig2.JBIG2ImageReader
- Resolved