Unfortunately, the GlassFish console sometimes fails spectacularly when you try creating a resource with it. Here is another approach.
$GLASSFISH/bin/asadmin start-domain
$GLASSFISH/bin/asadmin create-jdbc-resource --connectionpoolid=DerbyPool RESOURCENAME
RESOURCENAME
with jdbc/books__pm
and jdbc/books__nontx
jdbc/books
parts above with your JTA data source, which is located in your project: JPA Content>persistence.xml
, look inside the Source
tab, see the jta-data-source
element