im new in Microprofile world and im trying to create a microservices using Open Liberty as implementation. The main problem here starts when im trying to connect to my database using MySql, and i cant find the reason. My server.xml file is the next one:
<library id="jdbcLib">
<fileset dir="jdbc" includes="*.jar"/>
</library>
<dataSource jndiName="jdbc/myDB">
<jdbcDriver libraryRef="jdbcLib"/>
<properties serverName="localhost" portNumber="3306"
databaseName="inventory"
user="root"
password="root"/>
</dataSource>
And my persistence.xml file is:
<persistence-unit name="jpa-unit" transaction-type="JTA">
<jta-data-source>jdbc/myDB</jta-data-source>
<properties>
<property name="eclipselink.ddl-generation" value="create-tables"/>
<property name="eclipselink.ddl-generation.output-mode" value="both" />
</properties>
</persistence-unit>
I cant find what im doing wrong, but im getting the following exception:
java.sql.SQLNonTransientException: DSRA4000E: No implementations of [javax.sql.ConnectionPoolDataSource, javax.sql.DataSource, javax.sql.XADataSource, java.sql.Driver] are found for dataSource[default-0] with library jdbcLib
Someone could help me out with this? i would be very grateful :D