[jboss-jira] [JBoss JIRA] (AS7-6856) Using the CLI remote client jar on Windows7
Tomaz Cerar (JIRA)
jira-events at lists.jboss.org
Tue Apr 9 05:31:43 EDT 2013
[ https://issues.jboss.org/browse/AS7-6856?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12765735#comment-12765735 ]
Tomaz Cerar commented on AS7-6856:
----------------------------------
Can you connect to that machine? aka is there FW issue?
try doing
{noformat}
telnet 10.11.12.13 9999
{noformat}
does it connect?
if you don't have telnet app, see http://social.technet.microsoft.com/wiki/contents/articles/910.how-to-enable-telnet-client-in-windows-7.aspx
also it is possible firewall does not allow java exeutable to connect to outer network.
easiest to test this is by stopping firewall service
run (you need admin privileges cmd for that)
{noformat}
Netsh firewall set opmode disable
{noformat}
and try again, you can enable firewall again buy running
{noformat}
Netsh firewall set opmode enable
{noformat}
> Using the CLI remote client jar on Windows7
> -------------------------------------------
>
> Key: AS7-6856
> URL: https://issues.jboss.org/browse/AS7-6856
> Project: Application Server 7
> Issue Type: Bug
> Components: CLI
> Affects Versions: EAP 6.1.0.Alpha (7.2.0.Final)
> Environment: Windows 7, JDK 1.6
> Reporter: Miguel Reyes
> Assignee: Alexey Loubyansky
> Priority: Minor
> Labels: cli
>
> jboss-cli-client.jar works fine in Fedora. However, when I try to run it in Win7 I get a "connection timeout" error:
> Microsoft Windows [Version 6.1.7600]
> Copyright (c) 2009 Microsoft Corporation. All rights reserved.
> C:\Users\myuser\Desktop\Test>java -jar jboss-cli-client.jar --controller=10.11.12.13:9999 --connect --user=admin --password=admin --file=test.cli
> WARN: can't find jboss-cli.xml. Using default configuration values.
> apr 09, 2013 10:35:21 FM org.xnio.Xnio <clinit>
> INFO: XNIO Version 3.0.7.GA
> apr 09, 2013 10:35:21 FM org.xnio.nio.NioXnio <clinit>
> INFO: XNIO NIO Implementation Version 3.0.7.GA
> apr 09, 2013 10:35:21 FM org.jboss.remoting3.EndpointImpl <clinit>
> INFO: JBoss Remoting version 3.2.14.GA
> org.jboss.as.cli.CliInitializationException: Failed to connect to the controller
> at org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:280)
> at org.jboss.as.cli.impl.CliLauncher.main(CliLauncher.java:240)
> at org.jboss.as.cli.CommandLineMain.main(CommandLineMain.java:34)
> Caused by: org.jboss.as.cli.CommandLineException: The controller is not available at 10.11.12.13:9999
> at org.jboss.as.cli.impl.CommandContextImpl.tryConnection(CommandContextImpl.java:950)
> at org.jboss.as.cli.impl.CommandContextImpl.connectController(CommandContextImpl.java:789)
> at org.jboss.as.cli.impl.CommandContextImpl.connectController(CommandContextImpl.java:765)
> at org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:278)
> ... 2 more
> Caused by: java.io.IOException: java.net.ConnectException: JBAS012144: Could notconnect to remote://10.11.12.13:9999. The connection timed out
> at org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeForResult(AbstractModelControllerClient.java:129)
> at org.jboss.as.controller.client.impl.AbstractModelControllerClient.execute(AbstractModelControllerClient.java:71)
> at org.jboss.as.cli.impl.CommandContextImpl.tryConnection(CommandContextImpl.java:928)
> ... 5 more
> Caused by: java.net.ConnectException: JBAS012144: Could not connect to remote://10.11.12.13:9999. The connection timed out
> at org.jboss.as.protocol.ProtocolConnectionUtils.connectSync(ProtocolConnectionUtils.java:130)
> at org.jboss.as.protocol.ProtocolConnectionManager$EstablishingConnection.connect(ProtocolConnectionManager.java:256)
> at org.jboss.as.protocol.ProtocolConnectionManager.connect(ProtocolConnectionManager.java:70)
> at org.jboss.as.protocol.mgmt.FutureManagementChannel$Establishing.getChannel(FutureManagementChannel.java:176)
> at org.jboss.as.cli.impl.CLIModelControllerClient.getOrCreateChannel(CLIModelControllerClient.java:153)
> at org.jboss.as.cli.impl.CLIModelControllerClient$2.getChannel(CLIModelControllerClient.java:114)
> at org.jboss.as.protocol.mgmt.ManagementChannelHandler.executeRequest(ManagementChannelHandler.java:115)
> at org.jboss.as.protocol.mgmt.ManagementChannelHandler.executeRequest(ManagementChannelHandler.java:98)
> at org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeRequest(AbstractModelControllerClient.java:236)
> at org.jboss.as.controller.client.impl.AbstractModelControllerClient.execute(AbstractModelControllerClient.java:141)
> at org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeForResult(AbstractModelControllerClient.java:127)
> ... 7 more
> A right now is to pass the connect command in my test.cli (connect 10.11.12.13) and instead run:
> C:\Users\myuser\Desktop\Test>java -jar jboss-cli-client.jar --user=admin --password=admin --file=test.cli
> Using the jboss-cli-client.jar from EAP6.1.ALPHA
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list