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.
[ BUILD # : 201203250401 ] [ JDK VERSION : 1.7.2 ] When editing a file in the EJB module of an EAR application the EAR application should be launched when global toolbar run button is pressed. Currently the EJB module is launched. The same applies for a Web module within an EAR application - when editing a file in the Web module, hitting run should launch the EAR application. This has come about as a result of http://wiki.netbeans.org/NewAndNoteworthyNB72#Main_Project . What one used to do was select the EAR as the main project and then whether you where editing the EJB or Web modules, you would always run the EAR
Cf. option #3 from bug #166780 comment #10.
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss