Uploaded image for project: 'Thorntail'
  1. Thorntail
  2. THORN-909

Not reading project-stages.yml properly with wildfly-swarm:run/Run main from IDE

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2016.12.0
    • Fix Version/s: 2016.12.1
    • Component/s: core
    • Labels:
      None
    • Sprint:
      2016-Dec-A
    • Steps to Reproduce:
      Hide

      ```
      git clone https://github.com/emag-wildfly-swarm-sandbox/wildfly-swarm-ds-project-stages-demo.git \
      && cd wildfly-swarm-ds-project-stages-demo \
      && ./mvnw wildfly-swarm:run
      ```

      Or, Run wildflyswarm.ds.projectstages.Bootstrap#main from IDE

      Show
      ``` git clone https://github.com/emag-wildfly-swarm-sandbox/wildfly-swarm-ds-project-stages-demo.git \ && cd wildfly-swarm-ds-project-stages-demo \ && ./mvnw wildfly-swarm:run ``` Or, Run wildflyswarm.ds.projectstages.Bootstrap#main from IDE

      Description

      -Swarm doesn't read project-stages.yml properly with wildfly-swarm:run or Run main from IDE(uber jar works fine). I attached the error log.

      I found where the root cause happens, but I have no idea why it occurs. When with wildfly-swarm:run or from IDE, it seems subresources field checks doesn't work and return false in ConfigurableManager#scanSubresources().

      List.class.isAssignableFrom(field.getType())
      

      https://github.com/wildfly-swarm/wildfly-swarm/blob/2016.12.0/core/container/src/main/java/org/wildfly/swarm/container/runtime/ConfigurableManager.java#L255

      For example, if the app uses DatasourcesFraction, the field could be jdbcDriver/xaDasources/dataSources. Despite they are List, the above code returns false and eventually Configurable properties in project-stages.yml will not be added.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                bob.mcwhirter Bob McWhirter
                Reporter:
                emag Yoshimasa Tanabe
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: