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 245203 - SessionBean wizard failure
Summary: SessionBean wizard failure
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: EJB (show other bugs)
Version: 8.0.1
Hardware: All All
: P1 normal (vote)
Assignee: Martin Fousek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-24 02:11 UTC by cdavis
Modified: 2014-07-09 02:48 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
SessionBean wizard (44.87 KB, image/png)
2014-06-24 02:11 UTC, cdavis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cdavis 2014-06-24 02:11:07 UTC
Created attachment 147747 [details]
SessionBean wizard

Creating a new session bean in an ejb project of an enterprise project (Maven) never has worked reliably.  Please see the attached picture of the wizard.  If it can't be made to see a java library project, please remove the combo box from the wizard.  It's nothing but grief and prevents creating an enterprise application.  If there is some special need for creating the java library please include the information in the help file.  I've tried a number of Maven archtypes but so far none has been successful.  Even a plain java library project will not be detected by the wizard.  Automation is wonderful when it works but this automation is defective.  It's much easier to do it manually than deal with this combo box that can't detect a java library project.

Steps to recreate (using all Maven project types):
1)  Create a java library to hold the remote interface of the session bean (please advise how this is to be done so that it will work)
2)  Create an enterprise project with ebj, web and ear projects
3)  Attempt to add a session bean to the ejb project.  Fill in the wizard until you get to the page referenced as attachment.
Comment 1 Martin Fousek 2014-06-24 06:38:54 UTC
Sorry, but I wouldn't have sense to hide the combo box and create remote interfaces within the same EJB project. For such reasons there are available @LocalBean or @Local inteface. So it has its sense place @Remote ones into the external JavaLibrary.

But you are right, it works just for Ant and doesn't work for Maven projects, that needs to be resolved. Thank you for your report.
Comment 2 cdavis 2014-06-24 14:23:54 UTC
Thanks Martin.  You are correct, of course, that a remote interface has to be in a different project.  A client/server app requires 3 projects:  client project, server project and a common project where are defined all the objects used on the two ends of the communication.  So I am glad to know you will fix the SessionBean wizard to recognize Maven projects.

Also some documentation regarding how best to create the common project would be appreciated.  I found a nbm-archtype project for the common java library but then deployment on Tomee failed.  Using the maven-quickstart archtype to get a java library built seems acceptable but, of course, the SessionBean wizard doesn't recognize it.

So life is difficult at times.......

Thanks for fixing the wizard to work with Maven projects.
Comment 3 Martin Fousek 2014-07-07 09:24:03 UTC
(In reply to cdavis from comment #2)
You're welcome. I'm looking at this issue right now and it looks that it's regression since issue #233476. I need to consult it with one of my colleagues but I can definitely guarantee that this issue will be fixed into the NetBeans 8.0.1. Thanks for your report!
Comment 4 Martin Fousek 2014-07-08 14:33:07 UTC
After offline discussion with MartinJ I've removed the JAR type from the WebModuleProviderImpl. We agreed that J2SE project is quite weird J2eeModuleProvider implementer. That fixes this issue.

Fixed in web-main #1d47ee25f3ff.
Comment 5 Quality Engineering 2014-07-09 02:48:29 UTC
Integrated into 'main-silver', will be available in build *201407090001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/1d47ee25f3ff
User: Martin Fousek <marfous@netbeans.org>
Log: #245203 - SessionBean wizard failure