I'm running : so: linux ubuntu 17 db: postgresql java 8 netbeans ide 8
I'm triying a jpa application in j2ee but with problem with the jta
reference to my
connection pool configured in glassfish
I've configured a pool name and jdbc resorce jndi name at glassfish5, both of them are binded.
JDBC RESOURCE : jdbc/MYDB2B__pm DBC POOL associated : MYDB2Bpool
I've configured a persistence.xml in my mave proyect at /META-INF
<?xml version="1.0" encoding="UTF-8"?> <persistence xmlns="http://java.sun.com/xml/ns/persistence"> <persistence-unit name ="personaPU"> <jta-data-source>jdbc/MyDB2DB__pm</jta-data-source> </persistence-unit> </persistence>
When I clean and build or run any test file I received the next message:
Jun 29, 2019 9:05:12 PM org.glassfish.api.ActionReport failure SEVERE: Exception while invoking class org.glassfish.persistence.jpa.JPADeployer prepare method java.lang.RuntimeException: Invalid resource : jdbc/MyDB2DB__pm