5 Replies Latest reply on Sep 19, 2011 6:55 PM by Dan Hanley

    How do I enable the Sun JMX server?

    Justin Waugh Newbie

      I have added the typical system properties to standalone.conf.bat:

       

      set "JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.port=48002 -Dcom.sun.management.jmxremote.ssl=false"

       

      Now I get an error on startup that says:

       

      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:81)

              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:270)

              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

      Press any key to continue . . .

       

      I have set that property as well, but I get a different error about not being able to find the log manager class.

       

      Any ideas?