<div dir="ltr">I'm not too sure. I've not seen this article before so I'd have to fully read it.<div><br></div><div>Is there a full stack trace?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Sep 18, 2019 at 8:32 AM 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>Thanks for the suggestion! Unfortunately this didn't seem to help:</div><div><br></div><div>15:30:44,918 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([<br> ("subsystem" => "logging"),<br> ("custom-handler" => "kafka")<br>]): java.lang.IllegalArgumentException: WFLYLOG0019: Failed to load module 'org.apache.log4jappender' for handler 'kafka'<br>        at org.jboss.as.logging@6.0.15.Final-redhat-00001//org.jboss.as.logging.handlers.HandlerOperations$HandlerAddOperationStepHandler.createHandlerConfiguration(HandlerOperations.java:293)</div><div><br></div><div>I still don't get why it works on OpenJDK 8 and not OpenJDK 11 :(</div><div><br></div><div>Sincerely,</div><div>Dustin<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 17 Sep 2019 at 20:21, James Perkins <<a href="mailto:jperkins@redhat.com" target="_blank">jperkins@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">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" target="_blank">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_-5001639780134088575gmail-m_1343413751927691620gmail-m_-7116178546327009576gmail-code-java">15:54:28,819 ERROR [org.jboss.as.controller.management-operation] (Controller Boot <span class="gmail-m_-5001639780134088575gmail-m_1343413751927691620gmail-m_-7116178546327009576gmail-code-object">Thread</span>) WFLYCTL0013: Operation (<span class="gmail-m_-5001639780134088575gmail-m_1343413751927691620gmail-m_-7116178546327009576gmail-code-quote">"add"</span>) failed - address: ([
(<span class="gmail-m_-5001639780134088575gmail-m_1343413751927691620gmail-m_-7116178546327009576gmail-code-quote">"subsystem"</span> => <span class="gmail-m_-5001639780134088575gmail-m_1343413751927691620gmail-m_-7116178546327009576gmail-code-quote">"logging"</span>),
(<span class="gmail-m_-5001639780134088575gmail-m_1343413751927691620gmail-m_-7116178546327009576gmail-code-quote">"custom-handler"</span> => <span class="gmail-m_-5001639780134088575gmail-m_1343413751927691620gmail-m_-7116178546327009576gmail-code-quote">"kafka"</span>)
]): java.lang.IllegalArgumentException: Failed to load module <span class="gmail-m_-5001639780134088575gmail-m_1343413751927691620gmail-m_-7116178546327009576gmail-code-quote">"org.apache.log4j"</span> <span class="gmail-m_-5001639780134088575gmail-m_1343413751927691620gmail-m_-7116178546327009576gmail-code-keyword">for</span> pojo <span class="gmail-m_-5001639780134088575gmail-m_1343413751927691620gmail-m_-7116178546327009576gmail-code-quote">"kafka"<br>...<br><font face="arial,sans-serif">```<br></font></span></pre><pre class="gmail-m_-5001639780134088575gmail-m_1343413751927691620gmail-m_-7116178546327009576gmail-code-java"><span class="gmail-m_-5001639780134088575gmail-m_1343413751927691620gmail-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_-5001639780134088575gmail-m_1343413751927691620gmail-m_-7116178546327009576gmail-code-java"><span class="gmail-m_-5001639780134088575gmail-m_1343413751927691620gmail-m_-7116178546327009576gmail-code-quote"><font face="arial,sans-serif">Thank you for your help!<br><br></font></span></pre><pre class="gmail-m_-5001639780134088575gmail-m_1343413751927691620gmail-m_-7116178546327009576gmail-code-java"><span class="gmail-m_-5001639780134088575gmail-m_1343413751927691620gmail-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-m_-5001639780134088575gmail-m_1343413751927691620gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>James R. Perkins</div><div>JBoss by Red Hat</div></div></div></div></div>
</blockquote></div>
</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>