netbeans icon indicating copy to clipboard operation
netbeans copied to clipboard

NetBeans 19 cannot Run ear project on WildFly 29

Open jrcampins opened this issue 2 years ago • 5 comments

Apache NetBeans version

Apache NetBeans 19

What happened

Right-click on an ear-project will open the "Select deployment sever" as usual but the WildFly 29 server is not present in the Server list.

I manually added <org-netbeans-modules-maven-j2ee.netbeans_2e_hint_2e_deploy_2e_server>WildFly</org-netbeans-modules-maven-j2ee.netbeans_2e_hint_2e_deploy_2e_server> to the nb-configuration.xml file of the ear, ejb and web modules. It didn't make much of a difference. I still cannot run the ear project. Now, in the Run category of the ear project properties, Server is WildFly, but its Java EE Version is listed as Java EE 8 instead of 10; in the EJB module is even worse, it says Java EE 6; but in the Web module it does say Java EE 10 Web.

How to reproduce

Install WildFly 29 and add it to servers; then try do run an ear project on it.

Did this work correctly in an earlier version?

Apache NetBeans 17

Operating System

Windows 11

JDK

17 for NetBeans and WildFly

Apache NetBeans packaging

Apache NetBeans provided installer

Anything else

No response

Are you willing to submit a pull request?

No

jrcampins avatar Sep 25 '23 20:09 jrcampins

I forgot to mention that I had to upgrade to NetBeans 19 because 17 and 18 don't start/stop the WildFly 29 server properly. So, when I said it worked correctly in NetBeans 17 that was not with WildFly 29 but 26.

jrcampins avatar Sep 25 '23 20:09 jrcampins

@jrcampins Could you please verify if this issue is still present in NetBeans 20? I couldn't reproduce the behavior with the provided information.

asbachb avatar Dec 22 '23 01:12 asbachb

Good evening Benjamin,Yes, the problem persists in version 20. I found a very weird workaround. Please read my post at Stack overflow: https://stackoverflow.com/questions/77175538/how-to-run-an-ear-project-on-wildfly-29-with-netbeans-19Sent from my Galaxy -------- Original message --------From: Benjamin Asbach @.> Date: 12/21/23 9:54 PM (GMT-04:00) To: apache/netbeans @.> Cc: Jorge Campins @.>, Mention @.> Subject: Re: [apache/netbeans] NetBeans 19 cannot Run ear project on WildFly 29 (Issue #6491) @jrcampins Could you please verify if this issue is still present in NetBeans 20? I couldn't reproduce the behavior with the provided information.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

jrcampins avatar Dec 22 '23 02:12 jrcampins

I'm my previous message I forgot to say that is in the comments of the post that you could find some useful information. There is a lot of comments. Please read them.https://stackoverflow.com/questions/77175538/how-to-run-an-ear-project-on-wildfly-29-with-netbeans-19Sent from my Galaxy -------- Original message --------From: Benjamin Asbach @.> Date: 12/21/23 9:54 PM (GMT-04:00) To: apache/netbeans @.> Cc: Jorge Campins @.>, Mention @.> Subject: Re: [apache/netbeans] NetBeans 19 cannot Run ear project on WildFly 29 (Issue #6491) @jrcampins Could you please verify if this issue is still present in NetBeans 20? I couldn't reproduce the behavior with the provided information.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

jrcampins avatar Dec 22 '23 02:12 jrcampins

Nowadays I am using NetBeans 23. The problem persists. GlassFish 7 and WildFly 33 are not shown in the "Select deployment server" window displayed when trying to run an ear by right clicking it in the projects window. Jakarta EE servers are shown and can be selected only in the project properties window.

jrcampins avatar Oct 06 '24 13:10 jrcampins

Nowadays I am using NetBeans 24. The problem persists. GlassFish 7 and WildFly 34 are not shown in the "Select deployment server" window displayed when trying to run an ear by right clicking it in the projects window. Jakarta EE servers are shown and can be selected only in the project properties window.

jrcampins avatar Feb 10 '25 18:02 jrcampins

Nowadays I am using NetBeans 25. The problem persists. GlassFish 7 and WildFly 35 are not shown in the "Select deployment server" window displayed when trying to run an ear by right clicking it in the projects window. Jakarta EE servers are shown and can be selected only in the project properties window. Once selected there, the ear can be run by right clicking it in the projects window; the problem can be reproduced by starting NetBeans with a clean userdir.

jrcampins avatar Feb 27 '25 16:02 jrcampins

Image

In the attached image you can see that although there are two servers defined, the list in the Select Deployment Server window is empty. The Jakarta EE servers do not appear in the list.

jrcampins avatar Mar 10 '25 16:03 jrcampins