OpenLiberty / open-liberty

Open Liberty is a highly composable, fast to start, dynamic application server runtime environment
https://openliberty.io
Eclipse Public License 2.0
1.15k stars 592 forks source link

Versionless error message says one feature when the problem is a different feature #27491

Open rsherget opened 9 months ago

rsherget commented 9 months ago

Using servlet-6.0 and PREFERRED_FEATURE_VERSIONS=mpHealth-1.0,mpHealth-4.0,mpMetrics-1.0,mpMetrics-1.1,mpMetrics-2.0,mpMetrics-2.2,mpMetrics-2.3,mpMetrics-3.0,mpMetrics-4.0

Note that mpHealth-4.0 is applicable, but there is no applicable mpMetric feature listed. The error ends up targeting mpHealth-1.0

[ERROR   ] CWWKF0044E: The servlet-6.0 and io.openliberty.internal.versionless.mpHealth-1.0 features cannot be loaded at the same time. The servlet-6.0 feature of Jakarta EE 10 is incompatible with the io.openliberty.internal.versionless.mpHealth-1.0 feature of Java EE 7. The servlet-6.0 and mpHealth configured features include an incompatible combination of features. Your configuration is not supported. Update the configuration to use features that support either the Jakarta EE or Java EE programming models, but not both.
rsherget commented 7 months ago

Feature resolver needs a more extensive update in order for the error messaging to be more accurate