3 Replies Latest reply on May 15, 2014 5:20 PM by Frank Langelage

    IJ010061: Unexpected element: subsystem

    pavan kumar Newbie

      Getting the following error when starting WildFly. Can anyone please help? Thank you.

       

      11:30:14,052 INFO  [org.jboss.as] (MSC service thread 1-2) JBAS015899: WildFly 8.0.0.Final "WildFly" starting

      11:30:14,970 ERROR [org.jboss.as.server] (Controller Boot Thread) JBAS015956: Caught exception during boot: org.jboss.as.controller.persistence.ConfigurationPersistenceException: JBAS014676: Failed to parse configuration

              at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:112) [wildfly-controller-8.0.0.Final.jar:8.0.0.Final]

              at org.jboss.as.server.ServerService.boot(ServerService.java:331) [wildfly-server-8.0.0.Final.jar:8.0.0.Final]

              at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:256) [wildfly-controller-8.0.0.Final.jar:8.0.0.Final]

              at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_55]

      Caused by: javax.xml.stream.XMLStreamException: org.jboss.as.connector.util.ParserException: IJ010061: Unexpected element: subsystem

              at org.jboss.as.connector.subsystems.datasources.DataSourcesExtension$DataSourceSubsystemParser.readElement(DataSourcesExtension.java:637)

              at org.jboss.as.connector.subsystems.datasources.DataSourcesExtension$DataSourceSubsystemParser.readElement(DataSourcesExtension.java:193)

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

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

              at org.jboss.as.server.parsing.StandaloneXml.parseServerProfile(StandaloneXml.java:1131) [wildfly-server-8.0.0.Final.jar:8.0.0.Final]

              at org.jboss.as.server.parsing.StandaloneXml.readServerElement_1_4(StandaloneXml.java:458) [wildfly-server-8.0.0.Final.jar:8.0.0.Final]

              at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:145) [wildfly-server-8.0.0.Final.jar:8.0.0.Final]

              at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:107) [wildfly-server-8.0.0.Final.jar:8.0.0.Final]

              at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110) [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:104) [wildfly-controller-8.0.0.Final.jar:8.0.0.Final]

              ... 3 more

      Caused by: org.jboss.as.connector.util.ParserException: IJ010061: Unexpected element: subsystem

              at org.jboss.as.connector.subsystems.datasources.DsParser.parseDataSources(DsParser.java:218)

              at org.jboss.as.connector.subsystems.datasources.DsParser.parse(DsParser.java:173)

              at org.jboss.as.connector.subsystems.datasources.DataSourcesExtension$DataSourceSubsystemParser.readElement(DataSourcesExtension.java:628)

              ... 13 more

       

      11:30:14,979 FATAL [org.jboss.as.server] (Controller Boot Thread) JBAS015957: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.

        • 1. Re: IJ010061: Unexpected element: subsystem
          Jeff Mesnil Master

          From the stack trace, it seems you have an unexpected <subsystem> element in your XML configuration file near the urn:jboss:domain:datasources subsystem element

          1 of 1 people found this helpful
          • 2. Re: IJ010061: Unexpected element: subsystem
            pavan kumar Newbie

            Jeff,

             

            Your suggestion, helped made some minor changes. But getting the following error now (below in bold) not sure why, I havent updated anything there..

             

            09:32:09,838 ERROR [org.jboss.as.server] (Controller Boot Thread) JBAS015956: Caught exception during boot: org.jboss.as.controller.persistence.ConfigurationPersistenceException: JBAS014676: Failed to parse configuration

                    at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:112) [wildfly-controller-8.0.0.Final.jar:8.0.0.Final]

                    at org.jboss.as.server.ServerService.boot(ServerService.java:331) [wildfly-server-8.0.0.Final.jar:8.0.0.Final]

                    at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:256) [wildfly-controller-8.0.0.Final.jar:8.0.0.Final]

                    at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_55]

            Caused by: com.ctc.wstx.exc.WstxParsingException: Illegal to have multiple roots (start tag in epilog?).

            at [row,col {unknown-source}]: [189,10]

                    at com.ctc.wstx.sr.StreamScanner.constructWfcException(StreamScanner.java:606)

                    at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:479)

                    at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:464)

                    at com.ctc.wstx.sr.BasicStreamReader.handleExtraRoot(BasicStreamReader.java:2160)

                    at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2075)

                    at com.ctc.wstx.sr.BasicStreamReader.closeContentTree(BasicStreamReader.java:2909)

                    at com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2652)

                    at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1072)

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

                    at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:104) [wildfly-controller-8.0.0.Final.jar:8.0.0.Final]

                    ... 3 more

             

            09:32:09,843 FATAL [org.jboss.as.server] (Controller Boot Thread) JBAS015957: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.

             

            From standalone.xml

            line 189

             

                    <subsystem xmlns="urn:jboss:domain:deployment-scanner:2.0">

                        <deployment-scanner path="deployments" relative-to="jboss.server.base.dir" scan-interval="5000" runtime-failure-causes-rollback="${jboss.deployment.scanner.rollback.on.failure:false}"/>

                    </subsystem>

            • 3. Re: IJ010061: Unexpected element: subsystem
              Frank Langelage Master

              Most helpful would be to attach the complete standalone.xml file to this thread.

              I suppose the error is right before 189 as deployment-scanner follows datasources.