我试图在jboss 6.1中启用jmx remote。当我添加如下选项
时-Djboss.platform.mbeanserver
-Djavax.management.builder.initial=org.jboss.system.server.jmx.MBeanServerBuilderImpl
-Dcom.sun.management.jmxremote.port=12349
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false
,jboss无法正常启动,我遇到了以下错误:
" Deployment "JBossLogService" is in error due to the following reason(s): java.lang.IllegalStateException: The LogManager was not properly installed (you must set the "java.util.logging.manager" system property to "org.jboss.logmanager.LogManager"), **ERROR**"
你有任何想法如何解决它?
答案 0 :(得分:4)
在Jboss EAP 6.1中默认启用JMX。
确保您拥有:
<extension module="org.jboss.as.jmx"/>
位于<extensions>
下
<subsystem xmlns="urn:jboss:domain:jmx:1.2">
<expose-resolved-model/>
<expose-expression-model/>
<remoting-connector/>
</subsystem>
使用-Djboss.bind.address.management = YOURSERVERIP作为命令行参数来启动AS或在此处更改它:
<interfaces>
<interface name="management">
<inet-address value="${jboss.bind.address.management:**127.0.0.1**}"/>
</interface>
..
</interfaces>
在JBOSS_HOME / bin / jconsole.sh下使用jconsole启动脚本(它在类路径上加载JBoss远程处理库)
使用jvisualvm代替https://github.com/johnaoahra80/jboss-as-tool-integration/tree/master/visualvm
在jconsole中使用该URL service:jmx:remoting-jmx:// yourIP:magementport (默认为9999)
答案 1 :(得分:0)
添加下一个选项
-Djava.util.logging.manager=org.jboss.logmanager.LogManager
-Xbootclasspath/p:$JBOSS_HOME/modules/system/layers/base/org/jboss/logmanager/main/jboss-logmanager-version.jar
-Xbootclasspath/p:$JBOSS_HOME/modules/system/layers/base/org/jboss/log4j/logmanager/main/log4j-jboss-logmanager-version.jar
-Xbootclasspath/p:$JBOSS_HOME/modules/system/layers/base/org/apache/log4j/main/log4j-jboss-logmanager-version.jar
-Dcom.sun.management.jmxremote