[jboss-jira] [JBoss JIRA] (AS7-3681) JBoss crashes when run with AspectJ java agent
David Lloyd (JIRA)
jira-events at lists.jboss.org
Tue May 22 10:25:18 EDT 2012
[ https://issues.jboss.org/browse/AS7-3681?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12694738#comment-12694738 ]
David Lloyd commented on AS7-3681:
----------------------------------
It looks like you didn't do anything Stuart mentioned, and you did a few things he didn't. First don't set org.jboss.logging.Logger.pluginClass because that doesn't do anything. Do these exact steps:
# add {{JBOSS_MODULES_SYSTEM_PKGS="org.jboss.logmanager"}} to the beginning of standalone.conf
# add {{-Djava.util.logging.manager=org.jboss.logmanager.LogManager}} to JAVA_OPTS at the end of standalone.conf
# add {{-Xbootclasspath/p:$JBOSS_HOME/modules/org/jboss/logmanager/main/jboss-logmanager-1.3.1.Final.jar}} to JAVA_OPTS at the end of standalone.conf (make sure the JAR name and path matches your installation)
This should get you at least 95% of the way there. You might have to define one or two other system props to get logging up.
> JBoss crashes when run with AspectJ java agent
> ----------------------------------------------
>
> Key: AS7-3681
> URL: https://issues.jboss.org/browse/AS7-3681
> Project: Application Server 7
> Issue Type: Bug
> Components: Server
> Affects Versions: 7.0.2.Final, 7.1.0.CR1b
> Environment: OS X 10.7.2, Ubuntu 11.10
> Reporter: Jack Lund
> Assignee: David Lloyd
> Labels: aspectj, load_time_weaving
>
> When trying to start JBoss with the AspectJ java agent (-javaagent:/path/aspectjweaver.jar) to enable load-time weaving, JBoss crashes with the following stack trace in the logs:
> =========================================================================
> JBoss Bootstrap Environment
> JBOSS_HOME: /home/jack/jboss-as-7.1.0.CR1b
> JAVA: java
> JAVA_OPTS: -server -javaagent:/home/jack/aspectjweaver.jar -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true
> =========================================================================
> WARNING: Failed to load the specified logmodule org.jboss.logmanager:main
> Exception in thread "main" java.lang.ExceptionInInitializerError
> at org.jboss.as.server.Main.main(Main.java:92)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616)
> at org.jboss.modules.Module.run(Module.java:248)
> at org.jboss.modules.Main.main(Main.java:313)
> Caused by: java.lang.IllegalStateException: The LogManager was not properly installed (you must set the "java.util.logging.manager" system property to "org.jboss.logmanager.LogManager")
> at org.jboss.logmanager.Logger.getLogger(Logger.java:60)
> at org.jboss.logmanager.log4j.BridgeRepositorySelector.<clinit>(BridgeRepositorySelector.java:42)
> ... 7 more
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list