Problems configuring domain on JBoss AS 7.1.1
sbass Nov 2, 2014 11:18 PMWe're migrating from JBoss 4.2.3 to JBoss 7.1.1. We need to have three JBoss servers running on one machine, using different ports. These JBoss servers also need to run as a service. The servers are just dev/test/prod of the same web application.
I'm unsure whether three standalone servers vs. a managed domain is the way to go in AS 7.1, but I'm currently trying to configure this as a domain. I like the centralized management model of a domain, esp. since the three servers are just running different versions of the same application. I'm assuming domain.bat can be installed as a service.
So, in summary, I need a single host controller, also acting as the master domain controller, starting three JBoss instances, all on the same machine.
I've unzipped jboss-as-7.1.1.Final, unzipped jboss-native-2.0.10-windows-x64-ssl (to install as a service), and installed Java JDK jdk1.7.0_72. Standalone.bat starts fine.
However, domain.bat is giving me this error in the console window:
D:\Program Files\jboss-as-7.1.1.Final\bin>domain Calling "D:\Program Files\jboss-as-7.1.1.Final\bin\domain.conf.bat" =============================================================================== JBoss Bootstrap Environment JBOSS_HOME: D:\Program Files\jboss-as-7.1.1.Final JAVA: D:\Program Files\Java\jdk1.7.0_72\bin\java JAVA_OPTS: -Dprogram.name=domain.bat -Xms64M -Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true -Dorg.jboss .resolver.warning=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djboss.domain.default.config=domain.xml -Djboss.host.default.config=host.xml =============================================================================== 14:23:53,331 INFO [org.jboss.modules] (main) JBoss Modules version 1.1.1.GA 14:23:53,675 INFO [org.jboss.as.process.Host Controller.status] (main) JBAS012017: Starting process 'Host Controller' [Host Controller] 14:23:54,831 INFO [org.jboss.modules] (main) JBoss Modules version 1.1.1.GA [Host Controller] 14:23:54,972 INFO [org.jboss.msc] (main) JBoss MSC version 1.0.2.GA [Host Controller] 14:23:55,035 INFO [org.jboss.as] (MSC service thread 1-3) JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting [Host Controller] 14:23:55,191 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.host.controller.process-controller-connection: org.jboss.msc.service. StartException in service jboss.host.controller.process-controller-connection: java.net.SocketException: Network is unreachable: connect [Host Controller] at org.jboss.as.host.controller.ProcessControllerConnectionService.start(ProcessControllerConnectionService.java:174) [jboss-as-host-controller-7.1.1.Final.jar:7.1.1.Final] [Host Controller] at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA] [Host Controller] at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA] [Host Controller] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_72] [Host Controller] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_72] [Host Controller] at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_72] [Host Controller] Caused by: java.net.SocketException: Network is unreachable: connect [Host Controller] at java.net.TwoStacksPlainSocketImpl.socketConnect(Native Method) [rt.jar:1.7.0_72] [Host Controller] at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) [rt.jar:1.7.0_72] [Host Controller] at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) [rt.jar:1.7.0_72] [Host Controller] at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182) [rt.jar:1.7.0_72] [Host Controller] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172) [rt.jar:1.7.0_72] [Host Controller] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) [rt.jar:1.7.0_72] [Host Controller] at java.net.Socket.connect(Socket.java:579) [rt.jar:1.7.0_72] [Host Controller] at org.jboss.as.process.protocol.ProtocolClient.connect(ProtocolClient.java:92) [jboss-as-process-controller-7.1.1.Final.jar:7.1.1.Final] [Host Controller] at org.jboss.as.process.ProcessControllerClient.connect(ProcessControllerClient.java:153) [jboss-as-process-controller-7.1.1.Final.jar:7.1.1.Final] [Host Controller] at org.jboss.as.host.controller.ProcessControllerConnectionService.start(ProcessControllerConnectionService.java:90) [jboss-as-host-controller-7.1.1.Final.jar:7.1.1.Final] [Host Controller] ... 5 more [Host Controller]
Any pointers on how to diagnose and fix this issue?
I've also attached my domain.xml and hosts.xml files in case that helps. Other than setting JAVA_HOME, domain.bat and domain.conf.bat are unchanged from the default files.
Thanks...
-
domain.xml 20.7 KB
-
host.xml 3.1 KB