This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
23 duplicates so far ... reported also for 6.7/trunk Build: NetBeans IDE 6.1 (Build 200804211638) VM: Java HotSpot(TM) Client VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_05-b13 OS: Windows XP, 5.1, x86 User comments: watching tv STACKTRACE: (first 10 lines) java.lang.SecurityException: Failed to authenticate principal=admin, securityDomain=jmx-console at org.jboss.jmx.connector.invoker.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:97) at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) at org.jboss.invocation.jrmp.server.JRMPProxyFactory.invoke(JRMPProxyFactory.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:0) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
Hi. When I start the Jboss Server using NetBeans IDE this Exception is generate for the NetBenas IDE while the server is starting! thanks for you help!
we have our own security settings on the jmx console a solution would be to provide a login/password field for jmx authentication when setting up the server in netbeans
Make sure there is a proper name and password in serverdir/conf/props/jmx-console-users.properties as a workaround. Please provide a sample configuration of your server and exact version.
Created attachment 98568 [details] stacktrace used the 'attach debugger to port 9797' menu item from the debugger drop down
I have JBoss configured to use UserRoleLoginModule for the jmx-console and have configured users and roles in conf/props/jmx-console-user.properties and conf/props/jmx-console-roles.properties in both my configured server directory and the default server directory but I still get this error.
I looked through the JBoss module source code and I finally figured out what the issue was. When it sets up the RMI connection to JBoss to query the MBeans it only sets the security credentials (parsed from $SERVER_HOME/conf/props/jmx-console-users.properties) if the file $JBOSS_HOME/client/auth.conf is found. If $JBOSS_HOME/client/auth.conf does not exist, then it does not set any credentials (i.e. it tries an anonymous connection). For some reason auth.conf was missing on my system. I copied the auth.conf file from a JBoss 4 installation and everything started working. I'm not sure why having auth.conf is a prerequisite. I don't see it in any of the JBoss 5 instances I have. Is it even still relevant in JBoss 5? I second the request to be able to explicitly specify a username and password in the server configuration screen, perhaps along with a checkbox indicating that authentication is required. (This checkbox value could be used in place of auth.conf to determine whether credentials should be passed.)
Fixed in web-main f09b919e47ca. I filed issue 192674 for username/password in properties dialog.
Integrated into 'main-golden', will be available in build *201012010001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/f09b919e47ca User: Petr Hejl <phejl@netbeans.org> Log: #161276 SecurityException: Failed to authenticate principal=admin, securityDomain=jmx-console