WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Implicit mutually exclusive Open Liberty features

    Posted Thu April 06, 2023 04:18 AM

    Hi everyone,

     

    we are in the process of migrating from Websphere Application Server to Open Liberty.

     

    We already brought our application up and running in Open Liberty locally
    and we are now working on the containerization as a prerequisite for running it in k8s.

     

    We want to use an offical Open Liberty Image from docker hub (e.g. "open-liberty:23.0.0.2-kernel-slim-java11-openj9")
    which dynamically downloads features that are specified in the configuration.

     

    However, this does not work there are error during feature installation, I have created a report for this already.

     

    Therefore, an alternative option could be to use another image which provides support for all features (e.g. "open-liberty:23.0.0.2-kernel-slim-java11-openj9").

     

    However, during startup with our feature configuration there are error messages that indicate that there
    are features that are not compatible. However, we have not added them explicitly to our

    set of required features, so they are added implicitly due to the dependencies between the features:

     

    [ERROR   ] CWWKF0047E: The jaxrs-2.0 and appSecurity-3.0 features cannot be loaded at the same time. The jaxrs-2.0 feature of Java EE 7 is incompatible with the appSecurity-3.0 feature of Java EE 8. The configuration includes an incompatible combination of Java EE features that is not supported. The jaxrs-2.0 and mpJwt-1.2 configured features include an incompatible combination of features. Your configuration is not supported. Update the configuration to use compatible versions of the configured features that support the Java EE 7 or Java EE 8 programming models.

    [ERROR   ] CWWKF0033E: The singleton features cdi-2.0 and cdi-1.2 cannot be loaded at the same time.  The configured features mpJwt-1.2 and jsfContainer-2.2 include one or more features that cause the conflict. Your configuration is not supported; update server.xml to remove incompatible features.

    [ERROR   ] CWWKF0033E: The singleton features servlet-3.1 and servlet-4.0 cannot be loaded at the same time.  The configured features servlet-3.1 and mpJwt-1.2 include one or more features that cause the conflict. Your configuration is not supported; update server.xml to remove incompatible features.

    [ERROR   ] CWWKF0033E: The singleton features com.ibm.websphere.appserver.javax.persistence-2.2 and com.ibm.websphere.appserver.javax.persistence-2.1 cannot be loaded at the same time.  The configured features mpJwt-1.2 and jpaContainer-2.1 include one or more features that cause the conflict. Your configuration is not supported; update server.xml to remove incompatible features.

    [ERROR   ] CWWKF0033E: The singleton features io.openliberty.servlet.api-3.1 and io.openliberty.servlet.api-4.0 cannot be loaded at the same time.  The configured features jsp-2.3 and mpJwt-1.2 include one or more features that cause the conflict. Your configuration is not supported; update server.xml to remove incompatible features.

    [WARNING ] CWWKF0046W: The configuration includes an incompatible combination of features. As a result, the feature manager did not install any features.

     

    Could you please provide us a hint how we can resolve these conflicts?
    Is there a way to also exclude features or show the dependencies etc.?

     

    Thanks and best regards,

    Andreas Geßner



    ------------------------------
    Andreas Geßner
    ------------------------------


  • 2.  RE: Implicit mutually exclusive Open Liberty features

    Posted Fri April 07, 2023 02:21 AM
    Edited by Hermann Huebler Fri April 07, 2023 02:31 AM

    Hello Andreas,
    which exact liberty packge are you using and which features are you loading in the server.xml (or configDropins)? If you check the CWWKF0012I of the loaded server - which features are loaded at startup? 

    In your case you are mixing the features of the Jakarta EE 8  (Web Profile) (appSecurity-3.0) with features from the Java EE 7 (Web Profile) (jaxrs-2.0). See https://www.ibm.com/docs/en/was-liberty/base?topic=management-liberty-features or https://openliberty.io/docs/latest/reference/feature/feature-overview.html for a full features list. So I'm wondering if your application is complying with EE7 or EE 8? Depending on that I'd just start the server with the proper "umbrella" feature like either jakartaee-8.0 or the javaee-7.0 feature.

    u

    Hope this helps, Hermann



    ------------------------------
    Hermann Huebler
    2innovate IT Consulting GmbH
    Vienna
    Austria

    #IBMChampion
    ------------------------------



  • 3.  RE: Implicit mutually exclusive Open Liberty features

    Posted Wed April 26, 2023 05:50 AM

    Hi Hermann,

     

    thanks for you fast response - sorry, got ill and could thus not reply and say thanks earlier.

     

    You were right, there was a conflict between feature versions. It turned out that we had to shift
    to mpJwt-1.1, this has resolved the issue now.

     

    Thanks and BR,

    Andreas



    ------------------------------
    Andreas Geßner
    ------------------------------