[jboss-jira] [JBoss JIRA] (AS7-4695) Server does not start with sun jmx enabled

Michael Voegele (JIRA) jira-events at lists.jboss.org
Wed May 2 08:02:18 EDT 2012


    [ https://issues.jboss.org/browse/AS7-4695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12689514#comment-12689514 ] 

Michael Voegele commented on AS7-4695:
--------------------------------------

Yes, the connection to a local process is no problem. But what if a developer wants to connect to a running remote server for memory analysis or just to get a heap dump by e.g. using jconsole?
                
> Server does not start with sun jmx enabled
> ------------------------------------------
>
>                 Key: AS7-4695
>                 URL: https://issues.jboss.org/browse/AS7-4695
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: Domain Management
>    Affects Versions: 7.1.1.Final
>            Reporter: Michael Voegele
>            Assignee: Brian Stansberry
>              Labels: jmx, jmxremote
>
> Starting a server in domain mode configured as
> {code:xml}
> <servers>
>   <server name="server-1" group="server-group-1" auto-start="true">
>   <system-properties>
>     <property name="com.sun.management.jmxremote.port" value="13013"/>
>     <property name="com.sun.management.jmxremote.authenticate" value="false"/>
>     <property name="com.sun.management.jmxremote.ssl" value="false"/>
> ...
> {code}
> does not work.
> {code:java}
> [Server:server-1] WARNING: Failed to load the specified log manager class org.jboss.logmanager.LogManager
> [Server:server-1] Exception in thread "main" java.lang.ExceptionInInitializerError
> [Server:server-1]       at org.jboss.as.server.DomainServerMain.main(DomainServerMain.java:86)
> [Server:server-1]       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [Server:server-1]       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> [Server:server-1]       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> [Server:server-1]       at java.lang.reflect.Method.invoke(Method.java:597)
> [Server:server-1]       at org.jboss.modules.Module.run(Module.java:260)
> [Server:server-1]       at org.jboss.modules.Main.main(Main.java:291)
> [Server:server-1] 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")
> [Server:server-1]       at org.jboss.logmanager.Logger.getLogger(Logger.java:60)
> [Server:server-1]       at org.jboss.logmanager.log4j.BridgeRepositorySelector.<clinit>(BridgeRepositorySelector.java:42)
> [Server:server-1]       ... 7 more
> {code}
> I've seen in https://issues.jboss.org/browse/AS7-1859 that this won't be supported. May I ask why? I think that this is standard java and it should work.

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