-
Notifications
You must be signed in to change notification settings - Fork 91
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
Cannot install passwordUtilities-1.0 on WLP, only on OL-runtime #1236
Comments
@bmarwell Which version of liberty-maven-plugin are you using? |
Hi cheryl, I am using version |
@bmarwell I asked about the plugin version because a fix did go into 3.4 related to resolving features (OpenLiberty/ci.common#277). It was related to OpenLiberty 21.0.0.7 however. We will look into your issue and let you know what we find out. Thanks. |
@bmarwell So I set up a test project locally with the configuration you provided above, and I was not able to recreate the error you reported. Can you provide a sample project to recreate the error? Here is what I see in my terminal window when I run my test project:
|
Hi, I will provide a sample project. One more thing. I have my company pom and a mirror of Central in my .m2/settings.xml. I saw there was no download attempt from that repo. I'll test it without those, too. |
I deleted my
|
In
This seems to be the cause, because in your case features are downloaded from |
Found it. Not too happy about the error message, though :) Here is the root cause I found using
This is what I have in my
When I switch to To me, this looks like a bug in the |
@bmarwell Wow, good debugging. I can see why you are not happy with the error message. Nothing points you towards the root cause. I definitely agree that you should open an issue against Open Liberty for this feature installation problem. I found the line of code in our plugin responsible for the Can you recreate this from the command line with |
Haha, I should now as a maven committer. ;-) Good thing your maven plugin does have excellent logging! :)
Yes this is what exactly came to my mind as well. I will create a script which downloads wlp-kernel to a temporary location, sets I will leave this issue open for a few more days for the unlikely case I cannot rproduce this behaviour with one of the provided utilities. Thanks for your supprt! |
Hi @cherylking, I cannot reproduce the issue with any of those tools: My current workaround is to use JavaEE8 features (most of them are compatible anyway), but I'd still like to get to the cause of this just in case we have an invalid setup. |
@bmarwell When you tried from the command line, did it fetch the features from
I don't think that would make a difference. That line of code only used |
Alright. Will try to set up an example project and will also post the full stack trace tomorrow. |
@cherylking I was able to set up an example project: https://github.com/bmarwell/liberty.maven-1236 Just run It is a LOT of debug, but the error message is the same I get: As soon as you either change features (servlet 4, jars-2.1) OR use openliberty-runtime or your local wlp-base artifact, it will work flawlessy.. |
@bmarwell After talking to Open Liberty development, the set of features you are trying to install on openliberty-kernel should work, but there is some bug that they are tracking down with the autoPasswordUtilities feature dependency on I am following up on whether an issue is currently open for this on Open Liberty and will add a reference here. |
Related Open Liberty issue: OpenLiberty/open-liberty#17843 |
Thanks @cherylking! Good findings 🥇, your help is VERY much appreciated! :) 👍🏻 |
I added |
Hi @cherylking. As far as I can tell, this has long been resolved. Will close this issue. If you think there is anything else to discuss, just ping me. :) |
Hi everyone,
Plugin setup
I have the following feature in my
src/main/liberty/config/server.xml
:Expected behaviour
in the install-feature step, the feature is being downloaded and installed independent of my current runtime artifact (e.g. ol-kernel, wlp-kernel, ol-runtime). Note, there is not wlp-runtime nor wlp-base (which you can download as customer from IBM).
Actual behavour
When I configure the com.ibm.wlp artifact, like so:
I get this exception:
This happens on
wlp.version = 21.0.0.6
and even if I import the features-bom.known workarounds
The setup process will work flawlessly when I use the artifact
io.openliberty:openliberty-runtime
.From what I can see, only this artifact has
servlet-3.0
integrated and also supportscom.ibm.websphere.appserver.eeCompatible-6.0
which (for unknown reasons) cannot be installed via feature utilityThings I looked up and tried
passwordUtility-1.0
is excluded from installation viafeatureUtility
or this plugin.baseBundle
in any WLP (not OL) also works. But I haven't found how to installbaseBundle
via this plugin. However, I only want to install the required features anyway. I would like to use wlp-kernel and then installpasswordUtility-1.0
Any help what gets wrong here is highly appreciated.
Best regards,
Ben
The text was updated successfully, but these errors were encountered: