[
https://issues.apache.org/jira/browse/PDFBOX-5242?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17385027#comment-17385027
]
Andreas Lehmkühler commented on PDFBOX-5242:
--------------------------------------------
Seems to be related to PDFBOX-4671
> LoggerBridge loading under the wrong class loader
> -------------------------------------------------
>
> Key: PDFBOX-5242
> URL: https://issues.apache.org/jira/browse/PDFBOX-5242
> Project: PDFBox
> Issue Type: Bug
> Components: JBIG2
> Affects Versions: 3.0.0 JBIG2, 3.0.1 JBIG2, 3.0.2 JBIG2, 3.0.3 JBIG2
> Environment: Java 16
> Reporter: Clifford Dann
> Priority: Major
>
> When used in a Tomcat servelet LoggerBridge has a different class loader to
> JDKLoggerBridge so when it dose {color:#1d1c1d}if
> (service.isAssignableFrom(clazz)) {{color} 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.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]