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.
1. Make a "Web project with existing sources", pointing to an app such as http://horstmann.com/elvis/SimpleQuiz.zip and using Glassfish v3. This app contains a JSF 2.0 managed bean, a session bean, and an entity bean, all packaged in a WAR, as permitted in EJB 3.1. 2. Realize that GFv3 doesn't have the EJB container or JSF 2.0 installed by default. 3. Install those into Glassfish 4. The Glassfish libraries do not contain the EJB and JSF 2.0 JARs, making it impossible to use Netbeans to work on this project. Please note: (1) With EJB 3.1, plain web projects can contain EJB (2) The Glassfish v3 libraries can change dynamically
Cay, thanks for the report. This sounds like something that should be handled on the GF plugin side. Which build of GlassFish did you try - are you using the recent nightly builds? Note that NetBeans 6.5 and 6.7 by default only support the "Prelude" version released last fall, not any post-prelude builds. There is a way to make this work, see Vince Kraemer's blog: http://blogs.sun.com/vkraemer/entry/7_0_and_glassfish_v3 Hopefully things work better now in the 6.7 dev builds with the (post-Prelude) v3 support enabled.
to use the ejb stuff in 6.7... use the enableExperimentalFeatures flag described in my blog entry. We plan on having a more 'dynamic' solution for the release of NetBeans that will ship about the same time the v3 bits go final.
this should get fixed for 6.8
updating the libraries due to an external change is kind of tricky to do right.
Integrated into 'main-golden', will be available in build *200909241442* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/9d195f6c9d96 User: vince kraemer <vkraemer@netbeans.org> Log: #158753: update libraries if modules directory gets updated. Force an update when the v3 update center app is triggered.
since the update is not always detected in a timely manner, I am not going to close this issue... but will lower it to p4
i am not active on this issue right now.
This seems to not make sense with Glassfish 3.1.2.2 in NetBeans 7.3 which contains both EJB and JSF jars. I opened this SimpleQuiz application in NB 7.3 + GF 3.1.2.2. EJB is standard part of GlassFish JavaEE library imported into netbeans project as a server dependency. JSF 2.1 is also included in GlassFish modules. Bean packages were changed in JSF 2.1 to import javax.faces.bean.ManagedBean; import javax.faces.bean.SessionScoped;
I'm closing this bug now. It's very marginal case related to first V3 versions.