I am unable to get jmxterm working with user and password authentication.
connecting with jconsole just works fine so i'm sure its not the user/pass thats wrong.
the error output i get:
/usr/local/jdk1.6.0_07/bin/java -jar /usr/local/apache-tomcat/bin/jmxterm-1.0-alpha-1-uber.jar —url localhost:8999 -u user -p pass
Welcome to JMX terminal. Type "help" for available commands.
constituent[0]: jar:file:/usr/local/apache-tomcat-5.5.17/bin/jmxterm-1.0-alpha-1-uber.jar!/WORLDS-INF/lib/jmxterm.jar
constituent[1]: jar:file:/usr/local/apache-tomcat-5.5.17/bin/jmxterm-1.0-alpha-1-uber.jar!/WORLDS-INF/lib/commons-beanutils.jar
constituent[2]: jar:file:/usr/local/apache-tomcat-5.5.17/bin/jmxterm-1.0-alpha-1-uber.jar!/WORLDS-INF/lib/commons-cli.jar
constituent[3]: jar:file:/usr/local/apache-tomcat-5.5.17/bin/jmxterm-1.0-alpha-1-uber.jar!/WORLDS-INF/lib/commons-collections.jar
constituent[4]: jar:file:/usr/local/apache-tomcat-5.5.17/bin/jmxterm-1.0-alpha-1-uber.jar!/WORLDS-INF/lib/commons-lang.jar
constituent[5]: jar:file:/usr/local/apache-tomcat-5.5.17/bin/jmxterm-1.0-alpha-1-uber.jar!/WORLDS-INF/lib/commons-logging.jar
constituent[6]: jar:file:/usr/local/apache-tomcat-5.5.17/bin/jmxterm-1.0-alpha-1-uber.jar!/WORLDS-INF/lib/jcli.jar
constituent[7]: jar:file:/usr/local/apache-tomcat-5.5.17/bin/jmxterm-1.0-alpha-1-uber.jar!/WORLDS-INF/lib/jline.jar
constituent[8]: file:/usr/local/jdk1.6.0_07/jre/../lib/tools.jar
constituent[9]: file:/usr/local/jdk1.6.0_07/jre/../lib/jconsole.jar
java.lang.SecurityException: Authentication failed! Credentials required
at com.sun.jmx.remote.security.JMXPluggableAuthenticator.authenticationFailure(JMXPluggableAuthenticator.java:193)
at com.sun.jmx.remote.security.JMXPluggableAuthenticator.authenticate(JMXPluggableAuthenticator.java:145)
at sun.management.jmxremote.ConnectorBootstrap$AccessFileCheckerAuthenticator.authenticate(ConnectorBootstrap.java:172)
at javax.management.remote.rmi.RMIServerImpl.doNewClient(RMIServerImpl.java:214)
at javax.management.remote.rmi.RMIServerImpl.newClient(RMIServerImpl.java:181)
at sun.reflect.GeneratedMethodAccessor141.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:255)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)
at javax.management.remote.rmi.RMIServerImpl_Stub.newClient(Unknown Source)
at javax.management.remote.rmi.RMIConnector.getConnection(RMIConnector.java:2312)
at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:277)
at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)
at org.cyclopsgroup.jmxterm.impl.ConnectionAwareSession.doConnect(ConnectionAwareSession.java:71)
at org.cyclopsgroup.jmxterm.impl.ConnectionAwareSession.connect(ConnectionAwareSession.java:64)
at org.cyclopsgroup.jmxterm.impl.CommandCenter.connect(CommandCenter.java:89)
at org.cyclopsgroup.jmxterm.boot.Main.execute(Main.java:71)
at org.cyclopsgroup.jmxterm.boot.Main.main(Main.java:54)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchStandard(Launcher.java:353)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:264)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.uberjar.boot.Bootstrapper.bootstrap(Bootstrapper.java:209)
at org.codehaus.classworlds.uberjar.boot.Bootstrapper.main(Bootstrapper.java:116)