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.
If you create Service Locator from template, it is uncompilable because javax.mail.Session is not on classpath. This is high priority because it is a regression. To reproduce: - create EJB project with GlassFish server - open New File wizard - select "Enterprise JavaBeans|Service Locator" - click Next, provide package name and finish the wizard. Created source file is uncompilable because javax.mail.Session cannot be found. Product Version: NetBeans IDE Dev (Build 201106260600) Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b16 System: Windows XP version 5.1 running on x86; Cp1250; en_US
Reproducible. Looks like a problem with the GlassFish plugin: glassfish/modules/javax.mail.jar should be on classpath, but it's not the workaround is to add this jar on the classpath manually. Should be fixed on the plugin side; in Maven this works well.
The root cause appears to be http://java.net/jira/browse/GLASSFISH-16919... If there isn't work applied to resolve the GF issue, I can hack in a fix.
So if the root cause is in GF, why is this bug manifested only in 7.1 and not in 7.0.1?
http://hg.netbeans.org/web-main/rev/a4b1f7ce2670 introduces an assumption that the manifest.mf file in lib/javaee.jar is correct. Since it isn't correct, there is a regression.
http://hg.netbeans.org/web-main/rev/172f12b8e0d0
Verified in build 201107060600.