[jboss-dev-forums] [JBoss AS 7 Development] - How to open a JMX port in AS 7?

Yair Ogen do-not-reply at jboss.com
Sun Dec 2 05:36:12 EST 2012


Yair Ogen [https://community.jboss.org/people/yairogen] created the discussion

"How to open a JMX port in AS 7?"

To view the discussion, visit: https://community.jboss.org/message/779472#779472

--------------------------------------------------------------
Hi,

I Can’t find a way to see what is the JMX port used. Where can I find that?



I thought it is not exposed, so I tried to expose it by adding the following to the startup script (like I do for the community hornetq):



-Djava.rmi.server.hostname=127.0.0.1 -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=3900 -Dcom.sun.management.jmxremote.authenticate=false



This fails on:



WARNING: Failed to load the specified log manager class org.jboss.logmanager.LogManager

Exception in thread "main" java.lang.ExceptionInInitializerError

 at org.jboss.as.server.Main.main(Main.java:73)

 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

 at java.lang.reflect.Method.invoke(Method.java:597)

 at org.jboss.modules.Module.run(Module.java:260)

 at org.jboss.modules.Main.main(Main.java:291)

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
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/779472#779472]

Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20121202/24eb4798/attachment.html 


More information about the jboss-dev-forums mailing list