To be fair, I'm not sure this is a bug so much as something that deserves to be explained.
When you use the maven-embedded-glassfish-plugin, you connect to the running Glassfish instance by doing:
Obviously for this to work a jndi.properties has to be on the classpath somewhere. Merely using the maven-embedded-glassfish-plugin is not sufficient.
There needs to be an as-easy-as-possible way to have "new InitialContext()" Just Work.