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.
Summary: | SDK Sample EAR Projects build fails if required projects are not opened first time | ||
---|---|---|---|
Product: | javaee | Reporter: | davisn <davisn> |
Component: | EAR | Assignee: | Tomas Mysik <tmysik> |
Status: | RESOLVED INVALID | ||
Severity: | blocker | CC: | pjiricka |
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
davisn
2007-08-14 02:01:24 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. 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 |