Wildfly 9.0.1.Final: EAR deployment failed

南笙酒味 提交于 2019-12-02 12:45:42

You have to make sure your datasource is defined. In your standalone-full.xml you need to include the definition, something like:

<datasource jndi-name="java:datasources/WEBFDMS" pool-name="WEBFDMS" enabled="true" use-java-context="true">
    <connection-url>jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE</connection-url>
    <driver>h2</driver>
    <security>
        <user-name>sa</user-name>
        <password>sa</password>
    </security>
</datasource>

"java:datasources/WEBFDMS" might have to be "java:jboss/datasources/WEBFDMS"

Of course, this datasource definition will simply create an in-memory datasource. In order to connect to a running database (mysql, oracle, etc) you will have to configure it differently.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!