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.

Bug 112710 - SDK Sample EAR Projects build fails if required projects are not opened first time
Summary: SDK Sample EAR Projects build fails if required projects are not opened first...
Status: RESOLVED INVALID
Alias: None
Product: javaee
Classification: Unclassified
Component: EAR (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-14 02:01 UTC by davisn
Modified: 2007-10-09 22:24 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description davisn 2007-08-14 02:01:24 UTC
-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
Comment 1 Nitya Doraisamy 2007-08-14 21:01:34 UTC
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. 


Comment 2 msreddy 2007-08-15 19:03:26 UTC
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.
Comment 3 Tomas Mysik 2007-08-16 15:21:59 UTC
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).
Comment 4 Tomas Mysik 2007-08-20 09:38:32 UTC
Closing as INVALID because it's GlassFish issue. For any progress please see:
https://glassfish.dev.java.net/issues/show_bug.cgi?id=3512
Comment 5 msreddy 2007-10-09 22:24:46 UTC
Pl. see glassfish-samples issue# 3 for latest update on this.
https://glassfish-samples.dev.java.net/issues/show_bug.cgi?id=3