You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Volkan Yazici (Jira)" <ji...@apache.org> on 2024/03/14 10:28:00 UTC
[jira] [Commented] (LOG4J2-3681) NoClassDefFoundError for org.xml.sax.SAXException after jlink app with log4j 3 beta2
[ https://issues.apache.org/jira/browse/LOG4J2-3681?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17827037#comment-17827037 ]
Volkan Yazici commented on LOG4J2-3681:
---------------------------------------
[~singingbush], thanks for the report! As indicated in [the Log4j support policy|https://logging.apache.org/log4j/2.x/support.html#issues], Log4 has migrated to GitHub Issues. Would you mind closing this one and opening a new issue there, please?
> NoClassDefFoundError for org.xml.sax.SAXException after jlink app with log4j 3 beta2
> ------------------------------------------------------------------------------------
>
> Key: LOG4J2-3681
> URL: https://issues.apache.org/jira/browse/LOG4J2-3681
> Project: Log4j 2
> Issue Type: Bug
> Affects Versions: 3.0.0-beta2
> Reporter: Samael Bate
> Priority: Major
> Labels: jpms, modularization
>
> I've added log4j-core 3.0.0-beta2 to a maven project and can run the built jar with logging working as expected (with log4j2.xml in resources folder) but when I run a launcher that was created with the _maven-jlink-plugin_ there is a {{java.lang.NoClassDefFoundError: org/xml/sax/SAXException}} at:
> {{org.apache.logging.log4j.core@3.0.0.beta2/org.apache.logging.log4j.core.config.xml.XmlConfigurationFactory}}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)