[jboss-jira] [JBoss JIRA] (WFLY-6099) JPA's persistence.xml is deployed before datasources are created through application.xml

Scott Marlow (JIRA) issues at jboss.org
Mon Feb 1 12:35:00 EST 2016


    [ https://issues.jboss.org/browse/WFLY-6099?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13157232#comment-13157232 ] 

Scott Marlow commented on WFLY-6099:
------------------------------------

Try the following:
{quote}
    <data-source>
        <name>java:jboss/datasources/TestDS</name>
        <class-name>org.mariadb.jdbc.MariaDbDataSource</class-name>
        <url>jdbc:mariadb://mariadbvm:3306/test_db</url>
        <user>root</user>
        <password>123</password>
    </data-source>
{quote}

You could also use the org.mariadb.jdbc.MySQLDataSource class if you prefer.

> JPA's persistence.xml is deployed before datasources are created through application.xml
> ----------------------------------------------------------------------------------------
>
>                 Key: WFLY-6099
>                 URL: https://issues.jboss.org/browse/WFLY-6099
>             Project: WildFly
>          Issue Type: Bug
>          Components: JPA / Hibernate
>    Affects Versions: 10.0.0.Final
>            Reporter: Renann Prado
>            Assignee: Scott Marlow
>         Attachments: server_with_mysql_driver.log
>
>
> Please refer to discussion
> https://developer.jboss.org/thread/267371



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list