I just used NetBeans 8.0.1 and GlassFish 4.1 for 2 old projects that worked well with NetBeans 8.0 and GlassFish 4.0.
Now (with NetBeans 8.0.1) I get the error message "tInvalid resource: jdbc / nameOfTheSource__pm" during project deployment.
The JDBC resource and connection pool are defined by glassfish-resources.xml (generated by NetBeans when I defined a new object with the option "Create Permanent Unit" and "New Data Source").
If I use glassfish resources directly with the add-resource asadmin command, everything works on the server: a connection pool and JDBC resources are created. Therefore, the problem does not arise from this file.
As if glassfish-resources.xml were ignored during deployment.
Did anyone have the same problem (and have an explanation)?
My environment: NetBeans 8.0.1, GlassFish 4.1, Java DB 10.10.1.2 - (1495037) (from Java 8.0).
A related question: how are glass fish used during deployment? It is not included in EAR or WAR files.
Thanks in advance for your help.
source
share