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

Renann Prado (JIRA) issues at jboss.org
Sun Jan 31 21:50:00 EST 2016


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

Renann Prado commented on WFLY-6099:
------------------------------------

Cool. Thanks.
I've just done what you said and now at least the error changed.
Basically I'm getting this exception, which was also happening with MariaDB's driver, so I changed to MySQL's and still get the below exception.

{code}
Caused by: java.lang.ClassCastException: com.mysql.jdbc.Driver cannot be cast to javax.sql.DataSource
	at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.getDataSource(LocalManagedConnectionFactory.java:634)
	... 39 more
{code}

Full log has been attached.


> 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
>    Affects Versions: 10.0.0.Final
>            Reporter: Renann Prado
>            Assignee: Jason Greene
>         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