JBoss Community

How to open a JMX port in AS 7?

created by Yair Ogen in JBoss AS 7 Development - View the full discussion

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

Start a new discussion in JBoss AS 7 Development at Community