netbeansdependenciesejbstateless-session-bean

Cannot creating Session Beans in Netbeans 11.1


My goal is to work with (stateless) session beans in NetBeans 11.1. I'm working on the OS Ubuntu-Mate 18 and I'm using the GlassFish 5.1.0 server.

I tried to implement a session bean like in the tutorials https://www.oracle.com/webfolder/technetwork/tutorials/obe/java/SessionBean/SessionBeanDemo.html. Unfortunately, most of the tutorials are old and deprecated. I'd tried to implement a stateless session bean as follows:

First, I started a new "Enterprise Application" project.

enter image description here

Then I choosed a name...

enter image description here

... and I leaved the check marks on creating EJB and Web App module.

enter image description here

After that the Ear-Folder showed a strange warning about the dependency artifacts. If I try to resolve the project problems, nothing happend.

You can read the description in the screenshot.

enter image description here

When I began to create a session bean in SessionTest-ejb-1.0 I'm not able to choose a location. The EJB-Module is supposed to make the session bean work.

enter image description here

I don't have any idea how to implement a session bean in Netbean 11.1. I can't rely on the internet tutorials. Netbeans 11.1 is completely different than the other versions.


Solution

  • The same problem persists using netbeans 11.2 and the wildfly server.

    I think the problem is in the ejb plugin of netbeans 11.x

    To solve the problem, I created the Entreprise Application using Netbeans 9.0 (it works), then I opened it using the latest version of Netbeans 11.2.