when you create a new JDBC Connection Pool for Application scoped resources in a Maven Project Netbeans creates the glassfish-resources.xml in "Other Sources/setup/". However this file gets never packed into the .war archive.
Moving it to "Other Sources/META-INF" works, as it puts the file to "/WEB-INF/classes/META-INF".
You are right.
NetBeans does not have wizards/etc. that support app scoped resources.
NetBeans does not prevent a user from modifying their app to use app scoped resources.
so, I am converting this to an RFE.
Ok thx. I solved this problem by moving the glassfish.xml to the WEB-INF folder, but I thought this was a bug.
App scoped resources are no used by default I believe.