geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Han Hong Fang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GERONIMO-6099) Can't connect to Jconsole via secure JMX Connector
Date Thu, 28 Jul 2011 06:09:09 GMT

    [ https://issues.apache.org/jira/browse/GERONIMO-6099?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13072194#comment-13072194
] 

Han Hong Fang commented on GERONIMO-6099:
-----------------------------------------

Configuration org.apache.geronimo.framework/jmx-security/3.0-SNAPSHOT/car is loaded and started
in a thread with contextClassLoader as DefaultClassLoader which then delegates to geronimo-system
bundle class. When JMX service call comes in, the contextClassLoader of the processing thread
is set someways to DefaultClassLoader (delegats to gernonimo-system bundle) by rmi. Then geronimo-system
bundle is requested to load class in javax.security.auth package, but failed. 

> Can't connect to Jconsole via secure JMX Connector
> --------------------------------------------------
>
>                 Key: GERONIMO-6099
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6099
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>    Affects Versions: 3.0
>            Reporter: Han Hong Fang
>            Assignee: Han Hong Fang
>             Fix For: 3.0
>
>         Attachments: debug.log
>
>
> Steps to reproduce the issue:
> 1. Modify var/config.xml as below:
> <gbean name="JMXService"> --> <gbean name="JMXService" load="false">
> <module name="org.apache.geronimo.framework/jmx-security/2.1.1/car" load="false">
--> <module name="org.apache.geronimo.framework/jmx-security/2.1.1/car">
> 2. Start server
> 3. Open a command window and set environment variable:
> set GERONIMO_HOME=<PathToCEHome>
> set GERONIMO_OPTS=-Djavax.net.ssl.keyStore="%GERONIMO_HOME%/var/security/keystores/geronimo-default"
-Djavax.net.ssl.keyStorePassword=secret -Djavax.net.ssl.trustStore="%GERONIMO_HOME%/var/security/keystores/geronimo-default"
-Djavax.net.ssl.trustStorePassword=secret
> 4.Run <PathToJDKHome>/bin/jconsole via the following command:
> jconsole -J-Djavax.net.ssl.keyStore="%GERONIMO_HOME%\var\security\keystores\geronimo-default"
-J-Djavax.net.ssl.keyStorePassword=secret -J-Djavax.net.ssl.trustStore="%GERONIMO_HOME%\var\security\keystores\geronimo-default"
-J-Djavax.net.ssl.trustStorePassword=secret
> 5.Then It will pops up a JConsole GUI.
> Connect the secure JMX connector via the following JMX URL.
> On the dialog "Remote Process" of JConosle,  input these:
> JMX URL: service:jmx:rmi:///jndi/rmi://localhost:1099/JMXSecureConnector
> User Name: system
> Password: manager
> Then click "connect"
> 6.Connection failed.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message