Skip to content

Problem with WAR file name during Docker container build for Flight Server #13

Description

@DrozdzynskiDawid

During the process of creating a connector, I generated a Flight server with the default name (flight-app) using the following command:

./gradlew generateFlightApp

After building the Docker container, I found the following warning in the logs:

[WARNING ] CWWKZ0014W: The application wdp-connect-sdk-gen-java-flight could not be started as it could not be found at location wdp-connect-sdk-gen-java-flight.war.

The generated WAR file has a name like wdp-connect-sdk-gen-java-flight-app.war instead of wdp-connect-sdk-gen-java-flight.war.

A simple workaround is to rename the WAR file inside the Docker container manually. However, here seems to be an issue with the rename instruction in the build.gradle file:

 from(configurations.wars) {
  into 'wlp/usr/servers/defaultServer/apps'
  rename '(.*)-app-(.*).war', '$1.war'
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions