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.

Bug 199720 - javax.mail.Session not on classpath in EJB project
Summary: javax.mail.Session not on classpath in EJB project
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: EJB Project (show other bugs)
Version: 7.1
Hardware: PC Windows XP
: P1 normal (vote)
Assignee: Vince Kraemer
URL:
Keywords: REGRESSION, TEST
Depends on:
Blocks:
 
Reported: 2011-06-27 08:43 UTC by Jiri Skrivanek
Modified: 2011-07-07 07:51 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2011-06-27 08:43:36 UTC
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
Comment 1 Petr Jiricka 2011-06-27 12:06:52 UTC
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.
Comment 2 Vince Kraemer 2011-06-27 18:29:33 UTC
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.
Comment 3 Petr Jiricka 2011-06-27 21:44:25 UTC
So if the root cause is in GF, why is this bug manifested only in 7.1 and not in 7.0.1?
Comment 4 Vince Kraemer 2011-06-27 22:12:14 UTC
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.
Comment 5 Vince Kraemer 2011-07-01 17:56:50 UTC
http://hg.netbeans.org/web-main/rev/172f12b8e0d0
Comment 6 Jiri Skrivanek 2011-07-07 07:51:03 UTC
Verified in build 201107060600.