This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
-The projects below failed to build/run with Netbean 6.0 IDE while they were ok to build & execute with Netbean 5.5 IDE. -Netbean 6.0 should be compatible with 5.5 BluePrints: petstore, persistence, JavaEE Enterprise: annotation-override-interceptor-ear, customer-cmp-ear, interceptor-stateless-ear, security-stateless-ear , lottery-annotation-ear, servlet-staeless-ear STEPS TO REPRODUCE: 1. Install nightly Netbean 6.0 build 08/134/2007 2. Install promoted SDK 503 b25 (glassfish V2 b58) build from http://javaweb.sfbay/java/re/javaeesdk/5.0_03/promoted/fcs/b25/bundles/ 3. Open each of the samples listed above to build and run BUG: Most samples encountered problem of missing target such as: "clean-ear, dist-ear, ...." does not exist in the project
Not an appserver plugin issue. This error happens only when any of the sample EAR projects are opened without opening the required projects ie ejb module or web module etc. In that case the sub-project's build-impl.xml does not exist and causes missing targets such as: "clean-ear, dist-ear, ... error messages on build. But if the samples projects are opened with the required projects, then build-impl.xml is generated and everything works. On closing all the projects and reopening the project without the required projects will continue to work. Tested in 5.5.1. Same issue is present.
For Java EE 5 samples, I just verified using NetBeans IDE 5.5.1 RC1 (Build 200703261315) and all the samples work as expected. Based on the samples documentation, one is expected to open the samples project, right click on the main module (if it has sub-modules) and click on run-project. Here is the link to samples doc. https://glassfish-samples.dev.java.net/source/browse/*checkout*/glassfish-samples/ws/javaee5/docs/list.html I don't understand the previous comment because when the netbeans project is opened, it opens all the sub-projects as well. For example, when I open interceptor-stateless-ear it opens all the sub-projects as well.
Nytia is right, the problem is if one tries to open EAR project without its modules. I think that the solution will be to pack "complete" samples into the SDK - I mean to pack project with generated 'nbproject' directory (but without 'private' directory).
Closing as INVALID because it's GlassFish issue. For any progress please see: https://glassfish.dev.java.net/issues/show_bug.cgi?id=3512
Pl. see glassfish-samples issue# 3 for latest update on this. https://glassfish-samples.dev.java.net/issues/show_bug.cgi?id=3