Glassfish standalone client application built with Maven
I am trying to make a standalone JMS application which is currently working with JBoss work with Glassfish. The GF Im using is a current 4.0 that came as part of the Oracle JEE 7.0 download.
I have tried getting an InitialContext with and without a jndi.properties file, but I get the same NullPointerException in each case. Here's the jndi.properties:
Using Google, I found others with a similar problem who claim to have fixed it by manually including appserv-rt.jar and gf_client.jar from the GF subdirectories. The problem is, I am building the project with Maven, and I don't want to shoehorn a bunch of JARs in manually.
Does anyone have a definitive list of Maven dependencies that will add the needed JARs to a standalone client application ? In searching the Maven repositories with the NetBeans tool, I find several hits for appserv-tr and gf-client, but I can't tell which are correct. When I add the ones I've tried to add, I either continue to get the NPE or else the project build fails saying that POMs for 7 or 8 GF JARs are missing.