'Find a replacement for -Xbootclasspath/p option when using jdk 11

I am upgrading to jdk 11 and from what I've noticed, the -Xbootclasspath/p option no longer exists. I've tried replacing it with -Xbootclasspath/a, I've also tried using --patch-module(although I've read that it's not recommended in production) or --add-module options instead and none of them seems to work. The reason why -Xbootclasspath/p was added in the first place is the following error:

Could not load Logmanager "org.jboss.logmanager.LogManager"

Do you have any other idea what I should try in order to replace or get rid of -Xbootclasspath/p option? Thanks!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source