Hi,

thanks for your answer and sorry for not creating the JIRA myself. I was 
totally busy yesterday.

I can confirm, that all the missing bundles are marked with dependency="true". 
However, I do not fully  understand the concept behind OBR. I found this older 
post, that basically says OBR *does* resolve and install bundles, that are 
marked as dependency, when they are not already installed:
http://karaf.922171.n3.nabble.com/features-xml-dependency-quot-true-quot-td3286359.html

As a workaround, I just stopped the OBR bundle that comes with the ServiceMix 
minimal assembly. Then the installation of camel-blueprint and camel-cxf worked 
without any problem. All dependencies (which are quite many for camel-cxf) got 
installed. Everything is working.

So, thank you :-)


Regards,
-- 
Jan Schulze

> -----Ursprüngliche Nachricht-----
> Von: Freeman Fang [mailto:[email protected]]
> Gesendet: Freitag, 21. März 2014 04:58
> An: [email protected]
> Betreff: Re: Adding features to ServiceMix 4.5.3 minimal - dependency
> resolution not working?
> 
> For a better track, create https://issues.apache.org/jira/browse/CAMEL-7317
> for this issue
> -------------
> Freeman(Yue) Fang
> 
> Red Hat, Inc.
> FuseSource is now part of Red Hat
> 
> 
> 
> On 2014-3-20, at 上午10:14, Freeman Fang wrote:
> 
> > Hi,
> >
> > When OBR resolver is available, If the bundle in features.xml has
> dependency="true" which means if there's on other bundle in this feature
> explicitly depend on this bundle than it won't get installed, this should be 
> the
> problem you run into.
> >
> > I saw the xml-specs-api is actually in camel features.xml, could you please
> create a camel jira so that we can track it there.
> > -------------
> > Freeman(Yue) Fang
> >
> > Red Hat, Inc.
> > FuseSource is now part of Red Hat
> >
> >
> >
> > On 2014-3-19, at 下午4:59, Schulze, Jan wrote:
> >
> >> Hi,
> >>
> >> I am trying to add features to the ServiceMix 4.5.3 minimal assembly.
> When I do "features:install camel-blueprint" in Karaf, I get the following 
> error
> message:
> >>
> >> Error executing command: Can not resolve feature:
> >> Unsatisfied requirement(s):
> >> ---------------------------
> >> package:(&(package=javax.xml.bind))
> >>      camel-blueprint
> >> package:(&(package=javax.xml.bind.annotation.adapters))
> >>      camel-blueprint
> >> package:(&(package=javax.xml.bind.annotation))
> >>      camel-blueprint
> >>
> >> I checked that "features:listurl" returns the correct repositories. I also
> checked that those repositories are available and can be accessed from
> Karaf.
> >> I looked at the "apache-camel-2.10.7-features.xml" file and saw that
> "camel-blueprint" depends on "camel-core" which depends on "xml-specs-
> api".
> >>
> >> The problem seems to be, that the bundles under the "xml-specs-api"
> feature do not get installed. After installing them manually, e.g. 
> "osgi:install
> mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.activation-
> api-1.1/2.2.0", I can do "features:install camel-blueprint" without any 
> errors,
> and the features "camel-blueprint", "camel-core" and "xml-specs-api" are
> listed when I do "features:list --installed".
> >>
> >> I have a similar problem when trying "features:install cxf". In this case,
> there are much more bundles, that are not being installed automatically.
> Installing them manually as well would be quite some work.
> >>
> >> The "apache-camel-2.10.7-features.xml" file states "resolver='(obr)'". I
> checked, that "Apache Karaf :: Features :: OBR Resolver (2.2.11)" is installed
> an running.
> >>
> >> Am I missing something obvious? Any clues how to get all dependencies
> to install automatically?
> >>
> >>
> >> Regards,
> >> --
> >> Jan Schulze
> >

Reply via email to