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.
When "Remote" option in "New Session Bean wizard" is checked, current project not present in combobox. Error message displayed: "There is no suitable project available into which Remote interface could be stored. An open Ant based Java Class Library project is required." In NetBeans 6.9.1 current project name present in combobox.
This bug affects NetBeans 7 beta.
I would expect the current project to be ALWAYS IMPLICITLY present. The remote interface defines what THIS project what is exposed externally, no? I guess this menu would allow you to add this interface additionally to another project, but I can not really tell as the HELP does not contain this feature yet (just has the remote option from NB 6). Also: the error message does not wrap in the window, which could be problematic for ling errors.
Hm, I see, this is meant to indicate, in case of a composite project, which of the composing projects projects exposes this interface. I can confirm that this is a regression from 6.9.1 where this works (though not explained in the help there either).
This change is intentional, see also issue 186332 for more background. The best practice is to use a separate "client jar", which is added to the classpath of the EJB module or (in case of EE 6) the Web module. The client jar should contain the remote interfaces plus any classes these interfaces depend on, and should be put on the classpath of the client application. The reason for using the client jar rather than putting the interfaces directly in the EE module is essentially to comply with the packaging requirements of the Java EE spec. So I think this report should be closed as invalid. I agree this should be better explained in the documentation, cc'ing Ken as the doc writer.
Explained by Petr.
In the Netbeans 7.0 RC1 at the Create time (ejb) see this error: here is no suitable project available into which Remote interface could be stored. An open Ant based Java Class Library project is required.