[jboss-user] [JBoss Remoting] - Secure JMX Invoker
Rupali Desai
do-not-reply at jboss.com
Tue Jun 22 17:38:07 EDT 2010
Rupali Desai [http://community.jboss.org/people/rtdesai] created the discussion
"Secure JMX Invoker"
To view the discussion, visit: http://community.jboss.org/message/549199#549199
--------------------------------------------------------------
Hello,
I have enabled authentication for the JMX invoker. However when I try to access the MBeans, I get the following error.
java.lang.SecurityException: Failed to authenticate principal=null, securityDomain=jmx-console
at org.jboss.jmx.connector.invoker.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:88)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
at org.jboss.invocation.jrmp.server.JRMPProxyFactory.invoke(JRMPProxyFactory.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Here is the client side code snippet.
Hashtable env = new Hashtable();
String factory = "org.jboss.security.jndi.JndiLoginInitialContextFactory";
env.put(Context.INITIAL_CONTEXT_FACTORY, factory);
env.put(Context.SECURITY_CREDENTIALS, "test");
env.put(Context.SECURITY_PRINCIPAL, "test");
env.put(Context.SECURITY_PROTOCOL, "testLoginInitialContext");
ctx = new InitialContext(env);
server = (MBeanServerConnection) ctx
.lookup("jmx/invoker/RMIAdaptor")
Any idea, what I am missing here.
Thanks
RTD
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/549199#549199]
Start a new discussion in JBoss Remoting at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2050]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100622/02804e8a/attachment.html
More information about the jboss-user
mailing list