Hide Forgot
Date of First Response: 2008-01-09 07:20:54 project_key: SOA According to JBAS-1736 should works. The long version is OK: $ ./twiddle.sh --user=admin --password=admin -s localhost query 'jboss:service=invoker,*' jboss:service=invoker,type=jrmp jboss:service=invoker,type=jrmpha jboss:service=invoker,type=httpHA jboss:service=invoker,type=local jboss:service=invoker,type=pooled jboss:service=invoker,type=unifiedha jboss:service=invoker,type=iiop jboss:service=invoker,type=http,target=Naming,readonly=true jboss:service=invoker,type=pooledha jboss:service=invoker,type=http,target=HAJNDI jboss:service=invoker,type=unified jboss:service=invoker,type=http jboss:service=invoker,type=http,target=Naming here is the error: $ ./twiddle.sh -u=admin -p=admin -s localhost query 'jboss:service=invoker,*' 14:38:30,605 ERROR [Twiddle] Exec failed 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.GeneratedMethodAccessor147.invoke(Unknown Source) 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) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) 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.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:818) at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:419) at sun.reflect.GeneratedMethodAccessor146.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294) at sun.rmi.transport.Transport$1.run(Transport.java:153) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:149) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707) at java.lang.Thread.run(Thread.java:595) at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126) at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source) at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:133) at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:365) at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:197) at org.jboss.jmx.connector.invoker.client.InvokerAdaptorClientInterceptor.invoke(InvokerAdaptorClientInterceptor.java:66) at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70) at org.jboss.proxy.ClientMethodInterceptor.invoke(ClientMethodInterceptor.java:74) at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100) at $Proxy0.queryNames(Unknown Source) at org.jboss.console.twiddle.command.MBeanServerCommand.queryMBeans(MBeanServerCommand.java:68) at org.jboss.console.twiddle.command.QueryCommand.execute(QueryCommand.java:138) at org.jboss.console.twiddle.Twiddle.main(Twiddle.java:305)
twiddle comes from EAP so I suspect JBAS-1736 didn't make it into that branch, investigating
Did you get a response?
Most probably you must *not* use the equal sign '=' when providing the short version of arguments, i.e. try: ./twiddle.sh -u admin -p admin -s localhost query 'jboss:service=invoker,*'
Yes, this is standard Gnu Getopt processing, where --user=foo is equivalent to -ufoo or -u foo