[
https://issues.jboss.org/browse/WFLY-6099?page=com.atlassian.jira.plugin....
]
Renann Prado edited comment on WFLY-6099 at 2/1/16 12:55 PM:
-------------------------------------------------------------
I'll try soon and let you know. Thanks!
However I still find strange how this is working:
In *standalone.xml*:
{code:xml}
<datasource jta="true" jndi-name="java:jboss/datasources/TestDS"
pool-name="TestDS" enabled="true" use-ccm="true">
<connection-url>jdbc:mariadb://107.155.108.92:3306/test_db</connection-url>
<driver-class>org.mariadb.jdbc.Driver</driver-class>
<driver>mariadb-java-client-1.3.4.jar</driver>
<security>
<user-name>root</user-name>
<password>123</password>
</security>
<validation>
<valid-connection-checker
class-name="org.jboss.jca.adapters.jdbc.extensions.mysql.MySQLValidConnectionChecker"/>
<background-validation>true</background-validation>
<exception-sorter
class-name="org.jboss.jca.adapters.jdbc.extensions.mysql.MySQLExceptionSorter"/>
</validation>
</datasource>
{code}
As you can see the driver class is "wrong".
was (Author: renannp):
I'll try soon and let you know. Thanks!
However I still find strange how this is working:
In *standalone.xml*:
{code:xml}
<datasource jta="true" jndi-name="java:jboss/datasources/TestDS"
pool-name="TestDS" enabled="true" use-ccm="true">
<connection-url>jdbc:mariadb://107.155.108.92:3306/test_db</connection-url>
<driver-class>org.mariadb.jdbc.Driver</driver-class>
<driver>mariadb-java-client-1.3.4.jar</driver>
<security>
<user-name>root</user-name>
<password>123</password>
</security>
<validation>
<valid-connection-checker
class-name="org.jboss.jca.adapters.jdbc.extensions.mysql.MySQLValidConnectionChecker"/>
<background-validation>true</background-validation>
<exception-sorter
class-name="org.jboss.jca.adapters.jdbc.extensions.mysql.MySQLExceptionSorter"/>
</validation>
</datasource>
{code}
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)