<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">WildFly forums
<a class="moz-txt-link-freetext" href="https://developer.jboss.org/en/wildfly">https://developer.jboss.org/en/wildfly</a> would be a better place to
discuss this. When you open the thread there, can you post what
the startup wrapper script for YAJSW look like?<br>
<br>
-Jaikiran<br>
<br>
On Wednesday 26 October 2016 07:50 PM, Will Milspec wrote:<br>
</div>
<blockquote
cite="mid:CANut7vDSLRX6PGk3MRtAxNd_-wHLNMFOoBedF_JUGfBzpJBuHw@mail.gmail.com"
type="cite">
<div dir="ltr">Hi all,<br>
<br>
I've run into a classloading problem that prevents wildfly 10.1
from running with the following stack:<br>
<br>
-Wildfly 10.1<br>
-IBM JDK 8 (the latest, 8.0-3.12)<br>
-YAJSW ("Yet Another Java Service Wrapper")<br>
-Ubuntu 14.04 linux AMD 64<br>
<br>
LogManager Classloader check fails with IBMJDK8 and YAJSW<br>
==========================================================<br>
This stack fails because wildfly/jboss thinks the logManager is
not loaded properly.<br>
<br>
Wildfly concludes as such because this check returns true:<br>
if (LogManager.getLogManager().getClass() ==
LogManager.class) {<br>
<br>
To clarify: with this tech stack, the system classloader loads
both LogManager.getLogManager() and LogManager.class. Thus the
two classes are identical, i.e. "=="<br>
<br>
I'll call this stack:<br>
Stack1) IBMJDK8 and Yajsw<br>
<br>
Log Manager Classloader check succeeds with other stacks<br>
==========================================================<br>
This 'class==" check succeeds (returns false) in all other
stacks I've tested with Wildfly 10.1<br>
<br>
Stack2) IBMJDK8 from the command line (no yasw)<br>
Stack3) Oracle JDK8 with yajsw<br>
Stack4) Oracle JDK8 from the command line (no yajsw)<br>
<br>
<br>
With stacks 2-4, the jboss-module-classloader loads
"LogManager.getLogManager()", whereas the system classloader
loads "LogManager.class"<br>
<br>
I have no idea why the difference, i.e. why "ibmjdk8 and yajsw"
uses "system classloader" to load LogManager.getLogManager and
why the difference for the other stacks.<br>
<br>
Note that between "Stack1" and "Stack2", I only changed "which
java command". All other configurations are identical.<br>
<br>
Code Details: Where this check occurs<br>
=============================<br>
I've searched the wildfly code and found this check in two
places:<br>
jboss-modules: Main.java<br>
wildfly-core: LoggingExtension.java<br>
<br>
I may have missed something. (I checked the versions in the
shipped-with-wildfly-10.1 jar, cloned the various git repos and
checked out the corresponding versions for jboss-modules and
wildlfy-core)<br>
<br>
Xref, Xpost<br>
===================<br>
As this problem has several components, I've posted it in a few
places: yajsw forums, ibm jdk forums etc.<br>
<br>
Yeah, I know cross-posting is bad form. Mea culpa. But as user,
I did not know (and still don't) if the problem lies in "yajsw
code" or "wildfly/jboss code" or in the IBM JDK. This is
"low-level stuff"<br>
<br>
Other posts (same information):<br>
<a moz-do-not-send="true"
href="https://www.ibm.com/developerworks/community/forums/html/topic?id=8e9e4ae2-53a7-42e8-8086-6208b80e2910&ps=25">https://www.ibm.com/developerworks/community/forums/html/topic?id=8e9e4ae2-53a7-42e8-8086-6208b80e2910&ps=25</a><br>
<br>
<a moz-do-not-send="true"
href="https://sourceforge.net/p/yajsw/discussion/810311/thread/e730451b/?limit=25">https://sourceforge.net/p/yajsw/discussion/810311/thread/e730451b/?limit=25</a><br>
<br>
<br>
Questions<br>
=====================<br>
-Any workarounds? (i've tried all sorts of tweaks, all dead end)<br>
<br>
-Any idea why the difference, i.e. why would systemclassloader
load "LogManager.getLogManager()" with "Stack1" vs "Stacks2-4"<br>
<br>
thanks in advance!<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
wildfly-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/wildfly-dev">https://lists.jboss.org/mailman/listinfo/wildfly-dev</a></pre>
</blockquote>
<br>
</body>
</html>