2008/11/3 Sriharsha <[EMAIL PROTECTED]>

>
> I tried with the new bindex jar and it is generating repository.xml in
> proper format for the previous scenario.
>
> But again I am ending up with one more problem with OBR, When i write the
> following entry in Bundle1's manifest file
>
> now if I specify the version ranges like
>
> Require-Bundle: Bundle2;bundle-version="[1.0,2.0] "
>
> then repository.xml will look like
>
> <require extend='false'
> filter='(&amp;(symbolicname=Bundle2)(version&gt;=[1.0.0,2.0.0]))'


^ that doesn't look like a valid LDAP expression, I don't think bindex has
converted the version range properly


> multiple='false' name='bundle' optional='false'>
>      Require Bundle Bundle2; [1.0.0,2.0.0]
>
> But when i try to deploy Bundle1 using felix obr implementation
>           obr deploy Bundle1
> then I am getting the following exception.
>
> ERROR: FilterImpl: (&(symbolicname=Bundle2)(version>=[1.0.0,2.0.0]))
> (org.apache.felix.framework.util.ldap.EvaluationException: Could not
> instantiate class org.osgi.framework.Version with constructor String
> parameter [1.0.0,2.0.0] java.lang.reflect.InvocationTargetException)
> org.apache.felix.framework.util.ldap.EvaluationException: Could not
> instantiate class org.osgi.framework.Version with constructor String
> parameter [1.0.0,2.0.0] java.lang.reflect.InvocationTargetException
>        at
> org.apache.felix.framework.util.ldap.Parser.compare(Parser.java:1327)
>        at
>
> org.apache.felix.framework.util.ldap.Parser$GreaterEqualOperator.execute(Parser.java:838)
>        at
> org.apache.felix.framework.util.ldap.Evaluator.evaluate(Evaluator.java:91)
>        at org.apache.felix.framework.FilterImpl.match(FilterImpl.java:166)
>        at org.apache.felix.framework.FilterImpl.match(FilterImpl.java:213)
>        at
>
> org.apache.felix.bundlerepository.RequirementImpl.isSatisfied(RequirementImpl.java:63)
>        at
>
> org.apache.felix.bundlerepository.ResolverImpl.searchAddedResources(ResolverImpl.java:275)
>        at
>
> org.apache.felix.bundlerepository.ResolverImpl.resolve(ResolverImpl.java:178)
>        at
>
> org.apache.felix.bundlerepository.ResolverImpl.resolve(ResolverImpl.java:136)
>        at
>
> org.apache.felix.bundlerepository.ObrCommandImpl._deploy(ObrCommandImpl.java:327)
>        at
>
> org.apache.felix.bundlerepository.ObrCommandImpl.deploy(ObrCommandImpl.java:301)
>        at
>
> org.apache.felix.bundlerepository.ObrCommandImpl.execute(ObrCommandImpl.java:111)
>        at
>
> org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:276)
>        at
>
> org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Activator.java:167)
>        at java.lang.Thread.run(Thread.java:595)
>
> So is version range functionality (for Require-Bundle) supported by felix
> OBR ?
>
>
> --
> View this message in context:
> http://www.nabble.com/bindex-tool-is-unable-to-retain-the-Require-Bundle-bundle-version-info-in-the-repository.xml-tp20297305p20300154.html
> Sent from the Apache Felix - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Cheers, Stuart

Reply via email to