felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cristiano GaviĆ£o <cvgav...@gmail.com>
Subject [bundlerepository] RepositoryAdmin.discoverResources is returning wrong uri
Date Fri, 07 Apr 2017 18:59:43 GMT
Hello all,

I'm facing a problem and would like some advice.

I've created some index.xml (R5) files using a tool that was based on 
old bindex tool. since those files will be hosted in a server the url 
attribute of bundles and other resources are using relative path (what I 
think is the right approach since we don't know the real address of the 
server at this time:

         <repo:capability namespace="osgi.content">
           <repo:attribute name="osgi.content"
           <repo:attribute name="url"
           <repo:attribute name="size" type="Long" value="473113"/>
           <repo:attribute name="mime" value="application/vnd.osgi.bundle"/>

But when I try to deploy any bundle using RepositoryAdmin or obr:deploy 
command, I'm getting: java.net.MalformedURLException: no protocol: 

wouldn't RepositoryAdmin be smart enough and concat the url of the added 
repository with the resources url?



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message