[ 
https://issues.apache.org/jira/browse/LOG4J2-3681?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17827037#comment-17827037
 ] 

Volkan Yazici edited comment on LOG4J2-3681 at 3/14/24 5:46 PM:
----------------------------------------------------------------

-[~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?-

{{SAXException}} is provided by the {{java.xml}} module, which is optional – 
see the {{static}} qualifier:

{code}
$ jar -d < log4j-core-3.0.0-beta2.jar  | grep java.xml
requires java.xml static
{code}

If you have XML configuration, you need to add it manually.

I will close the ticket. Feel free reopen it if the issue is not resolved.


was (Author: vy):
[~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)

Reply via email to