<div dir="ltr">Thanks for helping us out here. I've filed <a href="https://issues.jboss.org/browse/WFCORE-4674">https://issues.jboss.org/browse/WFCORE-4674</a> and I think I've got a fix for it. The one caveat is the fix will be in a the log manager with a slight hack in JBoss Modules. That also means once fixed in those two projects releases and upgrades will be required.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Sep 18, 2019 at 12:28 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>Yup I do have some logging stuff:</div><div><br></div><div>-Xbootclasspath/a:/opt/eap/modules/system/layers/base/.overlays/layer-base-jboss-eap-7.2.3.CP/org/jboss/logmanager/main/jboss-logmanager-2.1.7.Final-redhat-00001.jar:/opt/eap/modules/system/layers/base/org/glassfish/javax/json/main/javax.json-1.1.2.redhat-1.jar:/opt/eap/modules/system/layers/base/javax/json/api/main/javax.json-api-1.1.2.redhat-1.jar:/opt/eap/modules/system/layers/base/.overlays/layer-base-jboss-eap-7.2.3.CP/org/wildfly/common/main/wildfly-common-1.5.1.Final-redhat-00001.jar</div><div><br></div><div>The additional files that I add to the modules folder is here:</div><div><br></div><div><a href="https://paste.fedoraproject.org/paste/y2xf5u5nq3iL18pQOkAlNQ" target="_blank">https://paste.fedoraproject.org/paste/y2xf5u5nq3iL18pQOkAlNQ</a></div><div><br></div><div>Let me know if I should create an EAP or a Wildfly issue! Happy to do so! :)</div><div><br></div><div>Sincerely,<br></div><div>Dustin<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 18 Sep 2019 at 14:43, 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">This was exactly my question too :) Brian, Ken and I were just looking at this error yesterday and it only seems to show up when; Java 11 is used, Xbootclasspath is defined with the log manager and a custom handler/formatter is used.<div><br></div><div>I'm not sure if there is an issue already filed about this, but if not it might be time to file a specific one as this is at least the second time I'm aware of it came up. I can definitely reproduce it and am hoping to have time to look at this today.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Sep 18, 2019 at 11:36 AM Brian Stansberry <<a href="mailto:brian.stansberry@redhat.com" target="_blank">brian.stansberry@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 class="gmail_default" style="font-family:"trebuchet ms",sans-serif">Do you have -Xbootclasspath/a stuff involving logging in the VM launch command?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Sep 18, 2019 at 10:48 AM 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>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_2841265973315348483gmail-m_-3341005446220620521gmail-m_-8687232764096358193gmail-m_-5478155917313609100gmail-m_1343413751927691620gmail-m_-7116178546327009576gmail-code-java">15:54:28,819 ERROR [org.jboss.as.controller.management-operation] (Controller Boot <span class="gmail-m_2841265973315348483gmail-m_-3341005446220620521gmail-m_-8687232764096358193gmail-m_-5478155917313609100gmail-m_1343413751927691620gmail-m_-7116178546327009576gmail-code-object">Thread</span>) WFLYCTL0013: Operation (<span class="gmail-m_2841265973315348483gmail-m_-3341005446220620521gmail-m_-8687232764096358193gmail-m_-5478155917313609100gmail-m_1343413751927691620gmail-m_-7116178546327009576gmail-code-quote">"add"</span>) failed - address: ([
(<span class="gmail-m_2841265973315348483gmail-m_-3341005446220620521gmail-m_-8687232764096358193gmail-m_-5478155917313609100gmail-m_1343413751927691620gmail-m_-7116178546327009576gmail-code-quote">"subsystem"</span> => <span class="gmail-m_2841265973315348483gmail-m_-3341005446220620521gmail-m_-8687232764096358193gmail-m_-5478155917313609100gmail-m_1343413751927691620gmail-m_-7116178546327009576gmail-code-quote">"logging"</span>),
(<span class="gmail-m_2841265973315348483gmail-m_-3341005446220620521gmail-m_-8687232764096358193gmail-m_-5478155917313609100gmail-m_1343413751927691620gmail-m_-7116178546327009576gmail-code-quote">"custom-handler"</span> => <span class="gmail-m_2841265973315348483gmail-m_-3341005446220620521gmail-m_-8687232764096358193gmail-m_-5478155917313609100gmail-m_1343413751927691620gmail-m_-7116178546327009576gmail-code-quote">"kafka"</span>)
]): java.lang.IllegalArgumentException: Failed to load module <span class="gmail-m_2841265973315348483gmail-m_-3341005446220620521gmail-m_-8687232764096358193gmail-m_-5478155917313609100gmail-m_1343413751927691620gmail-m_-7116178546327009576gmail-code-quote">"org.apache.log4j"</span> <span class="gmail-m_2841265973315348483gmail-m_-3341005446220620521gmail-m_-8687232764096358193gmail-m_-5478155917313609100gmail-m_1343413751927691620gmail-m_-7116178546327009576gmail-code-keyword">for</span> pojo <span class="gmail-m_2841265973315348483gmail-m_-3341005446220620521gmail-m_-8687232764096358193gmail-m_-5478155917313609100gmail-m_1343413751927691620gmail-m_-7116178546327009576gmail-code-quote">"kafka"<br>...<br><font face="arial,sans-serif">```<br></font></span></pre><pre class="gmail-m_2841265973315348483gmail-m_-3341005446220620521gmail-m_-8687232764096358193gmail-m_-5478155917313609100gmail-m_1343413751927691620gmail-m_-7116178546327009576gmail-code-java"><span class="gmail-m_2841265973315348483gmail-m_-3341005446220620521gmail-m_-8687232764096358193gmail-m_-5478155917313609100gmail-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_2841265973315348483gmail-m_-3341005446220620521gmail-m_-8687232764096358193gmail-m_-5478155917313609100gmail-m_1343413751927691620gmail-m_-7116178546327009576gmail-code-java"><span class="gmail-m_2841265973315348483gmail-m_-3341005446220620521gmail-m_-8687232764096358193gmail-m_-5478155917313609100gmail-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_2841265973315348483gmail-m_-3341005446220620521gmail-m_-8687232764096358193gmail-m_-5478155917313609100gmail-m_1343413751927691620gmail-m_-7116178546327009576gmail-code-java"><span class="gmail-m_2841265973315348483gmail-m_-3341005446220620521gmail-m_-8687232764096358193gmail-m_-5478155917313609100gmail-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_2841265973315348483gmail-m_-3341005446220620521gmail-m_-8687232764096358193gmail-m_-5478155917313609100gmail-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>
_______________________________________________<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_2841265973315348483gmail-m_-3341005446220620521gmail-m_-8687232764096358193gmail_signature"><div dir="ltr">Brian Stansberry<div>Manager, Senior Principal Software Engineer</div><div>Red Hat</div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_2841265973315348483gmail-m_-3341005446220620521gmail_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>