If you have tried adding a recent nightly build of GlassFish 4.1 to the server configurations in NetBeans, you may have come across the following problem:
The solution is as follows:
cd glassfish4/glassfish/lib/install/applications/__admingui/WEB-INF/lib/ mv console-core-4.2-SNAPSHOT.jar console-4.1.jar
This deficiency of the NetBeans server plugin is covered by Bug #250165
Same problem to add recent nightly 5.0 🙁