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.
As Java EE 7 requires Java SE 7 at a minimum, it should not be possible to create a Java EE 7 project with a target platform lower than SE 7. Right now this is possible, but does not seem to cause any problems until you try to run the app on GlassFish 4 (which does not start on SE 6) - this is tracked separately as bug 227350. This issue applies to both Ant and Maven EE projects.
Last time I looked into this (>month ago) the EE7 spec did not clearly said J2SE7 is required as minimum and that's why I intentionally did not enforce it.
(In reply to comment #1) > Last time I looked into this (>month ago) the EE7 spec did not clearly said > J2SE7 is required as minimum and that's why I intentionally did not enforce it. Totally agree with David to not enforce source level to version 7. Especially now when we found out that most of EE components (JSF, EL, mostly JMS) are J2SE6 compatible. You can still easily setup JDK7 only for your GF and deploy EE application with J2SE6 sources there. By the way it looks to me like the same concept as in cases of JEE6. Maybe we could add warnings that the source level 7 is recommended for the EE7 platform.
Ok, for now I am changing to enhancement. If we find out there is a real bug for the user, let's change it back to defect.
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