This post has a very fine example:
I had most of the same 'main yajsw.conf' settings already. Others, I wasn't so sure whether they were relevant ("wrapper.java.additional.2=-Djboss.modules.system.pkgs=org.jboss.byteman")
Upshot: i'm still getting the LogManager error and looking into it.
An update on this 'running wildfly 10.x under yajsw' issue
It looks like the example posted here Start Windows service with different configuration has the same problem w/ wildfly 10.1
[java] 16-10-24 08:52:08.890|INFO|10538/0|16-10-24 08:52:08.890|Caused by: java.util.concurrent.ExecutionException: java.lang.IllegalStateException: WFLYLOG0078: The logging subsystem requires the log manager to be org.jboss.logmanager.LogManager. The subsystem has not be initialized and cannot be used. To use JBoss Log Manager you must add the system property "java.util.logging.manager" and set it to "org.jboss.logmanager.LogManager"
I've tried several tweaks to the yajsw conf to get around this problem (setting -Djava.util.logging.manager as wrapper.java.additional, setting -Djava.util.loggin as wrapper.app.parameter) but basically the same problem