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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Done
    • 2016.12.0
    • 2016.12.1
    • core
    • None
    • 2016-Dec-A
    • 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.

      Attachments

        Activity

          People

            bmcwhirt@redhat.com Bob McWhirter (Inactive)
            emag_jira Yoshimasa Tanabe (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: