Details

      Description

      Some bundles are missing if referencing a KieModule from SY project on Karaf. To reproduce use the rules-interview-container quickstart and the attached project:

      1. cd rules-interview-container
      2. sed -i 's/rules:container b/rules:container releaseId="org.switchyard.kie:project:0.0.1-SNAPSHOT" b/' src/main/resources/META-INF/switchyard.xml
      3. cd project
      4. mvn clean install
      5. bin/karaf
      6. features:addurl mvn:org.switchyard.karaf/switchyard/2.0.0-SNAPSHOT/xml/features ; features:install switchyard-quickstart-rules-interview-container
      7. ld

      You will get:

      Could not start bundle mvn:org.switchyard.components/switchyard-component-common-knowledge/2.0.0-SNAPSHOT in feature(s) switchyard-common-knowledge-2.0.0-SNAPSHOT: Unresolved constraint in bundle org.switchyard.components.switchyard-component-common-knowledge [263]: Unable to resolve 263.0: missing requirement [263.0] osgi.wiring.package; (osgi.wiring.package=org.apache.maven.settings.building)
      

      I've updated features.xml with required bundles. Not sure about the versions used, but at least no unresolved constraint bundle nor NoClassDefFoundError appears. Apply the attached patch and try to install the quickstart again:

      1. cd release/karaf/features
      2. git apply features.patch
      3. mvn clean install
      4. rm data/ -rf ; bin/karaf
      5. features:addurl mvn:org.switchyard.karaf/switchyard/2.0.0-SNAPSHOT/xml/features ; features:install switchyard-quickstart-rules-interview-container
      6. ld

      I've stucked with the following NPE:

      2014-12-11 10:48:42,175 | ERROR | yard Extender: 1 | SwitchYardExtender               | ?                                   ? | 154 - org.switchyard.karaf.switchyard-karaf-deploy - 2.0.0.SNAPSHOT | Unable to start switchyard for bundle org.switchyard.quickstarts.switchyard.rules.interview.container
      java.lang.NullPointerException
      	at org.kie.scanner.Aether.newRepositorySystemSession(Aether.java:100)[259:wrap_mvn_org.kie_kie-ci_6.2.0.Beta3:0]
      	at org.kie.scanner.Aether.<init>(Aether.java:66)[259:wrap_mvn_org.kie_kie-ci_6.2.0.Beta3:0]
      	at org.kie.scanner.Aether.<init>(Aether.java:47)[259:wrap_mvn_org.kie_kie-ci_6.2.0.Beta3:0]
      	at org.kie.scanner.Aether.getAether(Aether.java:57)[259:wrap_mvn_org.kie_kie-ci_6.2.0.Beta3:0]
      	at org.kie.scanner.MavenRepository.getMavenRepository(MavenRepository.java:73)[259:wrap_mvn_org.kie_kie-ci_6.2.0.Beta3:0]
      	at org.switchyard.component.common.knowledge.config.builder.patch.PatchedRuntimeEnvironmentBuilder.getDefault(PatchedRuntimeEnvironmentBuilder.java:233)[278:org.switchyard.components.switchyard-component-common-knowledge:2.0.0.SNAPSHOT]
      

      Btw: Finding of all the required dependencies for features.xml was very unpleasant. Does anybody know how to do it more automatically than repeating these steps: install the quickstart, find what maven project contains the missing class/package, add it to features.xml/install to karaf, install the quickstart again?

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  virchete David virgil naranjo
                  Reporter:
                  trohovsky Tomas Rohovsky
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: