apache / netbeans

Apache NetBeans
https://netbeans.apache.org/
Apache License 2.0
2.64k stars 846 forks source link

NetBeans 19 cannot Run ear project on WildFly 29 #6491

Open jrcampins opened 1 year ago

jrcampins commented 1 year ago

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 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 commented 1 year ago

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.

asbachb commented 9 months ago

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

jrcampins commented 9 months ago

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 commented 9 months ago

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 commented 5 days ago

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.