Skip to content

Open Liberty includes AppShellConfigurator interface as an implementation of itself #13608

Closed

Description

@vesanieminen

Description of the bug

Open Liberty (at least versions 19 and 22) has a quirk where it includes AppShellConfigurator interface in here: com.vaadin.flow.server.startup.VaadinAppShellInitializer#init(java.util.Set<java.lang.Class<?>>, com.vaadin.flow.server.VaadinContext)

This results in an exception being thrown with a default V23 plain Java project without any changes.

The relevant part from the server logs is:

Multiple classes implementing `AppShellConfigurator` were found. However, only a single class implementing `AppShellConfigurator` is allowed.
Remove "implements AppShellConfigurator" from all but one of the following classes:
  org.vaadin.example.AppShell
  com.vaadin.flow.component.page.AppShellConfigurator

The full server logs are attached here:

open liberty.log

Expected behavior

No exception is being shown at server start up.

Minimal reproducible example

Steps to reproduce:

  1. Download the latest V23 plain Java project: https://github.com/vaadin/skeleton-starter-flow/archive/v23.zip
  2. Build the project
  3. Download Open Liberty: https://public.dhe.ibm.com/ibmdl/export/pub/software/openliberty/runtime/release/22.0.0.4/openliberty-webProfile8-22.0.0.4.zip
  4. Extract it and deploy the V23 plain Java project to the application server
  5. Observe the server logs

Versions

  • Vaadin / Flow version: 23.0.6
  • Java version: 11
  • OS version: macOS 11.6.4

Activity

  1. vesanieminen commented on Apr 22, 2022

    @vesanieminen
    ContributorAuthor

    After fixing that issue the following interface shows up in similar fashion:

    The `PageConfigurator` interface is deprecated since Vaadin 15 and has no effect.
    Please, configure the page in org.vaadin.example.AppShell, and remove the `PageConfigurator` from: 
     - com.vaadin.flow.server.PageConfigurator
    

    This is also fixed in the #13609 PR.

  2. vaadin-bot commented on May 5, 2022

    @vaadin-bot
    Collaborator

    This ticket/PR has been released with Vaadin 23.1.0.beta1 and is also targeting the upcoming stable 23.1.0 version.

  3. vaadin-bot commented on May 9, 2022

    @vaadin-bot
    Collaborator

    This ticket/PR has been released with Vaadin 22.0.15.

  4. vaadin-bot commented on May 10, 2022

    @vaadin-bot
    Collaborator

    This ticket/PR has been released with Vaadin 23.0.9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions