I am trying to use JPA with Spring MVC using maven. I am new to all three and am stuck at trying to follow the steps in http://www.objectdb.com/tutorial/jpa/eclipse/web..Instead of objectDB, I am using MySQL.. I have added the following dependency to pom.xml
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.6</version>
</dependency>
Following is my persistence.xml
<persistence-unit name="GuestbookPU" >
<provider>com.objectdb.jpa.Provider</provider>
<!-- <properties>
<property name="javax.persistence.jdbc.url" value="$objectdb/db/guests.odb"/>
<property name="javax.persistence.jdbc.user" value="admin"/>
<property name="javax.persistence.jdbc.password" value="admin"/>
</properties> -->
<properties>
<property name="javax.persistence.jdbc.driver" value="com.mysql.jdbc.Driver" />
<property name="javax.persistence.jdbc.url" value="jdbc:mysql://172.22.201.142:3306/" />
<property name="javax.persistence.jdbc.user" value="tcm_user" />
<property name="javax.persistence.jdbc.password" value="tcm_pwd" />
</properties>
</persistence-unit>
Also, I am using Tomcat and I am not sure if it supports JPA, so I tried tomEE but I am still getting error
java.io.FileNotFoundException: jdbc:mysql:\172.22.201.142:3306 (The filename, directory name, or volume label syntax is incorrect)
The rest of the modules are same as the tutorial, please let me know where I am going wrong.