Uploaded image for project: 'SwitchYard'
  1. SwitchYard
  2. SWITCHYARD-2834

Wrong switchyard version when creating a project with integration bom

    Details

    • Steps to Reproduce:
      Hide

      1. Add and start Fuse server with integration pack
      2. Create new SwitchYard project and select the runtime created in step 1
      3. Add some logic which uses a bean implementation
      4. Enable Fuse Camel Nature
      5. Deploy the project to the server
      6. Command osgi:list displays the project and its state is [Installed]
      7. Run osgi:install <id> to see the error

      Show
      1. Add and start Fuse server with integration pack 2. Create new SwitchYard project and select the runtime created in step 1 3. Add some logic which uses a bean implementation 4. Enable Fuse Camel Nature 5. Deploy the project to the server 6. Command osgi:list displays the project and its state is [Installed] 7. Run osgi:install <id> to see the error
    • Workaround Description:
      Hide

      1. In pom.xml set switchyard.osgi.version to the correct version (For example see the effective pom and the version of bean component)

      Show
      1. In pom.xml set switchyard.osgi.version to the correct version (For example see the effective pom and the version of bean component)

      Description

      Wrong switchyard version when creating a project with integration bom.

      <switchyard.osgi.version>${integration.version}</switchyard.osgi.version>
      

      which is wrong for

      <integration.version>1.2.0.redhat-005</integration.version>
      

      In the case above we will get the following error

      Error executing command: Error starting bundles:
              Unable to start bundle 495: Unresolved constraint in bundle com.example.switchyard.hello [495]: Unable to resolve 495.0: missing requirement [495.0] osgi.wiring.package; (&(osgi.wiring.package=org.switchyard.component.bean)(version>=1.2.0)(!(version>=1.3.0)))
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                bfitzpat Brian Fitzpatrick
                Reporter:
                apodhrad Andrej Podhradsky
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: