JBoss Server not starting up error Unexpected element: datasource

by Mears   Last Updated August 14, 2019 05:01 AM

I am configuring JBoss server and while starting the server with standalone mode,I am getting below exception for datasource configurations.

2019-08-14 00:22:39,605 INFO [org.wildfly.security] (ServerService Thread Pool -- 26) ELY00001: WildFly Elytron version 1.6.1.Final-redhat-00001 2019-08-14 00:22:39,776 INFO [org.jboss.as.controller] (Controller Boot Thread) OPVDX002: Failed to pretty print validation error: null 2019-08-14 00:22:39,777 ERROR [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0055: Caught exception during boot: org.jboss.as.controller.persistence.ConfigurationPersistenceException: WFLYCTL0085: Failed to parse configuration at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:143) at org.jboss.as.server.ServerService.boot(ServerService.java:377) at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:372) at java.lang.Thread.run(Thread.java:748) Caused by: javax.xml.stream.XMLStreamException: org.jboss.as.connector.util.ParserException: IJ010061: Unexpected element: datasource at org.jboss.as.connector.subsystems.datasources.DataSourcesExtension$DataSourceSubsystemParser.readElement(DataSourcesExtension.java:650) at org.jboss.as.connector.subsystems.datasources.DataSourcesExtension$DataSourceSubsystemParser.readElement(DataSourcesExtension.java:204) at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:122) at org.jboss.staxmapper.XMLExtendedStreamReaderImpl.handleAny(XMLExtendedStreamReaderImpl.java:69) at org.jboss.as.server.parsing.StandaloneXml_8.parseServerProfile(StandaloneXml_8.java:607) at org.jboss.as.server.parsing.StandaloneXml_8.readServerElement(StandaloneXml_8.java:240) at org.jboss.as.server.parsing.StandaloneXml_8.readElement(StandaloneXml_8.java:137) at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:120) at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:52) at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:122) at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:76) at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:126) ... 3 more Caused by: org.jboss.as.connector.util.ParserException: IJ010061: Unexpected element: datasource at org.jboss.as.connector.subsystems.datasources.DsParser.parse(DsParser.java:193) at org.jboss.as.connector.subsystems.datasources.DataSourcesExtension$DataSourceSubsystemParser.readElement(DataSourcesExtension.java:643) ... 14 more

Tags : jboss


Related Questions


Updated May 08, 2017 10:01 AM

Updated February 20, 2018 11:01 AM

Updated November 20, 2018 16:01 PM

Updated January 04, 2019 19:01 PM

Updated January 21, 2019 16:01 PM