7 Replies Latest reply on May 15, 2012 7:06 AM by ctomc

    Jboss AS7.01 final parse error?

    dell1074

      14:44:29,229 INFO  [org.jboss.modules] JBoss Modules version 1.0.1.GA

      14:44:29,474 INFO  [org.jboss.msc] JBoss MSC version 1.0.0.GA

      14:44:29,529 INFO  [org.jboss.as] JBoss AS 7.0.1.Final "Zap" starting

      14:44:29,703 ERROR [stderr] Exception in thread "Controller Boot Thread" java.lang.RuntimeException: org.jboss.as.controller.persistence.ConfigurationPersistenceException: Failed to parse configuration

      14:44:29,704 ERROR [stderr]     at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:89)

      14:44:29,704 ERROR [stderr]     at java.lang.Thread.run(Thread.java:662)

      14:44:29,704 ERROR [stderr] Caused by: org.jboss.as.controller.persistence.ConfigurationPersistenceException: Failed to parse configuration

      14:44:29,704 ERROR [stderr]     at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:115)

      14:44:29,704 ERROR [stderr]     at org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:104)

      14:44:29,704 ERROR [stderr]     at org.jboss.as.server.ServerService.boot(ServerService.java:193)

      14:44:29,705 ERROR [stderr]     at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:83)

      14:44:29,705 ERROR [stderr]     ... 1 more

      14:44:29,705 ERROR [stderr] Caused by: java.lang.RuntimeException: Unable to determine a default name based on the local host name

      14:44:29,705 ERROR [stderr]     at org.jboss.as.controller.parsing.CommonXml.getDefaultName(CommonXml.java:184)

      14:44:29,705 ERROR [stderr]     at org.jboss.as.controller.parsing.StandaloneXml.readServerElement(StandaloneXml.java:137)

      14:44:29,705 ERROR [stderr]     at org.jboss.as.controller.parsing.StandaloneXml.readElement(StandaloneXml.java:91)

      14:44:29,706 ERROR [stderr]     at org.jboss.as.controller.parsing.StandaloneXml.readElement(StandaloneXml.java:79)

      14:44:29,706 ERROR [stderr]     at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:100)

      14:44:29,706 ERROR [stderr]     at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:59)

      14:44:29,706 ERROR [stderr]     at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:107)

      14:44:29,706 ERROR [stderr]     ... 4 more

      14:44:29,706 ERROR [stderr] Caused by: java.net.UnknownHostException: 127.0.0.1 dclstest: 127.0.0.1 dclstest

      14:44:29,706 ERROR [stderr]     at java.net.InetAddress.getLocalHost(InetAddress.java:1354)

      14:44:29,707 ERROR [stderr]     at org.jboss.as.controller.parsing.CommonXml.getDefaultName(CommonXml.java:182)

      14:44:29,707 ERROR [stderr]     ... 10 more

      ^C14:44:43,582 INFO  [org.jboss.as] JBoss AS 7.0.1.Final "Zap" stopped in 0ms

        • 1. Re: Jboss AS7.01 final parse error?
          tbrooke

          This indicates "assumed answered" but I am having the same problem with a new jboss as7 installation on Fedora 15.

           

          What is the answer?

          • 2. Re: Jboss AS7.01 final parse error?
            dlofthouse

            JBoss AS is making the following call to determine a server name: -

             

            InetAddress.getLocalHost().getHostName();

             

            However this is failing with an UnknownHostException which suggests there may be an issue with your local network configuration.

             

            To work around this error try adding a 'name' attribute with the name of your server to the server element in your standalone.xml e.g.

             

            <server name="standalone" xmlns="urn:jboss:domain:1.0">

            • 3. Re: Jboss AS7.01 final parse error?
              dlofthouse

              Just to add, then you say you are getting the same error I have assumed you have compared the stack trace shown and are experiencing the same underlying cause as shown: -

               

              14:44:29,705 ERROR [stderr] Caused by: java.lang.RuntimeException: Unable to determine a default name based on the local host name

              14:44:29,705 ERROR [stderr]     at org.jboss.as.controller.parsing.CommonXml.getDefaultName(CommonXml.java:184)

              14:44:29,705 ERROR [stderr]     at org.jboss.as.controller.parsing.StandaloneXml.readServerElement(StandaloneXml.java:137)

              • 4. Re: Jboss AS7.01 final parse error?
                nickarls
                • 5. Re: Jboss AS7.01 final parse error?
                  tbrooke

                  added <server name = "standalone" and solved the problem - up and running thanks

                  • 6. Re: Jboss AS7.01 final parse error?
                    unwichtich

                    i got the same error in 7.1.1 Final

                     

                    i changed the second line in standalone.xml to: <server name="standalone" xmlns="urn:jboss:domain:1.2">

                     

                    but this doesn't help

                     

                    any other solutions?

                    • 7. Re: Jboss AS7.01 final parse error?
                      ctomc

                      hi unwichtich and welcome to forums.

                       

                      But please create new thread for your issue so we can track them separatly as 7.0.1 and 7.1.1 are quite different.

                      so please create new thread and post your stacktrace so we can help you better.

                       

                       

                      --

                      tomaz