[jboss-user] [Installation, Configuration & Deployment] - twiddle does not work in web configuration if I change HTTP

vbez do-not-reply at jboss.com
Wed Sep 2 12:56:52 EDT 2009


1. Choose default configuration.

Change port "The listening socket for the Naming service" in jboss-5.1.0.GA\server\default\conf\bindingservice.beans\META-INF\bindings-jboss-beans.xml from 1099 to 17235.
Run JBoss.
Execute next command:
twiddle.sh -s localhost:17235 serverinfo -d

Output - "jboss".
All is ok.

Change "A HTTP/1.1 Connector on port 8080"  in jboss-5.1.0.GA/server/default/deploy/jbossweb.sar/server.xml from 8080 to 17230.
Run JBoss.
Execute next command:
Twiddle.sh -s localhost:17235 serverinfo -d

Output - "jboss".
All is ok.

2. Choose webconfiguration.

Change port "The listening socket for the Naming service" in jboss-5.1.0.GA\server\default\conf\bindingservice.beans\META-INF\bindings-jboss-beans.xml from 1099 to 17235.
Run JBoss.
Execute next command:
twiddle.sh -s localhost:17235 serverinfo -d 

Output - "jboss".
All is ok.

Change "A HTTP/1.1 Connector on port 8080" in jboss-5.1.0.GA/server/default/deploy/jbossweb.sar/server.xml from 8080 to 17230.
Run JBoss.
Execute next command:
twiddle.sh -s localhost:17235 serverinfo -d 

Output:
anonymous wrote : 19:10:41,347 DEBUG [Twiddle] args[0]=-s
  | 19:10:41,352 DEBUG [Twiddle] args[1]=localhost:17235
  | 19:10:41,352 DEBUG [Twiddle] args[2]=serverinfo
  | 19:10:41,352 DEBUG [Twiddle] args[3]=-d
  | 19:10:41,382 DEBUG [Twiddle] Command name: serverinfo
  | 19:10:41,390 DEBUG [Twiddle] Command arguments: -d
  | 19:10:41,391 DEBUG [Twiddle] command proto type properties: jar:file:/local/jboss/bin/twiddle.jar!/org/jboss/console/twiddle/commands.properties
  | 19:10:41,407 DEBUG [Twiddle] Adding command 'jsr77'; proto: org.jboss.console.twiddle.command.JSR77Command at 13421342
  | 19:10:41,411 DEBUG [Twiddle] Adding command 'xmbean'; proto: org.jboss.console.twiddle.command.XMBeanCommand at 23892389
  | 19:10:41,414 DEBUG [Twiddle] Adding command 'info'; proto: org.jboss.console.twiddle.command.InfoCommand at 2bfc2bfc
  | 19:10:41,416 DEBUG [Twiddle] Adding command 'get'; proto: org.jboss.console.twiddle.command.GetCommand at 350e350e
  | 19:10:41,421 DEBUG [Twiddle] Adding command 'invoke'; proto: org.jboss.console.twiddle.command.InvokeCommand at 40af40af
  | 19:10:41,430 DEBUG [Twiddle] Adding command 'create'; proto: org.jboss.console.twiddle.command.CreateCommand at 48c548c5
  | 19:10:41,433 DEBUG [Twiddle] Adding command 'setattrs'; proto: org.jboss.console.twiddle.command.SetAttrsCommand at 53355335
  | 19:10:41,436 DEBUG [Twiddle] Adding command 'unregister'; proto: org.jboss.console.twiddle.command.UnregisterCommand at 5a9c5a9c
  | 19:10:41,439 DEBUG [Twiddle] Adding command 'queryMethod'; proto: org.jboss.console.twiddle.command.QueryMethodCommand at 64a864a8
  | 19:10:41,442 DEBUG [Twiddle] Adding command 'listDomains'; proto: org.jboss.console.twiddle.command.ListDomainsCommand at 6bb06bb0
  | 19:10:41,445 DEBUG [Twiddle] Adding command 'query'; proto: org.jboss.console.twiddle.command.QueryCommand at 73567356
  | 19:10:41,449 DEBUG [Twiddle] Adding command 'set'; proto: org.jboss.console.twiddle.command.SetCommand at 79f179f1
  | 19:10:41,454 DEBUG [Twiddle] Adding command 'serverinfo'; proto: org.jboss.console.twiddle.command.ServerInfoCommand at 5ce05ce
  | 19:10:41,460 DEBUG [ServerInfoCommand] processing arguments: -d
  | 19:10:41,658 DEBUG [TimedSocketFactory] createSocket, hostAddr: localhost/127.0.0.1, port: 17235, localAddr: null, localPort: 0, timeout: 0
  | 19:10:43,128 ERROR [Twiddle] Exec failed
  | java.rmi.ServerException: IOE; nested exception is:
  |         java.net.ConnectException: Connection refused
  |         at org.jboss.invocation.http.interfaces.HttpInvokerProxy.invoke(HttpInvokerProxy.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:68)
  |         at org.jboss.proxy.ClientMethodInterceptor.invoke(ClientMethodInterceptor.java:74)
  |         at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:101)
  |         at $Proxy0.getDefaultDomain(Unknown Source)
  |         at org.jboss.console.twiddle.command.ServerInfoCommand.execute(ServerInfoCommand.java:137)
  |         at org.jboss.console.twiddle.Twiddle.main(Twiddle.java:306)
  | Caused by:
  | java.net.ConnectException: Connection refused
  |         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:389)
  |         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:250)
  |         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:237)
  |         at java.net.Socket.connect(Socket.java:540)
  |         at java.net.Socket.connect(Socket.java:490)
  |         at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
  |         at sun.net.www.http.HttpClient.openServer(HttpClient.java:403)
  |         at sun.net.www.http.HttpClient.openServer(HttpClient.java:521)
  |         at sun.net.www.http.HttpClient.(HttpClient.java:246)
  |         at sun.net.www.http.HttpClient.New(HttpClient.java:320)
  |         at sun.net.www.http.HttpClient.New(HttpClient.java:337)
  |         at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:822)
  |         at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:774)
  |         at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:699)
  |         at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:866)
  |         at org.jboss.invocation.http.interfaces.Util.invoke(Util.java:163)
  |         at org.jboss.invocation.http.interfaces.HttpInvokerProxy.invoke(HttpInvokerProxy.java:118) 
Why twiddle does not work in case if we change HTTP port?


View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4253136#4253136

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4253136



More information about the jboss-user mailing list