10 Replies Latest reply on Sep 8, 2015 6:35 AM by Tomaz Cerar

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

    Ganesh Neelekani Newbie

      Hi Everyone,

       

       

      I Will come to the point,

       

      When i restart the server I am getting error as

       

      05:07:09,971 INFO  [org.jboss.modules] (main) JBoss Modules version 1.1.1.GA

      05:07:10,124 INFO  [org.jboss.as.process.Host Controller.status] (main) JBAS012017: Starting process 'Host Controller'

      [Host Controller] 05:07:10,689 INFO  [org.jboss.modules] (main) JBoss Modules version 1.1.1.GA

      [Host Controller] 05:07:10,868 INFO  [org.jboss.msc] (main) JBoss MSC version 1.0.2.GA

      [Host Controller] 05:07:10,947 INFO  [org.jboss.as] (MSC service thread 1-3) JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting

      [Host Controller] 05:07:11,686 INFO  [org.xnio] (MSC service thread 1-4) XNIO Version 3.0.3.GA

      [Host Controller] 05:07:11,704 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.DomainModelControllerService.boot(DomainModelControllerService.java:374) [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:722) [rt.jar:1.7.0_06]

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

      [Host Controller] Message: Unexpected element '{urn:jboss:domain:1.2}host'

      [Host Controller]       at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:108) [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 Controller]       ... 3 more

      [Host Controller]

      [Host Controller] 05:07:11,707 INFO  [org.xnio.nio] (MSC service thread 1-4) XNIO NIO Implementation Version 3.0.3.GA

      [Host Controller] 05:07:11,714 FATAL [org.jboss.as.host.controller] (Controller Boot Thread) JBAS010933: Host Controller boot has failed in an unrecoverable manner; exiting. See previous messages for details.

      [Host Controller] 05:07:11,733 INFO  [org.jboss.remoting] (MSC service thread 1-4) JBoss Remoting version 3.2.3.GA

      [Host Controller] 05:07:11,781 INFO  [org.jboss.as] (MSC service thread 1-2) JBAS015950: JBoss AS 7.1.1.Final "Brontes" stopped in 55ms

      05:07:12,103 INFO  [org.jboss.as.process.Host Controller.status] (reaper for Host Controller) JBAS012010: Process 'Host Controller' finished with an exit status of 99

      05:07:12,105 INFO  [org.jboss.as.process] (Thread-8) JBAS012016: Shutting down process controller

      05:07:12,106 INFO  [org.jboss.as.process] (Thread-8) JBAS012015: All processes finished; exiting

      28497

       

      But my host.bml consist only

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

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

       

      How this isuue can be tracked

       

      Please reply.......

      Regards

       

      Ganesh Neelekani

      Team Agile

        • 1. Re: Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[2,1]
          Mani Balaji Newbie

          Hi Ganesh,

            Me too face the same problem.Have u find answer for above error.Please help me to get out of the error.

          • 2. Re: Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[2,1]
            Ganesh Neelekani Newbie

            Hi Mani,

             

             

             

            I just took my back file and it solved..

            Can I look over your xml file,So that I can help you

            Can you attach your xml file

             

             

             

            Regards

            Ganesh Neelekani

            Team Agile

            India

            • 3. Re: Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[2,1]
              Mani Balaji Newbie

              Hi Ganesh,

                             I tried sample autentication with saml using picketlink. Acutually My problem was I tried to deploy an application which is given by jboss forum (sales.war &Employee.war).I got this error.

              • 4. Re: Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[2,1]
                Ganesh Neelekani Newbie

                HI Balaji,

                 

                 

                Where and when you getting this error.

                 

                 

                 

                Regards

                Ganesh N

                • 5. Re: Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[2,1]
                  Mani Balaji Newbie

                  Hi Ganesh..

                                       This is my error.

                  14:40:12,344 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.module.service."deployment.sales-post.war".main: org.jboss.msc.service.StartE

                  xception in service jboss.module.service."deployment.sales-post.war".main: Failed to load module: deployment.sales-post.war:main

                          at org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:91) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

                          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) [rt.jar:1.6.0_06]

                          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) [rt.jar:1.6.0_06]

                          at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_06]

                  Caused by: org.jboss.modules.ModuleLoadException: Error loading module from D:\jboss\jboss-as-7.1.1\modules\org\picketlink\main\module.xml

                          at org.jboss.modules.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:292)

                          at org.jboss.modules.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:242)

                          at org.jboss.modules.LocalModuleLoader.parseModuleInfoFile(LocalModuleLoader.java:138)

                          at org.jboss.modules.LocalModuleLoader.findModule(LocalModuleLoader.java:122)

                          at org.jboss.modules.ModuleLoader.loadModuleLocal(ModuleLoader.java:275)

                          at org.jboss.modules.ModuleLoader.preloadModule(ModuleLoader.java:222)

                          at org.jboss.modules.LocalModuleLoader.preloadModule(LocalModuleLoader.java:94)

                          at org.jboss.modules.ModuleLoader.preloadExportedModule(ModuleLoader.java:233)

                          at org.jboss.modules.ModuleLoader.preloadModule(ModuleLoader.java:246)

                          at org.jboss.as.server.moduleservice.ServiceModuleLoader.preloadModule(ServiceModuleLoader.java:160) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

                          at org.jboss.modules.Module.addPaths(Module.java:841)

                          at org.jboss.modules.Module.link(Module.java:1181)

                          at org.jboss.modules.Module.relinkIfNecessary(Module.java:1207)

                          at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:208)

                          at org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:70) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

                          ... 5 more

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

                  Message: The markup in the document following the root element must be well-formed.

                          at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(XMLStreamReaderImpl.java:588) [rt.jar:1.6.0_06]

                          at org.jboss.modules.ModuleXmlParser.parseEndDocument(ModuleXmlParser.java:1082)

                          at org.jboss.modules.ModuleXmlParser.parseDocument(ModuleXmlParser.java:549)

                          at org.jboss.modules.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:287)

                          ... 19 more

                  • 6. Re: Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[2,1]
                    Badiaa Makhlouf Newbie

                    Hi me too I have the same problem

                    10:43:56,663 Infos [org.jboss.modules] JBoss Modules version 1.1.1.GA

                    10:43:56,973 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA

                    10:43:57,054 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.0.Final "Thunder" starting

                    10:43:57,684 INFO  [org.jboss.as] JBAS015950: JBoss AS 7.1.0.Final "Thunder" stopped in 3ms

                    10:43:57,684 ERROR [org.jboss.as.controller] JBAS014601: Error booting the container: java.lang.RuntimeException: org.jboss.as.controller.persistence.ConfigurationPersistenceException: JBAS014676: Failed to parse configuration

                      at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:161) [jboss-as-controller-7.1.0.Final.jar:7.1.0.Final]

                      at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_03]

                    Caused by: org.jboss.as.controller.persistence.ConfigurationPersistenceException: JBAS014676: Failed to parse configuration

                      at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:125) [jboss-as-controller-7.1.0.Final.jar:7.1.0.Final]

                      at org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:187) [jboss-as-controller-7.1.0.Final.jar:7.1.0.Final]

                      at org.jboss.as.server.ServerService.boot(ServerService.java:261) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]

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

                      ... 1 more

                    Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[3,1]

                    Message: Unexpected element '{urn:jboss:domain:1.2}server'

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

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

                      at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:117) [jboss-as-controller-7.1.0.Final.jar:7.1.0.Final]

                      ... 4 more

                    what can I do?

                    • 7. Re: Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[2,1]
                      Wolfgang Mayer Master

                      One option to approach the root cause might be to copy over a "clean" xml (eg host.xml from zip file) and check if this is working.

                      If yes, then compare these 2 versions (and re apply the changes step by step)

                      • 8. Re: Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[2,1]
                        Badiaa Makhlouf Newbie

                        In fact I have a file called web.xml contains this  which is in webContenent/Web-Inf

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

                        <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:web="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">

                          <servlet>

                            <servlet-name>ControleurServlet</servlet-name>

                            <servlet-class>Web.ControleurServlet</servlet-class>

                          </servlet>

                          <servlet-mapping>

                            <servlet-name>ControleurServlet</servlet-name>

                            <url-pattern>/controleur</url-pattern>

                          </servlet-mapping>

                        </web-app>

                        I aslo had in the module ejb file called  persistence.xml

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

                        <persistence

                        xmlns="http://java.sun.com/xml/ns/persistence"

                        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

                        xsi:schemaLocation="http://java.sun.com/xml/ns/persistence

                        http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"

                        version="1.0">

                        <persistence-unit name="Administration">

                        <jta-data-source>java:/Administration</jta-data-source>

                        <class>metier.entities.Capacity</class>

                        <class>metier.entities.User</class>

                        <class>metier.entities.CoverageDL</class>

                        <class>metier.entities.FirstClass</class>

                        <properties>

                        <property name="hibernate.hbm2ddl.auto" value="update"/>

                        </properties>

                        </persistence-unit>

                        </persistence>

                        may you give me ur mail to send u the hole project sir

                        • 9. Re: Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[2,1]
                          Wolfgang Mayer Master

                          I don't think that JBoss is complaining the web.xml configuration here.

                          When checking the log files it is saying: '{urn:jboss:domain:1.2}host' which refers to the <host> element (in host.xml) or  '{urn:jboss:domain:1.2}server' which refers to the <server> element in jboss-service.xml

                          • 10. Re: Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[2,1]
                            Tomaz Cerar Master

                            host.xml &&/|| standalone.xml are the problems no other xml file