Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server fails to start due to conflict on servlet feature #24371

Closed
jhanders34 opened this issue Feb 17, 2023 · 2 comments · Fixed by #24161
Closed

Server fails to start due to conflict on servlet feature #24371

jhanders34 opened this issue Feb 17, 2023 · 2 comments · Fixed by #24161
Assignees
Labels
regression This bug is for something that worked in a past release, but no longer does release bug This bug is present in a released version of Open Liberty release:23002 team:Performance

Comments

@jhanders34
Copy link
Member

jhanders34 commented Feb 17, 2023

Describe the bug
When individually installing a set of EE7 or EE8 features, the server can fail to start due to a conflict on servlet features. An example failure is below.

[1/10/23, 4:08:27:359 GMT] 00000027 id= com.ibm.ws.kernel.feature.internal.FeatureManager E CWWKF0033E: The singleton features servlet-3.1 and servlet-3.0 cannot be loaded at the same time. The configured features servlet-3.1 and apiDiscovery-1.0 include one or more features that cause the conflict. Your configuration is not supported; update server.xml to remove incompatible features.
[1/10/23, 4:08:27:419 GMT] 00000027 id= com.ibm.ws.logging.internal.impl.IncidentImpl I FFDC1015I: An FFDC Incident has been created: "java.lang.IllegalArgumentException: Unable to load conflicting versions of features "com.ibm.websphere.appserver.servlet-3.1" and "com.ibm.websphere.appserver.servlet-3.0". The feature dependency chains that led to the conflict are: com.ibm.websphere.appserver.servlet-3.1 and com.ibm.websphere.appserver.apiDiscovery-1.0 -> com.ibm.websphere.appserver.restHandler-1.0 -> io.openliberty.restHandler.internal-1.0 -> io.openliberty.webBundleSecurity.internal-1.0 -> io.openliberty.servlet.internal-3.0 -> com.ibm.websphere.appserver.servlet-3.0

Steps to Reproduce
Use featureUtility to install EE7 or EE8 features individually instead of using installServerFeatures.

Expected behavior
The expected behavior is that the feature install will install the features in a way to allow all of them to be included in a server.xml and the server be able to start.

Diagnostic information:

  • OpenLiberty Version: 22.0.0.11 - 23.0.0.1
  • Affected feature(s) Too many to list, but any feature that depends on a feature that uses internal feature io.openliberty.servlet.internal-x.0

Additional context
This problem can be worked around by using featureUtility installServerFeatures command instead. It can also be worked around by installing the mpJwt-1.2 feature if using EE 8 features.

This problem was introduced in 22.0.0.11 due to the inclusion of pull request #22549. This problem is related to issue #21992. This issue is mostly being addressed for this special case introduced in 22.0.0.11, but it does not cover all the issues outlined in #21992.

@jhanders34 jhanders34 added regression This bug is for something that worked in a past release, but no longer does release bug This bug is present in a released version of Open Liberty team:Performance labels Feb 17, 2023
@jhanders34 jhanders34 self-assigned this Feb 17, 2023
@jhanders34
Copy link
Member Author

#regresion

@jhanders34
Copy link
Member Author

#regression

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
regression This bug is for something that worked in a past release, but no longer does release bug This bug is present in a released version of Open Liberty release:23002 team:Performance
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants