Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-1835

Installing of deployment package fails if has it's bundles in subdirectory

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • None
    • deploymentadmin-0.9.6
    • Deployment Admin
    • None
    • Windows Vista, Apache Felix

    Description

      Currently have to be all bundles in root of deployment package, else DeploymentException is thrown.
      However in OSGi Service Platform Service Compendium v4.2 specification is presented, that bundles could be in subdirectory - in this example manifest:

      Manifest-Version: 1.0
      DeploymentPackage-Icon: %icon
      DeploymentPackage-SymbolicName: com.third._3d
      DeploymentPacakge-Version: 1.2.3.build22032005

      Name: bundles/3dlib.jar
      SHA1-Digest: MOez1l4gXHBo8ycYdAxstK3UvEg=
      Bundle-SymbolicName: com.third._3d
      Bundle-Version: 2.3.1

      Stack trace is:
      org.osgi.service.deploymentadmin.DeploymentException: Expected more bundles in the stream: [bundles/cz.zcu.kiv.osgi.hiworld-1.0.0.jar, bundles/cz.zcu.kiv.osgi.helloworld-1.0.0.jar]
      at org.apache.felix.deploymentadmin.spi.UpdateCommand.execute(UpdateCommand.java:61)
      at org.apache.felix.deploymentadmin.spi.DeploymentSessionImpl.call(DeploymentSessionImpl.java:74)
      at org.apache.felix.deploymentadmin.DeploymentAdminImpl.installDeploymentPackage(DeploymentAdminImpl.java:215)
      ...

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            kodlpav Pavel Kodl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment