Documente Academic
Documente Profesional
Documente Cultură
|JBossDeveloper
Todosloslugares >JBossAS7>Discusiones
8Respuestas ltimarespuestael31jul20145:54porLalitShaktawat
jimcpl 09jun201216:30
ConfigureJBossAS7listeningandhowtostop
JBoss?
Estapreguntanoserespondi.
Hi,
I'veconfiguredJBossAS7tolistenasfollows:
<interfaces>
<interfacename="management">
<inetaddressvalue="${jboss.bind.address.management:0.0.0.0}"/>
</interface>
<interfacename="public">
<inetaddressvalue="${jboss.bind.address:0.0.0.0}"/>
</interface>
<!TODOonlyshowthisifthejacorbsubsystemisadded>
<interfacename="unsecure">
<!
~UsedforIIOPsocketsinthestandardconfiguration.
~TosecureJacORByouneedtosetupSSL
>
<inetaddressvalue="${jboss.bind.address.unsecure:127.0.0.1}"/>
</interface>
</interfaces>
andIcanconnecttoitusingeitherlocalhostorIPaddress.
However,Ican'tfigureouthowtoshutdownJBoss,e.g.:
[root@jbossbin]#./jbosscli.shconnectcommand=:shutdowncontroller=192.168.0.213:9999
org.jboss.as.cli.CliInitializationException:Failedtoconnecttothecontroller
atorg.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:229)
atorg.jboss.as.cli.impl.CliLauncher.main(CliLauncher.java:195)
atorg.jboss.as.cli.CommandLineMain.main(CommandLineMain.java:35)
atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)
atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
https://developer.jboss.org/message/740836#740836 1/6
9/12/2016 ConfigureJBossAS7listeningandhowtostopJ...|JBossDeveloper
atjava.lang.reflect.Method.invoke(Method.java:597)
atorg.jboss.modules.Module.run(Module.java:260)
atorg.jboss.modules.Main.main(Main.java:291)
Causedby:org.jboss.as.cli.CommandLineException:Thecontrollerisnotavailableat
192.168.0.213:9999
at
org.jboss.as.cli.impl.CommandContextImpl.connectController(CommandContextImpl.java:639)
at
org.jboss.as.cli.impl.CommandContextImpl.connectController(CommandContextImpl.java:613)
atorg.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:227)
...8more
Ialsotried"localhost:9999"andgotthesameproblem.
WhenIdonetstat,Icanseelisteningon0.0.0.0:9999.
HowcanIshutdownJBoss?
Thanks,
Jim
Tengolamismapregunta(0)
5870Vistas Etiquetas:
Calificacinpromediodelusuario
(0Clasificaciones)
1.Re:ConfigureJBossAS7listeningandhowtostopJBoss?
Jim,
Wereyouabletofixthisissue?I'mrunningintothissameexception,sowonderingonasolution.
Thankyou,
Sudhakar
Acciones Megusta(0)
2.Re:ConfigureJBossAS7listeningandhowtostopJBoss?
@Jim
youcantrythis
./jbosscli.shconnectcontroller=0.0.0.0:9999command=:shutdown
it'sIPbasedonthis
<interfaces>
<interfacename="management">
<inetaddressvalue="${jboss.bind.address.management:0.0.0.0}"/>
</interface>
<interfacename="public">
<inetaddressvalue="${jboss.bind.address:0.0.0.0}"/>
</interface>
<!TODOonlyshowthisifthejacorbsubsystemisadded>
<interfacename="unsecure">
<!
~UsedforIIOPsocketsinthestandardconfiguration.
~TosecureJacORByouneedtosetupSSL
>
<inetaddressvalue="${jboss.bind.address.unsecure:127.0.0.1}"/>
</interface>
</interfaces>
@Sudhakar
MaybemyansweronJimcansolveyourproblemtoo
Acciones Megusta(0)
3.Re:ConfigureJBossAS7listeningandhowtostopJBoss?
Dedy,
I'musingthejbosscli(asyouhavespecified)toshutdowntheserver,butitstillthrowstheexception
anddoesn'tshutdown.
Thankyou,
Sudhakar
Acciones Megusta(0)
https://developer.jboss.org/message/740836#740836 3/6
9/12/2016 ConfigureJBossAS7listeningandhowtostopJ...|JBossDeveloper
4.Re:ConfigureJBossAS7listeningandhowtostopJBoss?
Istheexceptionmessagechangingfrombefore?Ifitchangepleasewhatisnow?
Canyoushowmewhatareyouchangeatthexml?
Acciones Megusta(0)
5.Re:ConfigureJBossAS7listeningandhowtostopJBoss?
AndyouhavenoJBOSS_HOMEorotherenvvarthatmightinterfere?
Acciones Megusta(0)
6.Re:ConfigureJBossAS7listeningandhowtostopJBoss?
Outofcuriousity,couldyoustartyourAS7withtheparametersb0.0.0.0and
Djboss.bind.address.management=0.0.0.0 andthentrytoshutdowntheserverviaCLI?
Iknowyouhaveconfiguredthedefaultbindingaddresstobe0.0.0.0inyourXMLbutI'mjust
wonderingifsomehowthelistenerchoosestogobackto127.0.0.1
Justathought,
Steffen
Acciones Megusta(0)
7.Re:ConfigureJBossAS7listeningandhowtostopJBoss?
Hi,
Iwasrunningtwocommandsinmyautomationscript
1.startcmd/cc:\Temp\JBoss\jbossas7.1.1.Final\bin\jbosscli.batconnect
controller=127.0.0.1:9999command=:shutdown
2.start"JBOSSSERVER"cmd/cc:\Temp\jboss\jbossas7.1.1.Final\bin\domain.batb0.0.0.0
bmanagement0.0.0.0
https://developer.jboss.org/message/740836#740836 4/6
9/12/2016 ConfigureJBossAS7listeningandhowtostopJ...|JBossDeveloper
Andwhilemyscriptisdeployingthewaritisnotabletodeploythewarfileandthrowingthe
followingexceptionandthesamescriptisworkinggoodwhileusinginsomeothermachineIthere
anyenvironmentvariablesissuecananyonehelpregardingthis.
thanksinadvance...
org.jboss.as.cli.CliInitializationException:Failedtoconnecttothecontroller
atorg.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java
:229)
atorg.jboss.as.cli.impl.CliLauncher.main(CliLauncher.java:195)
atorg.jboss.as.cli.CommandLineMain.main(CommandLineMain.java:34)
atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)
atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
atjava.lang.reflect.Method.invoke(Method.java:597)
atorg.jboss.modules.Module.run(Module.java:260)
atorg.jboss.modules.Main.main(Main.java:291)
Causedby:org.jboss.as.cli.CommandLineException:Thecontrollerisnotavailabl
eatlocalhost:9999
atorg.jboss.as.cli.impl.CommandContextImpl.connectController(CommandCon
textImpl.java:639)
atorg.jboss.as.cli.impl.CommandContextImpl.connectController(CommandCon
textImpl.java:613)
atorg.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java
:227)
...8more
Acciones Megusta(0)
8.Re:ConfigureJBossAS7listeningandhowtostopJBoss?
HiSandeep
IfoundthatthisisabugsinJBossAS7.Itfixedwithwildfly8Version.SoDon'ttrythisforshut
down.JBosswithManagementCLI.YoucansipmlyshutdownJBossASusingofmanagement
ConsoleorPressCTRL+C.
Forwardeploymentissue.JustcopyyourwarfileintodeployfolderandrestartyourJBossAS.Lot
ofmethodisavailabletodeploywarintoJBoss.IfyouareusingManagementCLI.Youhavefollow
somesteps.ForManagementconsoleisalsosimpleoneprocesstodeploywarintoJBossAs.
Thanks
https://developer.jboss.org/message/740836#740836 5/6
9/12/2016 ConfigureJBossAS7listeningandhowtostopJ...|JBossDeveloper
Lalit
Acciones Megusta(0)
RedHat
SiteHelp:
FAQ
Reportaproblem
https://developer.jboss.org/message/740836#740836 6/6