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.
Create new Enteprise Application with Existing sources. Test application is in CVS: j2ee/test/qa-functional/data/freeform_projects/Secure Project is created and java.lang.IllegalArgumentException is thrown.
Created attachment 24543 [details] IAE exception
High visible issue, marking as beta stopper.
*** Issue 64157 has been marked as a duplicate of this issue. ***
I will look at this.
Happens when the project sources are under the directory of another project (here the NetBeans module project in j2ee/test) and the EAR app's project directory is not an ancestor of the project sources. In this case calling FileOwnerQuery.getOwner(FileObject) for a file inside the sources of the EAR app doesn't return the EAR project. Instead it returns the NB module project in j2ee/test. This use case doesn't seeem to be supported by FileOwnerQuery and I think it is a corner one. Anyway, the code calling FileOwnerQuery in the EAR project tries to add package view nodes for the Java sources, and the EAR doesn't have any Java sources. The fix for this issue is to completely remove this code.
Fixed. Checking in org/netbeans/modules/j2ee/earproject/ui/ArchiveViews.java; /cvs/j2ee/earproject/src/org/netbeans/modules/j2ee/earproject/ui/ArchiveViews.java,v <-- ArchiveViews.java new revision: 1.3; previous revision: 1.2 done