Multiple Domain Controlers with single JBoss(EAP 6.4.5) Installation
sukeshpeddolla Jun 9, 2016 11:43 AMHello,
Is there a way to create multiple domain controllers with single JBoss installation, reason is we have two applications using same domain.xml and when ever we do app server config( adding JDBC resources, MQ resources) we need to bounce the complete domain.
In this case the other application is getting effected, to avoid this we thought if we have multiple domain controllers with single installations( we tested backup domain controller option with separate installation successfully).
OS: Red Hat Enterprise Linux Server release 6.7 (Santiago)
JBoss: EAP 6.4.5 GA
I followed below steps to create multiple domain controllers:
1). copied complete domain folder and renamed it to domain1
2). under JBOSS_HOME/bin directory , created another set of domain1.conf and domain1.sh
changed JBOSS_LOG_DIR, JBOSS_BASE_DIR, JBOSS_CONF_DIR references
changed management port to 29999
changed native http port to 29990
3). Tried to start domain controller with below command:
./domain1.sh --domain-config=/apps/jboss/jboss-eap-6.4.0/domain1/configuration/domain.xml --host-config=/apps/jboss/jboss-eap-6.4.0/domain1/configuration/host
and getting below error.
15:31:17,711 INFO [org.jboss.modules] (main) JBoss Modules version 1.3.7.Final-redhat-1
15:31:17,859 INFO [org.jboss.as.process.Host Controller.status] (main) JBAS012017: Starting process 'Host Controller'
[Host Controller] 15:31:18,779 INFO [org.jboss.modules] (main) JBoss Modules version 1.3.7.Final-redhat-1
[Host Controller] 15:31:18,941 ERROR [stderr] (main) java.lang.IllegalStateException: JBAS014805: Could not get main file: /apps/jboss/jboss-eap-6.4.0/domain1/configuration/host. Specified files must be relative to the configuration dir: /apps/jboss/jboss-eap-6.4.0/domain/configuration
[Host Controller] 15:31:18,942 ERROR [stderr] (main) at org.jboss.as.controller.persistence.ConfigurationFile.determineMainFile(ConfigurationFile.java:168)
[Host Controller] 15:31:18,943 ERROR [stderr] (main) at org.jboss.as.controller.persistence.ConfigurationFile.<init>(ConfigurationFile.java:95)
[Host Controller] 15:31:18,944 ERROR [stderr] (main) at org.jboss.as.host.controller.HostControllerEnvironment.<init>(HostControllerEnvironment.java:372)
[Host Controller] 15:31:18,945 ERROR [stderr] (main) at org.jboss.as.host.controller.Main.determineEnvironment(Main.java:452)
[Host Controller] 15:31:18,945 ERROR [stderr] (main) at org.jboss.as.host.controller.Main.boot(Main.java:131)
[Host Controller] 15:31:18,946 ERROR [stderr] (main) at org.jboss.as.host.controller.Main.create(Main.java:126)
[Host Controller] 15:31:18,947 ERROR [stderr] (main) at org.jboss.as.host.controller.Main.main(Main.java:115)
[Host Controller] 15:31:18,947 ERROR [stderr] (main) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[Host Controller] 15:31:18,948 ERROR [stderr] (main) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[Host Controller] 15:31:18,949 ERROR [stderr] (main) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[Host Controller] 15:31:18,949 ERROR [stderr] (main) at java.lang.reflect.Method.invoke(Method.java:606)
[Host Controller] 15:31:18,950 ERROR [stderr] (main) at org.jboss.modules.Module.run(Module.java:312)
Not sure where I am missing the references or is it possible at all to create multiple domain controllers with single JBoss installation
If any one has successfully created multiple domain controllers with single JBoss Installation, please list the complete steps here.
I really appreciate your help, thank you in advance !
Regards,
Sukeshpeddolla