You should go further using:
$ cat src/main/tomee/conf/tomee.xml <?xml version="1.0" encoding="UTF-8"?> <tomee> <Resource id="jdbc/testDB" type="DataSource"> IgnoreDefaultValues true JdbcDriver com.mysql.jdbc.Driver JdbcUrl jdbc:mysql://localhost:3306/test UserName root Password pwd JtaManaged true jmxEnabled true </Resource> </tomee> $ cat src/main/webapp/WEB-INF/persistence.xml <persistence xmlns="http://java.sun.com/xml/ns/persistence" version="1.0"> <persistence-unit name="PRSX" transaction-type="JTA"> <jta-data-source>jdbc/testDB</jta-data-source> <class>com.TestEntity</class> <properties> <property name="openjpa.jdbc.DBDictionary" value="mysql"/> <property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema"/> </properties> </persistence-unit> </persistence> Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2012/12/14 avrono <[email protected]>: > I have put the source here https://github.com/avrono11/openejb_issue.git > <https://github.com/avrono11/openejb_issue.git> > > I was trying to launch the JSP - addItem.jsp - which has to offending > datasource > > > > > > -- > View this message in context: > http://openejb.979440.n4.nabble.com/Unable-to-configure-MYSQL-resource-in-tomee-xml-tp4659538p4659644.html > Sent from the OpenEJB User mailing list archive at Nabble.com.
