I have a j2ee application deployed on GlassFish. I have mysql jars in GlassFish's lib directory. I am trying to use JPA, and my persistence file is:
<persistence-unit name="teamPU"
transaction-type="RESOURCE_LOCAL">
<provider>
oracle.toplink.essentials.PersistenceProvider
</provider>
<class>com.team.dao.Roles</class>
<properties>
<property name="toplink.jdbc.driver"
value="com.mysql.jdbc.Driver" />
<property name="toplink.jdbc.url"
value="jdbc:mysql://localhost:3306/test" />
<property name="toplink.jdbc.user" value="root" />
<property name="toplink.ddl-generation"
value="create-tables" />
</properties>
</persistence-unit>
i also have toplink-essentials* jars in lib. When I call dao.find*, it throws the No suitable driver. Don't I have all the jars where they should be?