Skip to content

Intermittent install-feature failure when generating features #1550

Open
@turkeylurkey

Description

@turkeylurkey

When the server starts with no features and the app is not deployed then adding features can fail at times.

Start with the demo-devmode project and remove all features from server.xml. Erase generated-features.xml.
Start dev mode with generateFeatures disabled.
The server starts with no features and the app is not deployed.
Type g and press Enter to generate features. Features should be generated and installed.

[INFO] Setting automatic generation of features to: [ On ]
[WARNING] The source configuration directory will be modified. Features will automatically be generated in a new file: /home/ibmadmin/demo-devmode/src/main/liberty/config/configDropins/overrides/generated-features.xml
[INFO] Running liberty:generate-features
[INFO] Generated the following features: [cdi-2.0, mpHealth-3.1, mpMetrics-3.0, jaxrs-2.1]

However, in some cases the install-features fails and when the app is started multiple error messages about missing features are generated by the server.

[INFO] [AUDIT   ] CWWKG0016I: Starting server configuration update.
[INFO] [AUDIT   ] CWWKG0093A: Processing configuration drop-ins resource: /home/ibmadmin/demo-devmode/target/liberty/wlp/usr/servers/defaultServer/configDropins/overrides/generated-features.xml
[INFO] [AUDIT   ] CWWKG0093A: Processing configuration drop-ins resource: /home/ibmadmin/demo-devmode/target/liberty/wlp/usr/servers/defaultServer/configDropins/overrides/liberty-plugin-variable-config.xml
[INFO] [ERROR   ] CWWKF0001E: A feature definition could not be found for mphealth-3.1
[INFO] [ERROR   ] CWWKF0001E: A feature definition could not be found for mpmetrics-3.0
[INFO] [ERROR   ] CWWKF0001E: A feature definition could not be found for cdi-2.0
[INFO] [ERROR   ] CWWKF0001E: A feature definition could not be found for jaxrs-2.1
[INFO] [AUDIT   ] CWWKG0017I: The server configuration was successfully updated in 0.056 seconds.

This can happen rarely on a Mac but it happens more readily on a Linux server with a 2 GHz processor. If you use the -X option it happens more often.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    New Issues

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions