Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run Wildfly 14 with java 11?

I'm using Wildfly 14 and Java 11 in its runtime configuration. When I start the server I get

org.jboss.modules.ModuleNotFoundException: java.se
    at org.jboss.modules.Module.addPaths(Module.java:1266)
    at org.jboss.modules.Module.link(Module.java:1622)
    at org.jboss.modules.Module.relinkIfNecessary(Module.java:1650)
    at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:296)
    at org.jboss.modules.Main.main(Main.java:437)

How do I run Wildfly 14 with java 11?

like image 561
Mark Avatar asked Oct 17 '18 10:10

Mark


People also ask

Does WildFly support Java 11?

WildFly versions up to 26 should run on the most recent long-term support release (LTS), i.e. on Java 8 and 11. On a balance, due to the amount of tests, it is recommended to use JDK 11. WildFly version 27 drops support for Java 8. So you can mainly choose between Java 11 and Java 17.

Is WildFly a middleware?

This Java middleware application server known as WildFly is a robust implementation of the Jakarta platform specification. The latest WildFly 24 architecture built on the Modular Service Container enables services on-demand when your application requires them.

How do I start WildFly application server?

To start up a WildFly 8 managed domain, execute the $JBOSS_HOME/bin/domain.sh script. To start up a standalone server, execute the $JBOSS_HOME/bin/standalone.sh. With no arguments, the default configuration is used.

What is WildFly service EXE?

WildFly, formerly known as JBoss AS, or simply JBoss, is an application server written by JBoss, now developed by Red Hat. WildFly is written in Java and implements the Java Platform, Enterprise Edition (Java EE) specification. It runs on multiple platforms.


1 Answers

There was some change in Java 11 where java.se must be read on the module path. In Wildfly's run configuration under VM arguments add

--add-modules=java.se

Should be fixed in later versions.

like image 152
Mark Avatar answered Sep 29 '22 19:09

Mark