Errors with WildFly in Eclipse IDE

6,833 views
Skip to first unread message

Philippe Merrilees

unread,
Sep 1, 2021, 8:24:59 PM9/1/21
to WildFly

Hello,

I recently reinstalled the Eclipse IDE after roughly two years and I am encountering errors when running WildFly through Eclipse that would never occur in the past.

Indeed, whenever I start my WildFly server instance on my laptop or desktop computers (both running Linux), I get the following error messages:
  • An internal error occurred during: "Checking Deployment Scanners for server". java.lang.ExceptionInInitializerError
  • An internal error occurred during: "Updating Deployment Scanners for Server: WildFly 17". Could not initialize class org.wildfly.security.auth.client.DefaultAuthenticationContextProvider
Everything works fine if I launch WildFly from the command line. I tried with WildFly 17 (the one I was using in the past and used to work fine) and 24 (the newest version) and nothing seems to work in Eclipse, even when I install JBoss Tools from the Eclipse Marketplace.

I also asked about this issue on the Eclipse forums here and I will post any answer I receive there to this post as well.

Thank you for your kind assistance!

Jean-Francois Maury

unread,
Sep 2, 2021, 6:38:47 AM9/2/21
to Philippe Merrilees, WildFly
That maybe an issue with Java11/Java8 as Eclipse now requires Java 11 to run.
Can you send the Eclipse log file ?

--
You received this message because you are subscribed to the Google Groups "WildFly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wildfly+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wildfly/801433a2-2a7b-4e6f-916d-c4c93c6d8958n%40googlegroups.com.


--

Jeff Maury

Manager, DevTools

Red Hat EMEA

jma...@redhat.com   

Philippe Merrilees

unread,
Sep 2, 2021, 7:26:37 PM9/2/21
to WildFly
Jeff Maury,

Thank you very much for taking the time to answer my question! As requested, here is my Eclipse log file which I exported right after reproducing the problem right after deleting the old log file so that everything therein only pertains to the problem itself.

I also wanted to mention two things:
  • I have OpenJDK 16 installed on my machine (which, looking at my /lib/jvm directory, appears to be the only Java environment installed on my machine)
  • When I try to run a basic HelloWorld Web application, I get the error messages mentioned in my original message (and shown in the "eclipse_errors.png" file attached to this message) even though the server starts and the application deploys successfully. Still, I would like to get rid of these annoying (and, I assume, problematic) error messages.
Thank you, once again, for your time and your willingness to help!

Regards,

Philippe Merrilees
eclipse_errors.png
eclipse.log

Philippe Merrilees

unread,
Sep 2, 2021, 7:45:12 PM9/2/21
to WildFly
I just tried installing OpenJDK 8 and 11 but:
  • OpenJDK 8 still gives me the same errors when I define it as WildFly's runtime environment.
  • OpenJDK 11 cannot be added to Eclipse's Installed JREs as /lib/jvm/java-11-openjdk "is not a JDK root. Java executable was not found" (so I am unable to try to use it as WildFly's runtime environment).

Jean-Francois Maury

unread,
Sep 3, 2021, 3:00:21 AM9/3/21
to Philippe Merrilees, WildFly
You are running Eclipse with a Java 16 VM. It is an unsupported configuration as Java 16 has new limitations. I recommend running Eclipse with a Java 11 VM.
You can try also adding  --illegal-access=permit in eclipse.ini but other issues may happen.


Rahim Alizada

unread,
Sep 27, 2021, 10:23:25 AM9/27/21
to WildFly
Adding  --add-opens=java.base/java.security=ALL-UNNAMED to eclipse.ini fixed the issue on my side

Wolfgang

unread,
Mar 18, 2022, 3:56:40 PM3/18/22
to WildFly
Are there any plans to improve this?

Recent Eclipse already bundles and runs with Java 17, so it is harder to switch to an older Java version.

Jean-Francois Maury

unread,
Mar 30, 2022, 3:09:43 AM3/30/22
to Wolfgang, WildFly
Which version of JBoss Tools are you using ? JBoss Tools 4.21.3 (latest released) is compatible with Java 17

Wolfgang

unread,
Mar 31, 2022, 6:01:24 AM3/31/22
to WildFly
Hard to say which version is installed, as the plugins have different versions. Attached is a screenshot of the Red Hat plugin versions. Hope they contain the necessary information.


My Eclipse installation is rather fresh - created in january this year, with a fresh workspace.

jbosstools.png

Jean-Francois Maury

unread,
Mar 31, 2022, 8:12:33 AM3/31/22
to Wolfgang, WildFly
I did the following:
- Install Eclipse for Java Enterprise 2022-03 with a Java 17 JVM
- Installed JBoss Tools server adapters
- Define and run a Wildfly 22 without problem.

Can you check that your eclipse.ini has:

--add-opens=java.base/java.security=ALL-UNNAMED

Wolfgang

unread,
Mar 31, 2022, 4:22:31 PM3/31/22
to WildFly
I can confirm that with a completely fresh and blank installation of Eclipse 2022-03, after installing recent JBoss Tools I see that "--add-opens=java.base/java.security=ALL-UNNAMED" is added to the end of "eclipse.ini". Seems that this did not happen when updating an older workspace.

So, this issue is resolved for me.  Many thanks for your support!
Reply all
Reply to author
Forward
0 new messages