<div dir="ltr">That module defined on custom-handler looks wrong. I think it should likely beĀ org.apache.kafka.log4jappender.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 16, 2019 at 3:48 PM Dustin Kut Moy Cheung <<a href="mailto:dcheung@redhat.com">dcheung@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div><div>I'm following this guide to get logging sent to kafka: <a href="https://developer.jboss.org/wiki/SendingWildFlyLogsToKafka" target="_blank">https://developer.jboss.org/wiki/SendingWildFlyLogsToKafka</a></div><div><br></div><div>This works on EAP <a href="http://7.2.3.GA" target="_blank">7.2.3.GA</a> running on JDK 8, but fails to run on JDK 11:</div><div><br></div><div>```<br></div><div><pre class="gmail-m_-7116178546327009576gmail-code-java">15:54:28,819 ERROR [org.jboss.as.controller.management-operation] (Controller Boot <span class="gmail-m_-7116178546327009576gmail-code-object">Thread</span>) WFLYCTL0013: Operation (<span class="gmail-m_-7116178546327009576gmail-code-quote">"add"</span>) failed - address: ([
(<span class="gmail-m_-7116178546327009576gmail-code-quote">"subsystem"</span> => <span class="gmail-m_-7116178546327009576gmail-code-quote">"logging"</span>),
(<span class="gmail-m_-7116178546327009576gmail-code-quote">"custom-handler"</span> => <span class="gmail-m_-7116178546327009576gmail-code-quote">"kafka"</span>)
]): java.lang.IllegalArgumentException: Failed to load module <span class="gmail-m_-7116178546327009576gmail-code-quote">"org.apache.log4j"</span> <span class="gmail-m_-7116178546327009576gmail-code-keyword">for</span> pojo <span class="gmail-m_-7116178546327009576gmail-code-quote">"kafka"<br>...<br><font face="arial,sans-serif">```<br></font></span></pre><pre class="gmail-m_-7116178546327009576gmail-code-java"><span class="gmail-m_-7116178546327009576gmail-code-quote"><font face="arial,sans-serif">Do you think this is related to the new module system in JDK 11 and I need to add some extra JVM flags to get it to work?<br></font></span></pre><pre class="gmail-m_-7116178546327009576gmail-code-java"><span class="gmail-m_-7116178546327009576gmail-code-quote"><font face="arial,sans-serif">Thank you for your help!<br><br></font></span></pre><pre class="gmail-m_-7116178546327009576gmail-code-java"><span class="gmail-m_-7116178546327009576gmail-code-quote"><font face="arial,sans-serif">Sincerely,<br>Dustin<br></font></span></pre></div></div>
_______________________________________________<br>
wildfly-dev mailing list<br>
<a href="mailto:wildfly-dev@lists.jboss.org" target="_blank">wildfly-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/wildfly-dev</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>James R. Perkins</div><div>JBoss by Red Hat</div></div></div></div></div>