I came across a quirky bug I am having trouble replicating while running the Java EE 7 hands-on-lab: http://glassfish.java.net/hol/.
When people open the starting project (http://glassfish.java.net/hol/movieplex7-starting-template.zip) in NetBeans, for some random folks, NetBeans automatically adds some Jersey dependencies into the POM. It seems this happens because NetBeans does not detect a Jersey application configuration and tries to "fix" the project. In some cases, folks might have accidentally clicked on OK on a dialog without understanding what NetBeans would do. In casual observation, this seems to happen on Macs and Linux distributions, but not on Windows (I am running Windows).
The Jersey dependencies added are completely redundant on GlassFish 4 and more importantly, they fail the deployment unless the POM is manually fixed.
Please help investigate this, it causes quite a bit of problems for the lab.
Duplicate of https://netbeans.org/bugzilla/show_bug.cgi?id=232922
*** This bug has been marked as a duplicate of bug 232922 ***