I have just used NetBeans 8.0.1 and GlassFish 4.1 for 2 old projects which worked well with NetBeans 8.0 and GlassFish 4.0.
Now (with NetBeans 8.0.1) I get an error "tInvalid resource : jdbc/nameOfTheSource__pm" during the deployment of the projects.
The JDBC resource and the connection pool are defined by glassfish-resources.xml (generated by NetBeans when I defined a new entity with the option "Create Persistent Unit" and "New Data Source").
If I use directly glassfish-resources by the command add-resource of asadmin, on the server, all is working: the connection pool and the JDBC resources are created. So the problem does not come from this file.
It is as if glassfish-resources.xml were ignored during the deployment.
Did someone had 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).
Related question : how glassfish-resources is used during the deployment? It is not included in the EAR or WAR files.
Thanks in advance for your help.