7 Replies Latest reply on Dec 5, 2014 3:36 AM by Jay SenSharma

    Jboss domain Starting issue

    Justin Judith Newbie

      Hi,

       

      [root@ggns2dssjboss08 bin]# ./domain.sh --domain-config=domain.xml --host-config=host-master.xml -P file:///opt/jboss_master/domain/configuration/domain.properties
      =========================================================================

        JBoss Bootstrap Environment

        JBOSS_HOME: /opt/jboss_master

        JAVA: java

        JAVA_OPTS: -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djboss.domain.default.config=domain.xml -Djboss.host.default.config=host.xml

      =========================================================================

      09:21:38,247 INFO  [org.jboss.modules] (main) JBoss Modules version 1.1.1.GA
      09:21:38,566 INFO  [org.jboss.as.process.Host Controller.status] (main) JBAS012017: Starting process 'Host Controller'
      [Host Controller] 09:21:40,031 INFO  [org.jboss.modules] (main) JBoss Modules version 1.1.1.GA
      [Host Controller] 09:21:40,409 ERROR [stderr] (main) java.lang.IllegalStateException: JBAS015851: Configuration directory does not exist: /opt/jboss_master/profiles/nlptc27b09/configuration
      [Host Controller] 09:21:40,410 ERROR [stderr] (main)    at org.jboss.as.host.controller.HostControllerEnvironment.<init>(HostControllerEnvironment.java:327)
      [Host Controller] 09:21:40,416 ERROR [stderr] (main)    at org.jboss.as.host.controller.Main.determineEnvironment(Main.java:392)
      [Host Controller] 09:21:40,417 ERROR [stderr] (main)    at org.jboss.as.host.controller.Main.boot(Main.java:120)
      [Host Controller] 09:21:40,417 ERROR [stderr] (main)    at org.jboss.as.host.controller.Main.create(Main.java:115)
      [Host Controller] 09:21:40,426 ERROR [stderr] (main)    at org.jboss.as.host.controller.Main.main(Main.java:104)
      [Host Controller] 09:21:40,426 ERROR [stderr] (main)    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [Host Controller] 09:21:40,427 ERROR [stderr] (main)    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      [Host Controller] 09:21:40,428 ERROR [stderr] (main)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      [Host Controller] 09:21:40,428 ERROR [stderr] (main)    at java.lang.reflect.Method.invoke(Method.java:616)
      [Host Controller] 09:21:40,436 ERROR [stderr] (main)    at org.jboss.modules.Module.run(Module.java:260)
      [Host Controller] 09:21:40,437 ERROR [stderr] (main)    at org.jboss.modules.Main.main(Main.java:291)
      09:21:40,480 INFO  [org.jboss.as.process.Host Controller.status] (reaper for Host Controller) JBAS012010: Process 'Host Controller' finished with an exit status of 99
      09:21:40,486 INFO  [org.jboss.as.process] (Thread-6) JBAS012016: Shutting down process controller
      09:21:40,488 INFO  [org.jboss.as.process] (Thread-6) JBAS012015: All processes finished; exiting

       

      would appreciate any one to resolve this issue.

       

      Regards,

      Justin

        • 1. Re: Jboss domain Starting issue
          Tomaz Cerar Master

          [Host Controller] 09:21:40,409 ERROR [stderr] (main) java.lang.IllegalStateException: JBAS015851: Configuration directory does not exist: /opt/jboss_master/profiles/nlptc27b09/configuration

           

          maybe doing something like mkdir  /opt/jboss_master/profiles/nlptc27b09/configuration

          could help.

          • 2. Re: Jboss domain Starting issue
            Justin Judith Newbie

            Hi Tomaz,

            Thanks for your quick response.

            I did create configuration directory and now my error is different as in the below. Need your help again.

            [root@ggns2dssjboss08 bin]# ./domain.sh --domain-config=domain.xml --host-config=host-master.xml -P file:///opt/jboss_master/domain/configuration/domain.properties
            =========================================================================

              JBoss Bootstrap Environment

              JBOSS_HOME: /opt/jboss_master

              JAVA: java

              JAVA_OPTS: -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djboss.domain.default.config=domain.xml -Djboss.host.default.config=host.xml

            =========================================================================

            07:12:13,410 INFO  [org.jboss.modules] (main) JBoss Modules version 1.1.1.GA
            07:12:13,732 INFO  [org.jboss.as.process.Host Controller.status] (main) JBAS012017: Starting process 'Host Controller'
            [Host Controller] 07:12:15,258 INFO  [org.jboss.modules] (main) JBoss Modules version 1.1.1.GA
            [Host Controller] 07:12:15,665 ERROR [stderr] (main) java.lang.IllegalStateException: JBAS014805: Could not get main file: host-master.xml. Specified files must be relative to the configuration dir: /opt/jboss_master/profiles/nlptc27b09/configuration
            [Host Controller] 07:12:15,669 ERROR [stderr] (main)    at org.jboss.as.controller.persistence.ConfigurationFile.determineMainFile(ConfigurationFile.java:148)
            [Host Controller] 07:12:15,672 ERROR [stderr] (main)    at org.jboss.as.controller.persistence.ConfigurationFile.<init>(ConfigurationFile.java:90)
            [Host Controller] 07:12:15,674 ERROR [stderr] (main)    at org.jboss.as.host.controller.HostControllerEnvironment.<init>(HostControllerEnvironment.java:333)
            [Host Controller] 07:12:15,682 ERROR [stderr] (main)    at org.jboss.as.host.controller.Main.determineEnvironment(Main.java:392)
            [Host Controller] 07:12:15,683 ERROR [stderr] (main)    at org.jboss.as.host.controller.Main.boot(Main.java:120)
            [Host Controller] 07:12:15,683 ERROR [stderr] (main)    at org.jboss.as.host.controller.Main.create(Main.java:115)
            [Host Controller] 07:12:15,690 ERROR [stderr] (main)    at org.jboss.as.host.controller.Main.main(Main.java:104)
            [Host Controller] 07:12:15,690 ERROR [stderr] (main)    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            [Host Controller] 07:12:15,691 ERROR [stderr] (main)    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

             

            Regards,

            Justin

            • 3. Re: Re: Jboss domain Starting issue
              Jay SenSharma Master
              java.lang.IllegalStateException: JBAS014805: Could not get main file: host-master.xml. Specified files must be relative to the configuration dir: /opt/jboss_master/profiles/nlptc27b09/configuration
              
              

               

              The above Error indicates that the "host-master.xml" file is not present inside the "/opt/jboss_master/profiles/nlptc27b09/configuration" directory.

               

              I am suspecting that you might be have set the "jboss.domain.base.dir"  or  "jboss.domain.config.dir"  system properties incorrectly  Or the files are missing in the above mentioned directory. 

               

              As i see that you   [JBOSS_HOME: /opt/jboss_master]  so ideally as a default configuration the "jboss.domain.base.dir" should be pointing to "/opt/jboss_master/domain", Until unless you have explicitly configured to point it to point it to "/opt/jboss_master/profiles/nlptc27b09".

               

               

              From the error it looks like you have configured your wildfly scripts in such a way that it will  use "/opt/jboss_master/profiles/nlptc27b09/configuration"  as "jboss.domain.config.dir"

               

              **NOTE:** you must check your "/opt/jboss_master/domain/configuration/domain.properties"  if mistakenly you have defined "jboss.domain.base.dir"  or  "jboss.domain.config.dir" system properties incorrectly

              • 4. Re: Re: Jboss domain Starting issue
                Justin Judith Newbie

                Hi Jay,

                 

                Thanks, and fortunately it does work Domain controller. Now I am facing Host Controller starting issue. Need your help in this regards.

                 

                [root@ggns1dssjboss07 bin]# ./domain.sh --domain-config=domain.xml --host-config=host-slave.xml -P file:////opt/jboss/192.168.253.113/configs/domain.properties
                =========================================================================

                  JBoss Bootstrap Environment

                  JBOSS_HOME: /opt/jboss

                  JAVA: java

                  JAVA_OPTS: -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djboss.domain.default.config=domain.xml -Djboss.host.default.config=host.xml

                =========================================================================

                22:10:22,557 INFO  [org.jboss.modules] (main) JBoss Modules version 1.1.1.GA
                22:10:22,667 INFO  [org.jboss.as.process.Host Controller.status] (main) JBAS012017: Starting process 'Host Controller'
                [Host Controller] 22:10:23,398 INFO  [org.jboss.modules] (main) JBoss Modules version 1.1.1.GA
                [Host Controller] 22:10:23,568 INFO  [org.jboss.msc] (main) JBoss MSC version 1.0.2.GA
                [Host Controller] 22:10:23,728 INFO  [org.jboss.as] (MSC service thread 1-1) JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting
                [Host Controller] 22:10:24,399 ERROR [org.jboss.as.host.controller] (Controller Boot Thread) JBAS010932: Caught exception during boot: org.jboss.as.controller.persistence.ConfigurationPersistenceException: JBAS014676: Failed to parse configuration
                [Host Controller]       at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:141) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
                [Host Controller]       at org.jboss.as.host.controller.HostControllerConfigurationPersister.load(HostControllerConfigurationPersister.java:158) [jboss-as-host-controller-7.1.1.Final.jar:7.1.1.Final]
                [Host Controller]       at org.jboss.as.host.controller.DomainModelControllerService.boot(DomainModelControllerService.java:315) [jboss-as-host-controller-7.1.1.Final.jar:7.1.1.Final]
                [Host Controller]       at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:155) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
                [Host Controller]       at java.lang.Thread.run(Thread.java:636) [rt.jar:1.6.0_17]
                [Host Controller] Caused by: com.ctc.wstx.exc.WstxParsingException: Unexpected '<'  in attribute value
                [Host Controller]  at [row,col {unknown-source}]: [9,37]
                [Host Controller]       at com.ctc.wstx.sr.StreamScanner.constructWfcException(StreamScanner.java:606)
                [Host Controller]       at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:479)
                [Host Controller]       at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:464)
                [Host Controller]       at com.ctc.wstx.sr.BasicStreamReader.parseAttrValue(BasicStreamReader.java:1921)
                [Host Controller]       at com.ctc.wstx.sr.BasicStreamReader.handleNsAttrs(BasicStreamReader.java:3028)
                [Host Controller]       at com.ctc.wstx.sr.BasicStreamReader.handleStartElem(BasicStreamReader.java:2926)
                [Host Controller]       at com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2802)
                [Host Controller]       at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1050)
                [Host Controller]       at com.ctc.wstx.sr.BasicStreamReader.nextTag(BasicStreamReader.java:1125)
                [Host Controller]       at org.jboss.staxmapper.XMLExtendedStreamReaderImpl.nextTag(XMLExtendedStreamReaderImpl.java:152) [staxmapper-1.1.0.Final.jar:1.1.0.Final]
                [Host Controller]       at org.jboss.as.domain.management.parsing.ManagementXml.parseServerIdentities(ManagementXml.java:328) [jboss-as-domain-management-7.1.1.Final.jar:7.1.1.Final]
                [Host Controller]       at org.jboss.as.domain.management.parsing.ManagementXml.parseSecurityRealm_1_1(ManagementXml.java:309) [jboss-as-domain-management-7.1.1.Final.jar:7.1.1.Final]
                [Host Controller]       at org.jboss.as.domain.management.parsing.ManagementXml.parseSecurityRealms(ManagementXml.java:247) [jboss-as-domain-management-7.1.1.Final.jar:7.1.1.Final]
                [Host Controller]       at org.jboss.as.domain.management.parsing.ManagementXml.parseManagement(ManagementXml.java:130) [jboss-as-domain-management-7.1.1.Final.jar:7.1.1.Final]
                [Host Controller]       at org.jboss.as.host.controller.parsing.HostXml.readHostElement_1_1(HostXml.java:386) [jboss-as-host-controller-7.1.1.Final.jar:7.1.1.Final]
                [Host Controller]       at org.jboss.as.host.controller.parsing.HostXml.readElement(HostXml.java:126) [jboss-as-host-controller-7.1.1.Final.jar:7.1.1.Final]
                [Host Controller]       at org.jboss.as.host.controller.parsing.HostXml.readElement(HostXml.java:103) [jboss-as-host-controller-7.1.1.Final.jar:7.1.1.Final]
                [Host Controller]       at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110) [staxmapper-1.1.0.Final.jar:1.1.0.Final]
                [Host Controller]       at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69) [staxmapper-1.1.0.Final.jar:1.1.0.Final]
                [Host Controller]       at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:133) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]

                 

                Regards,

                Justin

                • 5. Re: Jboss domain Starting issue
                  Jay SenSharma Master

                  Please check line number 9 and column number 37 of your host-slave.xml file to see if mistakenly you have added an extra "<" symboll there?  If yes then remove it and then restart it again.    Most probably around the <server-identities> tag you might have an additional  '<'

                  • 6. Re: Re: Jboss domain Starting issue
                    Justin Judith Newbie

                    JIRA_Domain issue.pngHi Jay,

                     

                    Thanks for correcting me.

                    I did correct it that and I am getting different issue here now. Please help in this regards.

                     

                    1. After I did correct my host-slave.xml file I am getting different issues again and again help to resolve this issue with attached my host-slave.xml file.

                    2. I did configure my Domain controller and it's starting but it couldn't coming any username password page and it's says as running. (attached the screenshots please help me)


                    Please correct me if I configure anything wrongly.

                     

                    [Host Controller] 13:38:59,556 ERROR [org.jboss.as.host.controller] (Controller Boot Thread) JBAS010932: Caught exception during boot: org.jboss.as.controller.persistence.ConfigurationPersistenceException: JBAS014676: Failed to parse configuration

                    [Host Controller]       at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:141) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]

                    [Host Controller]       at org.jboss.as.host.controller.HostControllerConfigurationPersister.load(HostControllerConfigurationPersister.java:158) [jboss-as-host-controller-7.1.1.Final.jar:7.1.1.Final]

                    [Host Controller]       at org.jboss.as.host.controller.DomainModelControllerService.boot(DomainModelControllerService.java:315) [jboss-as-host-controller-7.1.1.Final.jar:7.1.1.Final]

                    [Host Controller]       at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:155) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]

                    [Host Controller]       at java.lang.Thread.run(Thread.java:636) [rt.jar:1.6.0_17]

                    [Host Controller] Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[7,2]

                    [Host Controller] Message: JBAS014789: Unexpected element '{urn:jboss:domain:1.2}security-realm' encountered

                    [Host Controller]       at org.jboss.as.controller.parsing.ParseUtils.unexpectedElement(ParseUtils.java:85) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]

                    [Host Controller]       at org.jboss.as.domain.management.parsing.ManagementXml.parseManagement(ManagementXml.java:155) [jboss-as-domain-management-7.1.1.Final.jar:7.1.1.Final]

                    [Host Controller]       at org.jboss.as.host.controller.parsing.HostXml.readHostElement_1_1(HostXml.java:386) [jboss-as-host-controller-7.1.1.Final.jar:7.1.1.Final]

                    [Host Controller]       at org.jboss.as.host.controller.parsing.HostXml.readElement(HostXml.java:126) [jboss-as-host-controller-7.1.1.Final.jar:7.1.1.Final]

                    [Host Controller]       at org.jboss.as.host.controller.parsing.HostXml.readElement(HostXml.java:103) [jboss-as-host-controller-7.1.1.Final.jar:7.1.1.Final]

                    [Host Controller]       at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110) [staxmapper-1.1.0.Final.jar:1.1.0.Final]

                    [Host Controller]       at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69) [staxmapper-1.1.0.Final.jar:1.1.0.Final]

                    [Host Controller]       at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:133) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]

                     

                    host-slave.xml

                    <?xml version='1.0' encoding='UTF-8'?>

                    <host name="slave1" xmlns="urn:jboss:domain:1.2">

                      <management>

                      

                    <security-realm name="ManagementRealm">

                      <server-identities>

                      <secret value="MTIz"/>

                      </server-identities>

                      <authentication>

                      <local default-user="$local"/>

                      <properties path="mgmt-users.properties" relative-to="jboss.domain.config.dir"/>

                      </authentication>

                      </security-realm>

                    <management-interfaces>

                      <native-interface security-realm="ManagementRealm"/>

                      <socket interface="management" port="${jboss.management.native.port:9999}"/>

                      </native-interface>

                      </management-interfaces>

                      </management>

                      <domain-controller>

                      <remote host="${jboss.domain.master.address}" port="${jboss.domain.master.port:9999}" security-realm="ManagementRealm" username="${jboss.domain.login.user}"/>

                      </domain-controller>

                      <interfaces>

                      <interface name="management">

                      <inet-address value="${jboss.bind.address.management:127.0.0.1}"/>

                      </interface>

                      <interface name="public">

                      <inet-address value="${jboss.bind.address:127.0.0.1}"/>

                      </interface>

                      <interface name="unsecure">

                      <!-- Used for IIOP sockets in the standard configuration.

                      To secure JacORB you need to setup SSL -->

                      <inet-address value="${jboss.bind.address.unsecure:127.0.0.1}"/>

                      </interface>

                      </interfaces>

                      <jvms>

                      <jvm name="default">

                      <heap size="64m" max-size="256m"/>

                      <permgen size="256m" max-size="256m"/>

                      <jvm-options>

                      <option value="-server"/>

                      </jvm-options>

                      </jvm>

                      </jvms>

                      <servers>

                      <server name="server-one" group="main-server-group"/>

                      <server name="server-two" group="other-server-group">

                      <!-- server-two avoids port conflicts by incrementing the ports in

                      the default socket-group declared in the server-group -->

                      <socket-bindings port-offset="150"/>

                      </server>

                      </servers>

                    </host>

                     


                    l

                    Regards,

                    Justin

                    • 7. Re: Re: Re: Jboss domain Starting issue
                      Jay SenSharma Master

                      Justin,

                      u have missing tag  <security-realms>    in your host-slave.xml file at line 4. pelase see the below high lighted tag:

                       

                      host-slave.xml

                      <?xml version='1.0' encoding='UTF-8'?>

                      <host name="slave1" xmlns="urn:jboss:domain:1.2">

                        <management>

                        <security-realms>

                      <security-realm name="ManagementRealm">

                        <server-identities>

                        <secret value="MTIz"/>

                        </server-identities>

                        <authentication>

                        <local default-user="$local"/>

                        <properties path="mgmt-users.properties" relative-to="jboss.domain.config.dir"/>

                        </authentication>

                        </security-realm>

                           .

                           .

                           .

                      </security-realms>


                      Also your secret value MTIz does not look right, Let us know how you generated that secret value.