Uploaded image for project: 'ServiceMix'
  1. ServiceMix
  2. SM-2027

jbi-maven-plugin, jbi.xml generation, missing jbi-component lib in bootstrap-class-path

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • jbi-maven-plugin-4.3
    • jbi-maven-plugin-4.6
    • tooling
    • None
    • unrelated

    • Patch Available

    Description

      I tried to extend an existing Servicemix Component (servicemix-http).
      So, I added a dependency to this component.

      When I started Servicemix, I got an error "ClassNotFoundException: org.apache.servicemix.http.HttpBootstrap" (or anything like that)

      I had a look at my generated jbi.xml, and I saw that path-element for servicemix-http was missing.

      I checked out jbi-maven-plugin from the svn trunk, and noticed that generation of path-elements was different between component and bootstrap. Only jar type was accepted for bootstrap.

      At line 95, I replaced the test "jar".equals(...) by !info.isSharedLibrary() and it worked.

      I attached my patch.

      Attachments

        1. bootstrap_classpath_element.diff
          0.8 kB
          Alexis Lahouze

        Issue Links

          Activity

            People

              Unassigned Unassigned
              xals Alexis Lahouze
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: