Community
Participate
Working Groups
Lately I tried to run JBoss WildFly with aspectjweaver.jar on the command line as a weaving agent. But all I got was strange error messages and WildFly did not boot up. The problem is described here: https://issues.jboss.org/browse/WFLY-895 In comments in that ticket users describe hacky workarounds and someone mentions that the problem occurs with several Java agents initialising java.util.logging.manager in a way unexpected by the container. For example, WildFly expects it to be set to org.jboss.logmanager.LogManager. I was curious and tried to find places where aspectjweaver.jar uses java.util.logging classes. Basically I only found this one: http://git.eclipse.org/c/aspectj/org.aspectj.git/tree/weaver5/java5-src/org/aspectj/weaver/tools/Jdk14Trace.java#n13 I thought that if this is really the only problem source, maybe it could be fixed easily by logging to console via System.out.println (ugly, I know). I think a Java agent loaded so early into the JVM should try to rely on as few resources possibly used by programs loaded later as possible. What do you think, Andy?