4 Replies Latest reply on Nov 16, 2014 9:34 AM by wdfink

    The controller is not available at localhost:9999?

    spbhosale

      Hi,

       

      I am using JBoss EAP 6.0.1. Using EAP I have created an installer with help of "InstallAnywhere 2013" on windows. In this installer I used 4 steps/methods in java program as explained below,

      1. Install EAP as windows service(service.bat install):-  with "native" module ref: Re: Running jboss EAP 6.1 as service in Windows
      2. start EAP service with command "net start <service-name>" (which will use standalone-full.xml for startup)
      3. check EAP current status as "running" or wait for it (using cli command jboss-cli.bat -c "read-attribute server-state")
      4. if EAP is successfully started/status is running then execute updateStandalone.bat which internally calls a ".CLI" file. Content of bat file is,

      SET PATH=%JBOSS_HOME%\bin

      set NOPAUSE='CONTINUE'

      jboss-cli.bat --connect --file=%JBOSS_HOME%\bin\updateStandaloneFull.cli


      Contents of updateStandaloneFull.cli are:

      connect

      batch

      ...cli commands to add DB drivers, datasources, security domain, deployment path etc...

      Both files kept at %JBOSS_HOME%\bin.

       

      When I execute the updateStandalone.bat manually it works fine and standalone-full.xml is updated but when I try to do it from installer last step fails with error as follows,

       

      org.jboss.as.cli.CliInitializationException: Failed to connect to the controller

          at org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:264)

          at org.jboss.as.cli.impl.CliLauncher.main(CliLauncher.java:224)

          at org.jboss.as.cli.CommandLineMain.main(CommandLineMain.java:34)

          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.jboss.modules.Module.run(Module.java:270)

          at org.jboss.modules.Main.main(Main.java:294)

      Caused by: org.jboss.as.cli.CommandLineException: The controller is not available at localhost:9999


      Standalone-full.xml:

      The public interface is ="jboss.bind.address:127.0.0.1" and socket-binding-group = jboss.management.native.port:9999.


      Also I can easily connect to controller as shown in image(but it is manually)


       

      I have tried different ways but no result.

      Any help/suggestion will be useful for me to resolve this issue.

      Thanks in advance.