Running Wildfly bootable as standalone jar not working anymore after upgrade to 2024.3.1.1

Answered

We have been using Wildfly Bootable for a while now and it worked fine and is still working in v2024.1.7 .  We are running the java app through IntelliJ IDEA's run configuration.

Since I upgraded to 2024.3.1.1 I am getting the following error when trying to run the wildly bootable jar through the IDE:
/Users/xxxxxx/Library/Java/JavaVirtualMachines/temurin-21.0.5/Contents/Home/bin/java -Dfile.encoding=UTF-8 -Dsun.stdout.encoding=UTF-8 -Dsun.stderr.encoding=UTF-8 -jar /Users/xxxxx/Development/workspace/service-8.0.0-SNAPSHOT-bootable.jar
Exception in thread "main" java.lang.reflect.InvocationTargetException
    at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:118)
    at java.base/java.lang.reflect.Method.invoke(Method.java:580)
    at org.wildfly.core.jar.boot.Main.runBootableJar(Main.java:192)
    at org.wildfly.core.jar.boot.Main.main(Main.java:143)
Caused by: java.lang.IllegalStateException: The LogManager was not properly installed (you must set the "java.util.logging.manager" system property to "org.jboss.logmanager.LogManager")
    at org.jboss.logmanager@2.1.19.Final//org.jboss.logmanager.Logger.getLogger(Logger.java:57)
    at org.wildfly.bootable-jar@23.0.3.Final//org.wildfly.core.jar.runtime.BootableJar.configureLogging(BootableJar.java:226)
    at org.wildfly.bootable-jar@23.0.3.Final//org.wildfly.core.jar.runtime.BootableJar.configureLogger(BootableJar.java:205)
    at org.wildfly.bootable-jar@23.0.3.Final//org.wildfly.core.jar.runtime.BootableJar.<init>(BootableJar.java:112)
    at org.wildfly.bootable-jar@23.0.3.Final//org.wildfly.core.jar.runtime.BootableJar.run(BootableJar.java:327)
    at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
    ... 3 more

Process finished with exit code 1
 

I have tried different versions of the JDK and all have the same result.  


When I run the same command on the command line, with all our needed environment variables set, it starts up perfectly as it did before.  

Are there some new settings for version 2024.3.1.1 that I might be missing?  
 

1
10 comments
Hi Liezelshaw,

Please elaborate on your question.
What's the project type, is it Java(Maven, Gradle)? Which version of the Wildfly Bootable are you using?
0

It is a Java Maven project running Wildfly Bootable 31 with JDK 21

0
Hi,
I've tried this example under JDK 23 and it works well: https://github.com/fmarchioni/mastertheboss/tree/master/bootable-jar/basic

Please share a sample pom.xml; I will try to reproduce it. Thanks.  You may upload it to https://uploads.jetbrains.com/ and paste the upload id here, the uploaded file is only visible to JetBrains employees.
0

Upload ID: 2025_01_16_2AUbj7hGyKVbXjNQhThV6N 

0

I tried it with running JDK23 and still the same problem

0

I'm also having this exact issue in 2024.3.  I wondered why suddenly why built jars were failing to run, as no dependencies had been changed.

JDK version doesn't seem to matter.    Im running wildfly-jar-maven-plugin version 6.1.2.Final with WildFly itself being 26.0.0.Final

The same JAR runs fine from command line when copy/pasting the exact run command used from IntelliJ into CMD.exe

Edit: Upgraded to 2024.3.2 and it looks to be fixed

0
Can you share a screenshot of how you run the same jar file? Are you using the IDEA's maven tool window run? Thanks.
0

I upgraded to 2024.3.2 but the problem is still there, I am using wildfly-jar-maven-plugin version 10.0.0.Final but have tried with the latest version, but still same result.

Here is the upload code for the screenshot: Upload id: 2025_01_20_t9GupxYg3PziuDQkr4wCBs (file: Screenshot 2025-01-20 at 16.22.31.png)

I use the IDEA Run configuration and added it as a JAR application.

0

Hello, I've created an issue report for this: https://youtrack.jetbrains.com/issue/IDEA-366083/Running-Wildfly-bootable-as-standalone-jar-not-working-anymore-after-upgrade-to-2024.3

 

Workaround: 

1. Download the IDEA 2024.2 version at https://www.jetbrains.com/idea/download/other.html

2. Create a shell script run configuration.

0

Please sign in to leave a comment.