[jboss-user] [Beginner's Corner] - twiddle localhost jboss 6.0

David Bettenhausen do-not-reply at jboss.com
Fri Nov 26 12:00:52 EST 2010


David Bettenhausen [http://community.jboss.org/people/dbhausen] created the discussion

"twiddle localhost jboss 6.0"

To view the discussion, visit: http://community.jboss.org/message/573200#573200

--------------------------------------------------------------
/var/jboss6/bin/twiddle.sh get "jboss.system:type=ServerInfo" 
 
I have an ant script that deploys my ear from eclipse to my remote server. This script works when I have jboss 5 running and fails when I have jboss 6   (jboss-6.0.0.20101110-CR1) running. The only change I make to the script is to change the jboss home directory.

/var/jboss6/bin/twiddle.sh -q *-s localhost* invoke "jboss.system:service=MainDeployer" deploy "file:///home/websrc/ThirdEAR.ear"

I execute this with an ant but I also tried it from the command line. Works fine with 5.1 but with 6.0 it fails with

  [sshexec] 11:37:47,800 ERROR [Twiddle] Exec failed
  [sshexec] org.jboss.util.NestedRuntimeException: Service URL must start with service:jmx:; - nested throwable: (java.net.MalformedURLException: Service URL must start with service:jmx:)
  [sshexec]  at org.jboss.console.twiddle.Twiddle$1.getServer(Twiddle.java:208)
  [sshexec]  at org.jboss.console.twiddle.command.MBeanServerCommand.getMBeanServer(MBeanServerCommand.java:64)
  [sshexec]  at org.jboss.console.twiddle.command.MBeanServerCommand.queryMBeans(MBeanServerCommand.java:71)
  [sshexec]  at org.jboss.console.twiddle.command.InvokeCommand.execute(InvokeCommand.java:284)
  [sshexec]  at org.jboss.console.twiddle.Twiddle.main(Twiddle.java:357)
  [sshexec] Caused by: java.net.MalformedURLException: Service URL must start with service:jmx:
  [sshexec]  at javax.management.remote.JMXServiceURL.<init>(JMXServiceURL.java:143)
  [sshexec]  at org.jboss.console.twiddle.Twiddle.createMBeanServerConnection(Twiddle.java:308)
  [sshexec]  at org.jboss.console.twiddle.Twiddle.connect(Twiddle.java:318)
  [sshexec]  at org.jboss.console.twiddle.Twiddle.access$400(Twiddle.java:60)
  [sshexec]  at org.jboss.console.twiddle.Twiddle$1.getServer(Twiddle.java:204)
  [sshexec]  ... 4 more

As a test I tried this simpler command on both 5.1 and 6.0


Either of these two command work when I have jboss 5.1 started.


/var/jboss5/bin/twiddle.sh get "jboss.system:type=ServerInfo"
/var/jboss5/bin/twiddle.sh *-s localhost* get "jboss.system:type=ServerInfo" 



This command works when jboss 6 is started: 

/var/jboss6/bin/twiddle.sh get "jboss.system:type=ServerInfo" 

But this one with the *-s localhost* option:


/var/jboss6/bin/twiddle.sh -*s localhost* get "jboss.system:type=ServerInfo" 

fails with:


11:27:58,215 ERROR [Twiddle] Exec failed
org.jboss.util.NestedRuntimeException: Service URL must start with service:jmx:; - nested throwable: (java.net.MalformedURLException: Service URL must start with service:jmx:)
 at org.jboss.console.twiddle.Twiddle$1.getServer(Twiddle.java:208)
 at org.jboss.console.twiddle.command.MBeanServerCommand.getMBeanServer(MBeanServerCommand.java:64)
 at org.jboss.console.twiddle.command.GetCommand.execute(GetCommand.java:149)
 at org.jboss.console.twiddle.Twiddle.main(Twiddle.java:357)
Caused by: java.net.MalformedURLException: Service URL must start with service:jmx:
 at javax.management.remote.JMXServiceURL.<init>(JMXServiceURL.java:143)
 at org.jboss.console.twiddle.Twiddle.createMBeanServerConnection(Twiddle.java:308)
 at org.jboss.console.twiddle.Twiddle.connect(Twiddle.java:318)
 at org.jboss.console.twiddle.Twiddle.access$400(Twiddle.java:60)
 at org.jboss.console.twiddle.Twiddle$1.getServer(Twiddle.java:204)
 ... 3 more

Obviously this is not a bug but something I am not understanding. If one of you could toss me a clue that would be great. Hope you had a nice Thanksgiving. Thanks.
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/573200#573200]

Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20101126/310c0546/attachment.html 


More information about the jboss-user mailing list