Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-3114

Make the console optional

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 7.1.0.Final
    • 7.1.0.Beta1b
    • Domain Management
    • None

      Currently when booting without a console module you get the following error:

      13:32:30,936 ERROR [org.jboss.msc.service.fail] MSC00001: Failed to start service jboss.serverManagement.controller.management.http: org.jboss.msc.service.StartException in service jboss.serverManagement.controller.management.http: Failed to start serverManagement socket
      	at org.jboss.as.server.mgmt.HttpManagementService.start(HttpManagementService.java:204) [jboss-as-server-7.1.0.CR1-SNAPSHOT.jar:]
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:]
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [:1.7.0_b147-icedtea]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [:1.7.0_b147-icedtea]
      	at java.lang.Thread.run(Thread.java:722) [:1.7.0_b147-icedtea]
      Caused by: java.io.IOException: Unable to load resource handler
      	at org.jboss.as.domain.http.server.ManagementHttpServer.create(ManagementHttpServer.java:177)
      	at org.jboss.as.server.mgmt.HttpManagementService.start(HttpManagementService.java:169) [jboss-as-server-7.1.0.CR1-SNAPSHOT.jar:]
      	... 5 more
      Caused by: org.jboss.modules.ModuleNotFoundException: Module org.jboss.as.console:main is not found in local module loader @5e5ad035 (roots: /home/carlo/work/jboss-as/build/target/jboss-as-7.1.0.CR1-SNAPSHOT/modules)
      	at org.jboss.modules.LocalModuleLoader.findModule(LocalModuleLoader.java:126)
      	at org.jboss.modules.ModuleLoader.loadModuleLocal(ModuleLoader.java:265)
      	at org.jboss.modules.ModuleLoader.preloadModule(ModuleLoader.java:212)
      	at org.jboss.modules.LocalModuleLoader.preloadModule(LocalModuleLoader.java:94)
      	at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:194)
      	at org.jboss.as.domain.http.server.ResourceHandler.getClassLoader(ResourceHandler.java:324)
      	at org.jboss.as.domain.http.server.ConsoleMode$ConsoleHandler.<init>(ConsoleMode.java:99)
      	at org.jboss.as.domain.http.server.ConsoleMode$1.createConsoleHandler(ConsoleMode.java:43)
      	at org.jboss.as.domain.http.server.ManagementHttpServer.create(ManagementHttpServer.java:175)
      	... 6 more
      

      It would be better to run in ConsoleMode.NO_CONSOLE if that module is not available.
      (Possibly with a friendly user message.)

              tomazcerar Tomaž Cerar (Inactive)
              rhn-engineering-cdewolf Carlo de Wolf
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: