Solucionado (ver solução)
Solucionado
(ver solução)
2
respostas

Erro WFLYSRV0055

Quando subo o servidor estou com esse erro no console

13:05:05,877 INFO  [org.jboss.modules] (main) JBoss Modules version 1.5.2.Final
13:05:06,313 INFO  [org.jboss.msc] (main) JBoss MSC version 1.2.6.Final
13:05:06,468 INFO  [org.jboss.as] (MSC service thread 1-6) WFLYSRV0049: WildFly Full 10.1.0.Final (WildFly Core 2.2.0.Final) starting
13:05:07,783 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:131)
    at org.jboss.as.server.ServerService.boot(ServerService.java:357)
    at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:299)
    at java.lang.Thread.run(Thread.java:748)
Caused by: javax.xml.stream.XMLStreamException: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[161,6]
Message: WFLYCTL0198: Unexpected element '{urn:jboss:domain:datasources:4.0}datasource' encountered
    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:200)
    at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110)
    at org.jboss.staxmapper.XMLExtendedStreamReaderImpl.handleAny(XMLExtendedStreamReaderImpl.java:69)
    at org.jboss.as.server.parsing.StandaloneXml_4.parseServerProfile(StandaloneXml_4.java:546)
    at org.jboss.as.server.parsing.StandaloneXml_4.readServerElement(StandaloneXml_4.java:242)
    at org.jboss.as.server.parsing.StandaloneXml_4.readElement(StandaloneXml_4.java:141)
    at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:103)
    at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:49)
    at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110)
    at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69)
    at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:123)
    ... 3 more
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[161,6]
Message: WFLYCTL0198: Unexpected element '{urn:jboss:domain:datasources:4.0}datasource' encountered
    at org.jboss.as.controller.parsing.ParseUtils.unexpectedElement(ParseUtils.java:89)
    at org.jboss.as.controller.parsing.ParseUtils.requireNoContent(ParseUtils.java:244)
    at org.jboss.as.connector.subsystems.datasources.DataSourcesExtension$DataSourceSubsystemParser.readElement(DataSourcesExtension.java:631)
    ... 14 more

13:05:07,790 FATAL [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.
13:05:07,824 INFO  [org.jboss.as] (MSC service thread 1-5) WFLYSRV0050: WildFly Full 10.1.0.Final (WildFly Core 2.2.0.Final) stopped in 9ms
2 respostas

module.xml

<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.3" name="org.postgresql">
    <resources>
        <resource-root path="postgresql-9.3-1104.jdbc41.jar"/>
    </resources>
    <dependencies>
        <module name="javax.api"/>
    </dependencies>
</module>

standalone-full

<datasource jndi-name="java:jboss/datasources/casadocodigoDS" pool-name="casadocodigoDS">
                    <connection-url>jdbc:postgresql://localhost:5432/livraria</connection-url>
                    <connection-property name="DatabaseName">
                        livraria
                    </connection-property>
                    <driver>postgresql</driver>
                    <pool>
                        <min-pool-size>10</min-pool-size>
                        <max-pool-size>20</max-pool-size>
                    </pool>
                    <security>
                        <user-name>postgres</user-name>
                        <password>root</password>
                    </security>
                </datasource>
                <drivers>
                    <driver name="postgresql" module="org.postgresql">
                        <datasource-class>org.postgresql.Driver</datasource-class>
                    </driver>
                </drivers>
solução!

Olá Renato!

A mensagem abaixo é a que aponta para o verdadeiro problema:

ParseError at [row,col]:[161,6]
Unexpected element '{urn:jboss:domain:datasources:4.0}datasource' encountered

Ele diz que é na linha 161, coluna 6 do seu arquivo standalone.xml. Se não me engano, essa deveria ser a linha da declaração do subsystem de datasource.

A palavra datasource não existe nesse ponto:

{urn:jboss:domain:datasources:4.0}datasource

Apague essa palavra, deixando apenas:

{urn:jboss:domain:datasources:4.0}