-
Notifications
You must be signed in to change notification settings - Fork 600
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
Versionless feature - 2 versions of appSecurity enabled #30427
Comments
and another observation.., while using appSecurity-3.0 the versionless feature determinates platform as javaee8. However, while using appSecurity-2.0 it doesn't recognize it as javaee7, and not versioned features are skipped, why?
|
Ok, I see. It's probably because appSecurity-2.0 belongs to 2 platforms ee6 and ee7 Line 19 in ee72891
..however, you have not even listed javaee6 as supported platform with versionless feature here: |
Let me reply to this one first. javaee-6.0 is supported with WebSphere Liberty, but not with Open Liberty which is why it is not included in the Open Liberty documentation, but it is listed in the WebSphere Liberty documentation as an additional platform to what is available in Open Liberty. There are some features in Open Liberty that are common for EE 6 and EE 7 so that is why you will find javaee-6.0 platform listed even in Open Liberty features since they are common to both Open Liberty and WebSphere Liberty. |
Secondarily let me reply to this question. The |
@krismarc do the answers provided give you the information that you need? If so I can close out the issue. |
Is there any out of liberty versionless resolver/option available? Which I could use to validate features? So it would tell me how to refactor my set of features to be versionless compliant or at least would tell me which ones are versionless? There are plenty of features which are not supported and needs to remain 'versioned' eg. logstashcollector, spnego, constrainedDelegation etc. Otherwise, you need to be aware of all details and precisely set each feature, otherwise it wouldn't be found if you simply 'unversion' all of them. That's a bit messy. Might be pretty complicated for developers who are unaware how does it work. |
Versionless feature were created to handle Java EE, Jakarta EE and MicroProfile features in order to make it easier to figure out which versions goes with each other for the different EE / MP levels since it can be confusing since the numbers aren't all 7.0, 8.0, 9.0 etc, because each of the component specifications has its own versioning strategy. In general for liberty value-add features that are not part of Java / Jakarta EE or MicroProfile, there is not usually many versions and most of the time there is just one. As such it isn't hard to determine which one to use. In general a value-add feature is made to work with all of the EE levels automatically to not cause this problems to have a value-add feature version for each EE level. For documentation on which features are enabled to be versionless you can see the versionless feature page in the Open Liberty documentation. You can find for each of the Java / Jakarta EE and MP features there is a list of features for the different technology categories. Also all of the feature pages in the Open Liberty documentation include which platform(s) that the different features are associated with to know when you specify |
Hey,
I'm testing versionless feature. As administrator of many OLs in centralized way. I want to determinate java platform by setting specific appSecurity feature version. It worked. However, I've noticed that 2 versions of appSecurity (appSecurity-2.0, appSecurity-3.0) were installed anyway. How it comes?
In configDropins I've enabled appSecurity-3.0 and jsonp-1.1 as indicator/determinator for javaee8 platform:
CWWKF0053I: Feature resolution selected the [javaee-8.0] platforms.
CWWKF0051I: The [jaxrs, jsonp, jsp, servlet, javaMail, cdi, jca, mdb, jdbc, ejbLite, wasJmsClient, jsf, wasJmsServer] versionless features resolved to [jaxrs-2.1, jsonp-1.1, jsp-2.3, servlet-4.0, javaMail-1.6, cdi-2.0, jca-1.7, mdb-3.2, jdbc-4.2, ejbLite-3.2, wasJmsClient-2.0, jsf-2.3, wasJmsServer-1.0]
Please pay attention to the list of installed features:
CWWKF0012I: The server installed the following features: [appSecurity-2.0, appSecurity-3.0, bells-1.0, cdi-2.0, distributedMap-1.0, ejbLite-3.2, el-3.0, javaMail-1.6, jaxrs-2.1, jaxrsClient-2.1, jca-1.7, jdbc-4.2, jndi-1.0, jsf-2.3, json-1.0, jsonp-1.1, jsp-2.3, localConnector-1.0, logstashCollector-1.0, mdb-3.2, servlet-4.0, spnego-1.0, ssl-1.0, wasJmsClient-2.0, wasJmsServer-1.0].
Basically, I want to utilize this option:
https://openliberty.io/docs/latest/reference/feature/versionless-features.html#feat
Best regards,
K.M.
The text was updated successfully, but these errors were encountered: